Wall of Tools

Hash Generator: MD5, SHA-1, SHA-256 and SHA-512 of Text, With HMAC

Get the MD5, SHA-1, SHA-256, SHA-384 and SHA-512 of any text as you type, in hex or Base64, with an HMAC key if you need one, and check it against a hash you were given.

  • Runs in your browser, nothing is uploaded
  • Free, no sign-up
  • 29 automated checks

    Make an MD5 or SHA-256 hash of text

    A hash is a short fingerprint of some data. The same text always gives the same hash, and changing a single letter gives a completely different one. Type or paste text and this page shows its MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes at once, updating as you type. Paste a hash you were given into the compare box and the matching line lights up green.

    Hashing happens in your browser. The text is not sent anywhere, so you can hash passwords, keys and private data while testing.

    How to use it

    1. Type or paste the text. The hashes appear underneath straight away.
    2. Copy the one you need, in lower case or capitals, as hex or Base64.
    3. For an HMAC (a hash with a secret key, used to sign API requests and webhooks), tick "HMAC with a secret key" and enter the key.
    4. To check a hash, paste it into the compare box. The page tells you which algorithm it matches, if any.

    Which algorithm?

    • SHA-256 is the modern standard: use it for anything new, from checksums to signatures.
    • SHA-384 and SHA-512 are longer members of the same family, used where a standard asks for them.
    • MD5 and SHA-1 are old and broken for security: people can create two different inputs with the same hash. They are still fine for spotting accidental changes and are needed for older systems, but do not use them to protect anything.
    • HMAC mixes a secret key into the hash, so only someone with the key can produce it. Services such as Stripe, GitHub and Slack sign their webhooks with HMAC-SHA256.

    Why does my hash not match?

    • Hidden characters: a space or a line break at the end changes the hash completely. Text copied from a terminal often ends with a line break; tick "Ignore the line break at the end".
    • Different encoding: this page hashes text as UTF-8, the web standard. A system using another encoding gives different hashes for accented letters.
    • Hex or Base64: the same hash can be written either way. Switch the output to compare like with like.
    • Hashing a file? A file's hash covers its exact bytes, not the text you see. Use File Checksum for files.

    Hashing is not encryption

    A hash cannot be turned back into the text. That is why websites store hashes of passwords instead of the passwords. But short or common text can be found by trying guesses, so a plain MD5 or SHA-256 of a password is not safe storage; real systems use slow, salted methods such as bcrypt or Argon2. To lock text so it can be opened again with a password, use Encrypt Text.

    How this tool was tested

    Before publishing, I ran 29 automated checks on the finished page in Microsoft Edge, which is built on Chromium like Chrome. Last full run: 21 November 2026.

    • MD5 was checked against the seven examples in RFC 1321, lengths around the 64-byte block edge where padding needs an extra block, and UTF-8 text.
    • SHA-1, SHA-256 and SHA-512 against the published values for "abc" and for empty text.
    • HMAC against RFC 4231 (HMAC-SHA256) and RFC 2202 (HMAC-MD5 and HMAC-SHA1), including a key longer than a block; an empty key works too.
    • Using the tool: five hashes as you type, capitals, Base64, the compare box lighting up the matching line, a line break at the end and the option to ignore it, and HMAC with a key.

    What the tests did not cover: Safari and Firefox were not tested. Something not working? Tell me on the contact page.

    FAQ

    Can I reverse an MD5 hash?

    No. Websites that claim to "decrypt" MD5 only look up hashes of common words they have stored.

    Is the empty text's hash really something?

    Yes. Every algorithm has a hash for empty input; the SHA-256 of nothing starts e3b0c442.

    Are capital letters a different hash?

    No. Hex hashes are the same in capitals or lower case; only the letters a to f change case.

    Published 21 November 2026