Hash Generator
Compute SHA-1, SHA-256, SHA-384, and SHA-512 hashes of any text.
SHA-1
Enter text above to compute
SHA-256
Enter text above to compute
SHA-384
Enter text above to compute
SHA-512
Enter text above to compute
What is Hash Generator?
A cryptographic hash function takes an input of arbitrary size and produces a fixed-length digest, usually rendered as a hexadecimal string, that serves as a fingerprint of the data. This tool computes the SHA-1, SHA-256, SHA-384, and SHA-512 digests of your text at the same time using the browser's native Web Crypto implementation. Hashing is deterministic — the same input and algorithm always produce the identical output — which is what makes hashes useful for verifying file integrity and detecting whether data has changed. Raw SHA digests are not suitable for storing passwords directly; a purpose-built slow algorithm such as bcrypt, scrypt, or Argon2 should be used for that instead.
How to Use Hash Generator
- Type or paste the text you want to hash.
- SHA-1, SHA-256, SHA-384, and SHA-512 digests are all computed instantly, side by side.
- Click "Copy" next to any hash to copy just that one.
Examples
SHA-256 of "hello"
Input: hello
Output: 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
SHA-1 of "hello"
Input: hello
Output: aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d
Common Mistakes
- Using a raw SHA-256 hash to store passwords — always use a purpose-built, slow password-hashing algorithm (bcrypt, scrypt, Argon2) instead, since fast hashes like SHA-256 are trivial to brute-force at scale.
- Assuming a matching hash guarantees a file is safe — a hash confirms the file wasn't corrupted or tampered with relative to a known-good hash, not that the original file was safe to begin with.
- Comparing hashes case-sensitively when one source uppercases hex output and another lowercases it — normalize case before comparing.
Why Use This Tool
- Computes all four common SHA variants at once — no need to pick one and switch tools if you need a different length.
- Uses the browser's native, audited Web Crypto implementation rather than a third-party JavaScript hashing library.
- Runs entirely client-side — nothing you hash is ever transmitted.
- Instant results with no input size limit beyond your browser's available memory.