Xerobit

Hash Checker: Verify Text Against a Hash Digest

Paste your text and an expected hash value to see if they match. This hash checker automatically detects whether you provided an MD5, SHA-1, SHA-256 or SHA-512 digest based on its length, computes all four, and reports the result. It runs entirely in your browser so nothing is uploaded to a server.

Result

Match found! The expected MD5 hash matches the computed digest.
  • MD5
    d41d8cd98f00b204e9800998ecf8427e

    Match!

  • SHA-1
    da39a3ee5e6b4b0d3255bfef95601890afd80709
  • SHA-256
    e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
  • SHA-512
    cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e

How to use the hash checker

  1. Paste or type the text you want to verify into the text area.
  2. Enter the expected hash value in the second field (MD5, SHA-1, SHA-256 or SHA-512).
  3. The hash checker automatically detects the algorithm by counting the hex characters.
  4. Review the comparison table to see if any of the computed digests match your expected value.

How algorithm detection works

A cryptographic hash function produces a fixed-length output. Because each algorithm uses a specific number of bits, the resulting hexadecimal string always has a predictable length. The hash checker counts the characters in your expected hash to determine which algorithm was used:

  • 32 characters: MD5 (128 bits)
  • 40 characters: SHA-1 (160 bits)
  • 64 characters: SHA-256 (256 bits)
  • 128 characters: SHA-512 (512 bits)

If the input contains any characters outside the hexadecimal range (0-9, a-f), or if the length does not match one of these four sizes, the tool returns an error. Once detected, the tool computes all four digests of your text using pure JavaScript logic and compares them against your expected value.

Reference table of empty-string hashes

To test the hash checker quickly, you can use the known digests of an empty string. These values are constant and useful for verifying that a hashing implementation is correct.

AlgorithmHex digest of empty stringLength
MD5d41d8cd98f00b204e9800998ecf8427e32
SHA-1da39a3ee5e6b4b0d3255bfef95601890afd8070940
SHA-256e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b85564
SHA-512cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e128

Practical use cases

Verifying file integrity is the most common reason to use a hash checker. When you download software, the publisher often provides a checksum. By hashing the downloaded file locally and comparing it to the published value, you confirm the file was not corrupted during transfer or tampered with by a third party.

Developers also use hash verification when testing APIs or database records. If a system stores hashed passwords or tokens, you can check whether a plaintext input produces the expected digest. For identifying unknown hashes rather than verifying a known one, a dedicated hash identifier analyzes structural patterns beyond simple length.

If you need to produce a new digest from scratch rather than compare an existing one, use a specific tool like the MD5 hash generator, SHA-1 hash generator or SHA-256 hash generator.

Common mistakes when verifying hashes

The most frequent cause of a failed match is invisible whitespace. A trailing newline character, a space at the end of the text, or a difference between Windows (CRLF) and Unix (LF) line endings will produce a completely different digest. Always ensure the text you paste matches the exact byte sequence that was originally hashed.

Another mistake is confusing uppercase and lowercase hex characters. While the comparison should be case-insensitive, some strict systems treat them differently. This hash checker normalizes both inputs to lowercase before comparing. Finally, do not confuse checksums like CRC32 or Adler-32 with cryptographic hashes; they serve different purposes and have different lengths.

Security notes on older algorithms

MD5 and SHA-1 are included here because many legacy systems still rely on them for checksums and non-security purposes. However, neither algorithm is considered secure against collision attacks. Researchers demonstrated practical MD5 collisions in 2004 and SHA-1 collisions in 2017.

For any application where security matters, such as digital signatures, certificate validation or password storage, use SHA-256 or SHA-512. If you are checking hashes for password auditing, remember that plain hashing without a salt is vulnerable to rainbow tables. Tools like the bcrypt generator or PBKDF2 generator are designed specifically for secure password hashing.

Worked examples

ExampleInputResult
Empty string MD5Expected hash: d41d8cd98f00b204e9800998ecf8427eMD5: d41d8cd98f00b204e9800998ecf8427e; SHA-1: da39a3ee5e6b4b0d3255bfef95601890afd80709; SHA-256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855; SHA-512: cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e
Hello SHA-256Text to hash: hello; Expected hash: 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824MD5: 5d41402abc4b2a76b9719d911017c592; SHA-1: aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d; SHA-256: 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824; SHA-512: 9b71d224bd62f3785d96d46ad3ea3d73319bfbc2890caadae2dff72519673ca72323c3d99ba5c11d7c7acc6e14b8c5da0c4663475c2e5c3adef46f73bcdec043
Mismatched hashText to hash: test; Expected hash: 0000000000000000000000000000000000000000000000000000000000000000MD5: 098f6bcd4621d373cade4e832627b4f6; SHA-1: a94a8fe5ccb19ba61c4c0873d391e987982fbbd3; SHA-256: 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08; SHA-512: ee26b0dd4af7e749aa1a8ee3c10ae9923f618980772e473f8819a5d4940e0db27ac185f8a0e1d5f84f88bc887fd67b143732c304cc5fa9ad8e6f57f50028a8ff

FAQ

How does this hash checker know which algorithm I am using?

It counts the number of characters in your expected hash. MD5 is always 32 hex characters, SHA-1 is 40, SHA-256 is 64, and SHA-512 is 128. If the length does not match one of these, it returns an error.

Is my text sent to a server when I use this tool?

No. The hashing is performed locally in your browser using pure JavaScript. Your text and hash never leave your device.

Why does my hash not match even though the text looks identical?

Hidden characters such as trailing spaces, tabs or newline differences (CRLF versus LF) change the underlying bytes. Even a single extra byte produces a completely different hash.

Can I use this to check file hashes?

This tool accepts text input. To check a file, you would need to read the file as text first. For binary files, use a command-line tool or a dedicated file hashing utility.

Is MD5 safe to use for verifying downloads?

MD5 is fine for detecting accidental corruption during a download, but it is not secure against intentional tampering. An attacker can craft a malicious file with the same MD5 hash. Use SHA-256 for security-critical verification.

Does the case of the hex letters matter?

No. The hash checker converts both the expected hash and the computed digests to lowercase before comparing them, so uppercase and lowercase hex strings are treated as equal.