Hash Generator
Computes SHA-1, SHA-256 and SHA-512 hashes of any text, using the browser's built-in Web Crypto engine. Paste text, read its fingerprints — fixed-length hex strings that change completely if even one character of input changes.
How to use
- Paste the text.
- Read the SHA-1, SHA-256 and SHA-512 digests.
- Copy the one your use case calls for — SHA-256 is today's general default.
- To verify integrity, hash both copies and compare strings — equal hashes, identical text.
When you actually need this
- Verifying a downloaded file's published checksum matches what arrived.
- Producing a fingerprint to detect any future tampering with a text.
- Generating deterministic cache keys or content IDs from strings.
- Comparing two configs or documents for equality without reading them.
What hashes guarantee — and what they do not
A cryptographic hash is one-way and avalanche-sensitive: you cannot recover the input from the digest, and a single changed character rewrites the whole output, which is what makes hashes good integrity fingerprints. Two boundaries matter. SHA-1 is broken for collision resistance — real colliding documents have been demonstrated — so treat it as legacy compatibility only; SHA-256 is the current default. And hashing is not password storage: passwords need slow, salted algorithms (bcrypt, Argon2) precisely because fast hashes like these can be brute-forced by the billions per second. Hashing is also not encryption — anyone can hash the same input and get the same digest.
Related tools
FAQ
Does Hash Generator send my input to a server?
No. The conversion runs in JavaScript inside the page, so API keys, tokens, config files and any other sensitive text stay on your machine. You can verify this by opening your browser's network tab while you use the tool.
Does Hash Generator handle Unicode and non-ASCII characters?
Yes. Text is processed as UTF-8, so accented Latin, Korean, Japanese, Chinese, Cyrillic, Arabic and emoji all round-trip correctly rather than turning into question marks.
Can I use the output in production code?
Yes — the output follows the relevant standard exactly and is safe to paste into your project. As with any tool, run your own tests before shipping anything that depends on it.