Hash Generator (SHA)
Compute cryptographic hashes of any text — SHA-1, SHA-256, SHA-384 and SHA-512, shown together as hexadecimal — using your browser's built-in Web Crypto API. A hash is a fixed-length fingerprint of its input: the same text always yields the same digest, while changing a single character produces a completely different one, which makes hashes ideal for verifying integrity, comparing content and building checksums. Your input is encoded as UTF-8 and processed locally, so you can hash sensitive strings without them leaving your device. Remember that hashing is one-way and is not encryption — you cannot recover the original text — and for storing passwords a deliberately slow algorithm such as bcrypt is preferred over a plain SHA digest.
How to use
- Type or paste your text into the input.
- All hashes are computed instantly.
- Copy any hash with its Copy button.
- Compare against an expected checksum to verify integrity.
Frequently asked questions
- Is MD5 supported?
- No. The Web Crypto API doesn't include MD5; this tool offers the secure SHA family instead.
- Are hashes computed locally?
- Yes. Hashing uses your browser's Web Crypto API; nothing is sent to a server.
- Is the input encoded as UTF-8?
- Yes, text is encoded as UTF-8 before hashing, so results match standard tools.
- Can I hash a file?
- This tool hashes text. File hashing may be added as a separate tool later.
- Which hash algorithm should I use?
- For general integrity checks, SHA-256 is the standard, well-supported choice. SHA-1 is considered weak against deliberate collisions and is best avoided for new security uses, though it is fine for non-security checksums. SHA-384 and SHA-512 produce longer digests with a larger security margin.
- Can I turn a hash back into the original text?
- No. Hashing is one-way by design — there is no inverse function. Identical inputs always produce the same hash, but you cannot derive the input from the output, which is exactly what makes hashes useful for verification without exposing the data.
Guides on this topic
- Number Bases and Text Encodings: A Developer's Cheat Sheet A practical primer on binary, octal, decimal and hexadecimal, plus how text becomes bytes through UTF-8, Base64 and URL encoding — with the rules you actually need.
- Hashing vs Encryption vs Encoding: What's the Difference Three terms that are constantly confused — hashing, encryption and encoding — explained clearly, with what each is for, when to use which, and the mistakes to avoid.
Related tools
File Hash (Checksum)
Compute SHA-1, SHA-256, and SHA-512 checksums of any file.
HMAC Generator (SHA-1 / 256 / 384 / 512)
Compute HMAC signatures with Web Crypto — sign webhook payloads, verify API requests, hex or base64 output.
File Hash Verifier
Drop a file and paste an expected SHA-1 / 256 / 384 / 512 — see if the actual hash matches. Useful before installing downloaded binaries.
CSP Hash Generator
Compute the sha256 / sha384 / sha512 base64 hash an inline <script> or <style> block needs to be whitelisted by a Content-Security-Policy.
Bencode / .torrent Inspector
Drop any bencoded file (.torrent or raw bencode) and inspect its tree, info hash (SHA-1), trackers, file list, piece length, and creation metadata — all parsed locally in your browser.
Reverse Text
Reverse text four ways — by characters, word order, the letters inside each word, or line order. Works with emoji and any language.