Map Extract
Free tool

Hash generator (MD5, SHA and HMAC)

Type some text or choose a file and see its MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes side by side, each with a copy button. Switch to HMAC mode to sign a message with a secret key, as webhooks and many APIs require.

Runs in your browser. Nothing you enter is uploaded.

Hashing text, a file or a message

  1. 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.

  2. 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.

  3. 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.

  4. Choose the case

    Hashes are lower-case hexadecimal by default. Tick Upper case if the system you are comparing against prints them in capitals.

  5. 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.

Input
Text: quote-0042 Harbour Bakery £480
Result
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

AlgorithmHex lengthUse it for
MD532Matching old checksums and caches only; broken for security
SHA-140Legacy systems and Git object names; broken for security
SHA-25664File checksums, signatures, most APIs and webhooks
SHA-38496Some certificate and subresource integrity uses
SHA-512128When a system specifically asks for it
HMAC-SHA-25664Signing 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

Top