Hash Generator
Generate SHA-1, SHA-256, SHA-384, and SHA-512 hashes in your browser instantly.
🔒 All hashing happens locally using the browser's SubtleCrypto API.
Enter text above to compute the SHA-1 hash.
Enter text above to compute the SHA-256 hash.
Enter text above to compute the SHA-384 hash.
Enter text above to compute the SHA-512 hash.
Last updated:
Generate SHA hashes from text
This hash generator turns any text into SHA-1, SHA-256, SHA-384 and SHA-512 hashes. All four are shown at once and update as you type. Each one can be copied with a single click.
How to use it
- Type or paste your text into the Input Text box.
- Wait a moment. The hashes appear after a short delay of about 120 ms.
- Tick Uppercase if you want the hex in capital letters.
- Click Copy next to the hash you need.
How it works
The text is converted to UTF-8 bytes and hashed with the browser's built-in Web Crypto API (crypto.subtle.digest). The result is written as hexadecimal. The counter above the box shows the number of bytes and characters in your input.
What you see
| Algorithm | Length | Note shown in the tool |
|---|---|---|
| SHA-1 | 160 bits (40 hex characters) | Deprecated for security use |
| SHA-256 | 256 bits (64 hex characters) | Recommended |
| SHA-384 | 384 bits (96 hex characters) | Strong |
| SHA-512 | 512 bits (128 hex characters) | Very strong |
Assumptions and limits
- Only text input is supported. You cannot hash a file.
- MD5 is not offered, and there is no HMAC or salt option.
- Web Crypto needs a secure context. On a page without HTTPS or localhost, the tool shows an error message instead of hashes.
- The text is hashed on your device. The code makes no network request with it.
- A plain hash is not a safe way to store passwords. Use a slow, salted algorithm such as bcrypt for that.
Frequently asked questions
Why is the same text giving a different hash elsewhere?
Check for extra spaces or line breaks, since they change the result. The tool hashes the text exactly as typed, encoded as UTF-8.
Does the Uppercase option change the hash?
No. It only changes how the same hex value is written, and the copy button uses the same case.
Which algorithm should I pick?
SHA-256 is the one the tool recommends and is the usual choice for checksums. SHA-1 is only for matching old systems.
Related Developer Tools
Browse all tools from the same category.
Domain Authority Checker
Check Moz authority, page authority, spam score, and backlink metrics
Open toolSEO Audit Tool
Audit a website URL for technical SEO, metadata, headings, broken internal links, hreflang, canonical and X-Robots-Tag checks, with report exports
Open toolShowing 1-2 of 49