Hash generator
Type or paste text to get its SHA-1, SHA-256, SHA-384 and SHA-512 hashes, in hex or Base64.
How it works
The text is turned into UTF-8 bytes and passed to your browser’s crypto.subtle.digest. A hash function always gives the same output for the same input, and a tiny change in the input changes the whole output.
Worked example
- “hello world”
- SHA-256 →
- b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9
Frequently asked questions
Which hash should I use?
SHA-256 for checksums and most new uses. SHA-1 is only for compatibility with old systems: it is broken for security purposes. Hashes are not for storing passwords; use bcrypt, scrypt or Argon2 for that.
Why is there no MD5?
Browsers’ built-in Web Crypto does not offer MD5 because it is broken. If you need MD5 to match an old checksum, a command-line tool such as md5sum is the reliable way.
Is the text hashed exactly as typed?
Yes, as UTF-8 bytes. A trailing space or a different line ending gives a completely different hash.