Hash generator

Hash any text with MD5, SHA-1, SHA-256, SHA-384 and SHA-512 at once, in hex or base64, computed in your browser.

Output
MD5
SHA-1
SHA-256
SHA-384
SHA-512
MD5 and SHA-1 are here to read checksums that already exist. Neither is safe against a determined collision, so never use them to sign anything or to store a password.

Questions

Why show every algorithm together?+

Because the usual reason to open this page is a checksum whose algorithm nobody wrote down. Seeing all five means you can match it by length and value rather than by guessing.

Can I use these to store passwords?+

No. A password needs a slow hash with a salt, such as bcrypt, scrypt or argon2. SHA is built to be fast, which is exactly what makes it the wrong tool there.

Where does MD5 come from, if browsers refuse it?+

SubtleCrypto only implements the algorithms it considers safe, so MD5 is implemented here from RFC 1321 and checked against the standard test vectors. It is for reading old checksums, nothing else.

Why does my file's hash differ from the one here?+

Usually a trailing newline, or line endings: a file saved on Windows carries \r\n and hashes differently from the same text with \n. Encoding matters too, since this hashes UTF-8 bytes. Hash the file rather than its text if the two must agree.

Related tools

The tools are free. So is most of the library.

1935 blocks and 989 pieces for shadcn/ui and Tailwind, built on the same tokens these tools write. Install one with a command and the code is yours.

No signup for the tools. MIT for free blocks, commercial licence for Pro.

Markdown version