Hash Generator (SHA)
Generate SHA-1, SHA-256, SHA-384, and SHA-512 hashes from text.
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.
About this tool
ShowHide
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.
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 SheetA 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 DifferenceThree 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.
File
HMAC Generator (SHA-1 / 256 / 384 / 512)
Compute HMAC signatures with Web Crypto — sign webhook payloads, verify API requests, hex or base64 output.
Developer
Git Object ID (hash-object)
Work out the git object id of a blob, tree, commit or tag in both SHA-1 and SHA-256, with the header git hashes and the loose object path.
Developer
DNSSEC Calculator — DS Record & NSEC3 Hash
Turn a DNSKEY into the DS record your registrar wants — key tag and all three digest types — or hash a name the way NSEC3 does.
Network
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.
File
Bencode / .torrent Inspector
Drop a .torrent or raw bencode file and inspect its tree, info hash (SHA-1), trackers, file list and piece length — parsed locally in your browser.
File
.gitignore Generator
Tick the languages, frameworks, editors, and operating systems you use — get one combined .gitignore ready to drop into a fresh repo.
Developer