Skip to content
Devtoolry

Hash Generator

Generate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes and HMACs of any text online. Hashing runs in your browser, so the input never leaves your device.

Runs in your browser · Nothing uploadedFree · No sign-up

Something not working, or missing a feature? Send feedback

About the Hash Generator

The Hash Generator calculates MD5, SHA-1, SHA-256, SHA-384 and SHA-512 digests and HMACs of any text in your browser, which is useful for checksums, signatures and debugging API authentication.

Everything is generated in your browser; nothing you enter is uploaded, and anything random comes from a cryptographically secure source.

How to use the Hash Generator

  1. Type or paste the text.
  2. Switch on HMAC and enter the secret key if you need a keyed hash.
  3. Copy the digest for the algorithm you need.

Example

Hash the text "hello world"

Input

hello world

Result

MD5      5eb63bbbe01eeed093cb22bb8f5acdc3
SHA-1    2aae6c35c94fcfb415dbe95f408b9ce91ee846ed
SHA-256  b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9

With HMAC on and the key secret, HMAC-SHA256 gives 734cc62f32841568f45715aeb9f4d7891324e6d948e4c6c60c0621cdac48623a.

Common mistakes

  • A trailing newline. hello world and hello world followed by a line break have completely different hashes. Command-line tools such as echo add a newline unless you use echo -n.
  • Comparing hex with different case. Hex digests are case-insensitive, but string comparison is not. Compare in lowercase, or switch on uppercase to match the other side.
  • Hashing passwords. Fast hashes let attackers try billions of guesses per second. Store passwords with Argon2, scrypt or bcrypt instead.

Works well with the Hash Generator

Frequently asked questions

Should I store passwords as SHA-256?

No. Use a slow password hashing algorithm such as Argon2, scrypt or bcrypt. Fast hashes like SHA-256 are designed for integrity checks.

Are MD5 and SHA-1 still safe?

Not for security, because collisions can be created. They are fine for non-security checksums.

How do I verify a webhook signature?

Switch on HMAC, enter the webhook secret, paste the exact raw request body and compare the SHA-256 result with the signature header. Any change to the body, even whitespace, changes the result.

Can I hash a file?

This tool hashes text as UTF-8. For files, use sha256sum on Linux, shasum -a 256 on macOS or Get-FileHash in PowerShell.

Guides and tutorials