Hashing text, a file or a message
Choose the input type
Text, File or HMAC (with a key). Switching clears the previous results so you never copy a hash from the wrong input.
Enter the text or pick the file
Text is hashed as you type, exactly as entered, including spaces and line breaks. A file is read in full on your device and its name and size are shown above the results.
Add a key for HMAC
In HMAC mode, type the shared secret. Four signed values of the text then appear, one for each SHA variant from SHA-1 up to SHA-512.
Choose the case
Hashes are lower-case hexadecimal by default. Tick Upper case if the system you are comparing against prints them in capitals.
Copy the one you need
Each algorithm has its own row and copy button. Most modern systems want SHA-256.
Example: fingerprinting a quote reference
A bakery supplier (fictional) wants a short, unguessable token to put in a quote link instead of the quote number itself. Hashing the reference text produces the values below. Changing a single character, even the amount, produces a completely different result, which is what makes hashes useful as fingerprints.
For the link, the supplier would use an HMAC with a secret key rather than a plain hash, so nobody can produce a valid token just by guessing the text.
Text: quote-0042 Harbour Bakery £480
MD5 fe83c1f310d3cf6cc03ab0a93c9b3f59 SHA-1 1014daf863b8a8215b9d057ddee8e32f9b3d1de2 SHA-256 f52c0577b2754e0ddef223db5ab031baffe8fcd8cc5454ebb293a3baf89775f7 (SHA-384 and SHA-512 are shown in full on the page)
Which algorithm for which job
| Algorithm | Hex length | Use it for |
|---|---|---|
| MD5 | 32 | Matching old checksums and caches only; broken for security |
| SHA-1 | 40 | Legacy systems and Git object names; broken for security |
| SHA-256 | 64 | File checksums, signatures, most APIs and webhooks |
| SHA-384 | 96 | Some certificate and subresource integrity uses |
| SHA-512 | 128 | When a system specifically asks for it |
| HMAC-SHA-256 | 64 | Signing webhook payloads and API requests with a shared key |
Questions people ask
What is a hash used for?
A hash is a fixed-length fingerprint of some data. The same input always gives the same hash, and any change gives a different one. That makes hashes useful for checking that a download or a file you sent has not changed, for spotting duplicate records, and as one ingredient in digital signatures.
Can a hash be reversed to get the original text?
Not by calculation. Hash functions are designed to be one-way. Short or common inputs, such as simple passwords or email addresses, can still be found by guessing and comparing, so a hash of something predictable is not a real secret. Use HMAC with a secret key when the value must not be guessable.
Why does my hash not match another tool's?
Usually the inputs differ slightly. A trailing space, a Windows line ending instead of a Unix one, or a different text encoding all change the result. This page hashes the text as UTF-8 exactly as typed. For files, hash the file itself rather than text copied out of it.
What is HMAC and when do I need it?
HMAC combines a hash with a secret key, so only someone holding the key can produce or check the value. Payment providers, form tools and CRMs often sign webhook messages this way. To verify one, paste the exact message body as the text and the shared secret as the key, then compare the HMAC-SHA-256 result.
Where your data goes
Hashes are calculated on this page with the browser's built-in cryptography (and a local MD5 routine). Your text, files and secret keys are never uploaded to Map Extract or anywhere else.
Checked against the tool on