Hash generator

Type text or choose a file to see its MD5 and SHA hashes instantly. Add a key for HMAC. Files are hashed on your device and never uploaded.

Which hash should I use?

AlgorithmOutputUse it for
MD5128 bits, 32 hex charactersChecksums and cache keys only. Broken for security: collisions are easy to make.
SHA-1160 bits, 40 hexLegacy systems such as older Git object IDs. Not safe against deliberate collisions.
SHA-256256 bits, 64 hexThe default choice: file checksums, signatures, API request signing.
SHA-384 / SHA-512384 / 512 bitsWhere a longer hash is required; SHA-512 is often faster on 64-bit machines.

Hashing passwords

Do not store passwords as plain MD5 or SHA hashes: they can be guessed billions of times a second. Use a slow password hash such as Argon2id, scrypt or bcrypt.

What is HMAC?

An HMAC combines a hash with a secret key, so only someone with the key can produce or check it. Webhooks (Stripe, GitHub, Slack) and many APIs sign requests with HMAC-SHA256. Tick HMAC with a key to compute one.

Verify a download

Choose the downloaded file, then paste the checksum from the publisher's website into Compare with a checksum. A match means the file was not corrupted or altered.

Frequently asked questions

What is the SHA-256 of 'hello world'?
b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9 (with no newline at the end).
Why is my hash different from the command line?
Usually a trailing newline: echo adds one. Use echo -n "text" | sha256sum, or check for spaces and line endings in the text.
Can a hash be reversed?
No. Hashes are one-way. Short or common inputs can be guessed by trying many values, which is why passwords need a slow hash.
Are my files uploaded?
No. Files are read and hashed in your browser with the Web Crypto API.