Hash and Checksum Generator (MD5, SHA-256)

Generate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes from any text and check them against an expected checksum. Runs entirely in your browser.

AlgorithmDigest (hex)Copy
MD5 -
SHA-1 -
SHA-256 -
SHA-384 -
SHA-512 -

VERIFY AGAINST AN EXPECTED CHECKSUM

What is a hash (or checksum)?

A hash function takes an input of any size and returns a short, fixed-length fingerprint called a digest. Hash the same bytes twice and you get the same digest both times; change a single character and the digest changes beyond recognition. That is what makes a digest useful for comparing two things without passing both of them around: if the fingerprints match, the inputs matched.

A checksum is the same idea used for integrity rather than security. It answers the question "did this text arrive exactly as it left?", not "was this text written by somebody trustworthy?".

Digest sizes at a glance

AlgorithmDigest sizeHex lengthStatus
MD5128 bits32 charactersBroken for security, fine for spotting accidental changes
SHA-1160 bits40 charactersDeprecated, collision attacks are practical
SHA-256256 bits64 charactersRecommended default
SHA-384384 bits96 charactersTruncated SHA-512
SHA-512512 bits128 charactersStrongest option here

MD5 is specified in RFC 1321, and the SHA family is specified by NIST in FIPS 180-4. Digest length alone tells you which algorithm produced a value, which is handy when a webhook hands you a checksum with no documentation attached.

How to use this hash generator

  1. Choose Text and type or paste the value, or choose File and pick a file from your disk.
  2. All five digests are computed straight away - MD5, SHA-1, SHA-256, SHA-384 and SHA-512 - and each row has its own copy button.
  3. Paste a checksum you were given into Expected checksum. The tool tells you which algorithm it matches, or explains why nothing matched.
  4. Tick Uppercase output when the system you are comparing against prints checksums in capitals.

Nothing is uploaded. MD5 is implemented inside this page; the SHA digests are produced by your browser's built-in Web Crypto API, the same code path the browser uses for its own security work.

Hashing tips and gotchas

FAQ

Is MD5 still safe to use?

Not for security. Practical collision attacks against MD5 have been published since 2004, so two different inputs can be crafted to produce the same MD5 digest. MD5 remains fine for non-security jobs such as spotting an accidental file change or a typo, but use SHA-256 or better whenever an attacker has a reason to forge the value.

Can a hash be reversed back into the original text?

No. A hash function throws information away, so you cannot run it backwards to recover the input. What people do instead is hash a huge list of guesses and look for a match, which is why short or common strings such as single words are easy to look up in a precomputed table, and why passwords should be salted before they are stored.

Why did I get a different hash for text that looks identical?

Hashing works on exact bytes, not on appearance. A trailing space, a different line ending, a smart quote instead of a straight one, or a letter written in a different case can all change the digest completely. Compare the byte count shown above the results and make sure both sides hashed byte-for-byte identical input.

← Back to all tools