Skip to content

Hash Generator

Create SHA-1, SHA-256, SHA-384 and SHA-512 hashes.

Runs in your browser · free · no sign-up

SHA-1—
SHA-256—
SHA-384—
SHA-512—

About the Hash Generator

A hash is a fixed-length fingerprint of data. The same input always gives the same hash, and a tiny change gives a completely different one. Use it to compare files, build cache keys or check API signatures.

A cryptographic hash function turns any input into a short, fixed-length string. The same input always produces the same hash, and changing even one character produces a completely different one. That makes hashes useful for checking that a download is intact, building cache keys, comparing data without storing it and verifying signed webhooks. This generator is for developers, system administrators and anyone who needs to check a checksum.

It uses the Web Crypto API that is built into every modern browser, the same implementation browsers use for secure connections. You can hash typed text or a file, and see SHA-1, SHA-256, SHA-384 and SHA-512 at the same time in lowercase or uppercase hex. SHA-256 is the usual choice today; SHA-1 is included for older systems that still publish it.

How to use the Hash Generator

  1. 1Type or paste your text.
  2. 2All hashes update as you type.
  3. 3Click Copy next to the one you need.

Key features

  • SHA-1, SHA-256, SHA-384 and SHA-512 together.
  • Hash text or any file.
  • Lowercase or uppercase hexadecimal output.
  • Results update as you type.
  • Native Web Crypto implementation.

Practical uses

  • Verifying a downloaded installer against the checksum on the vendor’s site.
  • Creating stable cache keys or ETags.
  • Checking that two files are identical without opening them.
  • Testing webhook signature code during development.

Example

The SHA-256 hash of the word hello is 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824. Adding a capital H changes every character of the result, which shows why hashes detect even tiny changes.

Tips and common mistakes

  • Text hashes depend on exact bytes: a trailing space or a Windows line ending changes the result.
  • Compare checksums in the same letter case, or use the case option to match.
  • For passwords, use bcrypt, scrypt or Argon2 on the server rather than a plain SHA hash.

Limitations

  • MD5 and SHA-3 are not available because the Web Crypto API does not provide them.
  • HMAC (keyed hashes) is not supported; the tool computes plain hashes only.

Privacy

Text and files are hashed in your browser. Files are read into memory locally and never uploaded, so you can check confidential documents.

Frequently asked questions

Is MD5 available?

Browsers do not include MD5 in the Web Crypto API because it is no longer secure. SHA-256 is the recommended choice.

Can a hash be reversed?

No. Hash functions are one-way. You can only check a guess by hashing it and comparing.

Should I hash passwords with SHA-256?

Not on its own. Passwords should be stored with a slow algorithm such as bcrypt or Argon2 on the server.

Why does my hash differ from the command line?

Usually a line ending: echo adds a newline unless you use echo -n. Hash the exact same bytes and the results match.

Related tools

JSON FormatterFormat, validate and minify JSON.
Base64 Encoder / DecoderEncode text to Base64 or decode it back.
URL Encoder / DecoderPercent-encode or decode URLs and query values.
JWT Decoder & BuilderNewDecode a JWT, check expiry, and sign HS256 test tokens.