Loading…

Developer tools10.06

MD5, SHA-1 and SHA-256 Hash Generator

Generate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of any text, and check whether it matches a hash you already have.

Back to Developer tools

Change a single character, including a space or a line break, and the hash changes completely.

Handy for verifying a checksum.

This runs entirely in your browser. We don’t store any data.

Hashes

UTF-8
  • MD5…
  • SHA-1…
  • SHA-256…
  • SHA-384…
  • SHA-512…

MD5 and SHA-1 are no longer secure for signatures or passwords, so only use them as checksums. Passwords should be stored with dedicated algorithms like bcrypt or Argon2.

How to use it

  1. 01

    Type or paste your text.

  2. 02

    All five hashes update at once as you type.

  3. 03

    To check a hash, paste it into “Compare with a hash.”

How it works

A hash function turns any text into a fixed-length fingerprint: 32 hex characters for MD5, 40 for SHA-1 and 64 for SHA-256. It’s deterministic (the same text always produces the same hash) and one-way: you can’t recover the text from the hash.

The SHA hashes are computed with your browser’s built-in Web Crypto API. MD5 isn’t included in that API because it’s broken for security use, so it runs on our own implementation, tested against the RFC 1321 test vectors.

Your text is encoded as UTF-8 bytes, so the result matches command-line tools like sha256sum or md5sum run on a UTF-8 file, as long as the file doesn’t have an extra newline at the end.

Examples

  • Test vector

    The MD5 of “abc” is 900150983cd24fb0d6963f7d28e17f72, and its SHA-256 starts with ba7816bf.

  • Empty text

    Even empty text has a hash. In MD5, it’s d41d8cd98f00b204e9800998ecf8427e.

  • Verifying a value

    If a website publishes the SHA-256 hash of a text or key, paste it into the compare box to confirm it matches.

Frequently asked questions

Can you “decrypt” a hash?

No. Hashing isn’t encryption, so there’s no key to reverse it. Sites that claim to decrypt hashes just look them up in tables of precomputed values.

Why doesn’t my hash match the one from my terminal?

It’s almost always a newline: echo adds one at the end. Use echo -n or printf instead, and make sure the file is saved as UTF-8.