Hash Generator
Developer Tools · Added 12 August 2026
Produce a cryptographic digest of any text or file, in hex or Base64, and check it against a checksum someone published. The hashing uses your browser's own Web Crypto implementation, so even a large file is read and digested on your machine rather than uploaded anywhere.
How to use the hash generator
- 1Choose whether you are hashing typed text or a file on your disk.
- 2Pick an algorithm. SHA-256 is the right default unless something specific is asking for another.
- 3Read the digest in hex, or copy the Base64 form if the system you are feeding expects that.
- 4To verify a download, paste the checksum published by the project into the comparison box — case and stray spaces are ignored.
- 5A green result means the bytes are identical to what the publisher hashed. A red one means they are not.
Examples
The canonical test vector
- Input
- Text: abc, algorithm SHA-256
- Result
- ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
This value is published in the SHA standard itself, which makes it a quick way to confirm any implementation.
Verifying a downloaded release
- Input
- The .iso you just downloaded, plus the SHA-256 line from the project's site
- Result
- Checksums match — the file is byte-for-byte what was published
This detects corruption and truncation. It only detects tampering if you trust the page the checksum came from.
Why a hash 'does not match' the command line
- Input
- Text typed with a trailing newline
- Result
- A completely different digest from the same text without one
echo adds a newline; echo -n does not. One invisible byte changes every character of the output.
About the hash generator
What a checksum actually proves
Comparing a downloaded file's hash against a published one proves that the bytes you hold are the bytes that were hashed. That is genuinely useful: it catches a truncated download, a corrupted disk, a proxy that mangled the transfer.
It proves rather less about tampering, and the reason is worth being precise about. If an attacker can replace the file, they can usually replace the checksum printed next to it. A checksum only becomes evidence of authenticity when it arrives by a different route than the file — a signed release manifest, a package index with its own signing key, a value you were told out of band.
Why SHA-1 is still here
SHA-1 has been unsafe for security purposes since 2017, when a practical collision was demonstrated: two different files with the same digest. Anything that depends on a hash being unique per input — signatures, certificates, tamper detection — cannot use it.
It remains in this tool because a great deal of the world still emits it. Git object ids are SHA-1, older release pages publish SHA-1 checksums, and legacy systems hand out SHA-1 fingerprints. Reading those values is a legitimate need; starting something new with them is not, which is why the tool says so when you select it.
Frequently asked questions
Can I get the original text back from a hash?
Why is MD5 not offered?
Is my file uploaded to check its hash?
SHA-256 or SHA-512 — does it matter?
Related tools
Base64 Encoder / Decoder
Developer Tools
Encode text to Base64 and decode it back, with full Unicode and URL-safe support.
UUID Generator
Developer Tools
Generate cryptographically random UUIDs in bulk, with formatting options.
Password Generator
Developer Tools
Generate a strong random password with your own length and character rules, and see its real entropy.