How to generate a SHA-256 or MD5 hash
- Under What do you want to hash?, choose Text to paste a string, or File to hash a file from your disk.
- For text, type or paste into the box. The digests refresh on every keystroke, so you don't need to press Generate hashes.
- For a file, use Choose a file to hash. The tool switches to File mode by itself and shows the file name and size in bytes.
- Under Algorithms, leave on only the digests you need. If you only want SHA-256, untick MD5, SHA-1 and SHA-512 and their cards disappear.
- Under Digest letter case, pick UPPERCASE if the system you're pasting into shows checksums in capitals.
- Each card has its own Copy button for a single digest. Copy all copies every selected digest as labelled lines.
The counter under the text box shows the input size in UTF-8 bytes, and those bytes are what gets hashed. Plain ASCII uses one byte per character. Accented Latin letters such as é or ż use two, most CJK characters use three, and most emoji use four. So zażółć is 6 characters and 10 bytes.
Example digests you can check against
The classic test string abc (also one of the built-in examples) gives the published reference values from the MD5 and SHA standards:
MD5: 900150983cd24fb0d6963f7d28e17f72
SHA-1: a9993e364706816aba3e25717850c26c9cd0d89d
SHA-256: ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
A single capital letter changes the whole digest. Here is SHA-256 of two nearly identical strings:
| Input | SHA-256 |
|---|---|
hello world |
b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9 |
Hello world |
64ec88ca00b268e5ba1a35678a1b5316d212f4f366b2477232534a8aeca37f3c |
A trailing newline counts too. abc followed by Enter is 4 bytes, and its MD5 is 0bee89b07a248e27c83fc3d5951213c1, not 900150…. This is the usual reason a hash from this page doesn't match echo abc | md5sum in a terminal: echo adds a newline unless you use echo -n.
With only MD5 and SHA-256 selected and UPPERCASE on, Copy all gives you:
MD5: 900150983CD24FB0D6963F7D28E17F72
SHA-256: BA7816BF8F01CFEA414140DE5DAE2223B00361A396177A9CB410FF61F20015AD
Checking a small file against a published checksum
File mode works well for small downloads where the publisher lists a SHA-256 or MD5 next to the link, such as a script, a config file or a download of a few MB.
- Switch to File, pick the file and wait for the digests to appear.
- Paste the published value into Compare with an expected hash. Spaces around it are trimmed and letter case is ignored. Paste only the hex value, not the file name that follows it in
SHA256SUMS-style lines. - If it matches, the page shows which algorithm matched, for example "Match: SHA-256". Otherwise it shows No selected hash matches. Keep the published algorithm ticked, because the comparison only checks digests that are switched on.
Other uses that work well here:
- Checking whether two config snippets or API payloads are byte-for-byte identical without diffing them by eye.
- Producing a test-vector digest to paste into a unit test or bug report.
- Matching a cache key or ETag-style fingerprint that a backend builds from a known string.
If two texts look the same but their hashes differ, the cause is often hidden characters such as non-breaking spaces, zero-width characters or mixed line endings. Find where they differ in Text Diff / Compare, clean them with the Invisible character remover, and hash them again.
Limits and when to use something else
- File size matters a lot. Hashing runs in JavaScript on the page, at roughly two seconds per MB on a laptop (slower on phones), and the page doesn't respond until it finishes. A 20 MB file can take more than half a minute.
- For ISO images, disk images and other large downloads, use your operating system instead:
sha256sum file.isoon Linux,shasum -a 256 file.isoon macOS, orcertutil -hashfile file.iso SHA256/Get-FileHash file.isoon Windows. - The text box accepts about 1,000,000 characters, and most emoji count as two or more. For bigger text, save it as a file and use File mode.
- An empty text box shows no hashes. The digests of empty input are listed in the FAQ below.
- When you type in a browser text box, line breaks are stored as LF. A Windows file with CRLF line endings will therefore only match if you hash the file itself, not pasted text.
- There is no HMAC, salt or key option, and no SHA-3 or BLAKE family. The page computes plain MD5, SHA-1, SHA-256 and SHA-512 as defined in RFC 1321 and RFC 6234.