Code · Made a little simpler

Hash Comparison

Compare two hexadecimal digests, ignore case and byte separators, and find the first unequal byte. Open a file to compute its SHA digest on your device.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device
Side A
Side B

Enter two hexadecimal digests to compare.

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

Hash Comparison: how to use it

  1. Paste the expected digest into one side. Paste another digest or open the corresponding local file on the other side.
  2. For file inputs, select the same SHA algorithm used to create the expected digest.
  3. Read the match, length mismatch or first unequal byte, then choose Copy comparison if you need a record.

Limits and notes

Compare up to 1,024 digest bytes per side. Paste whole hexadecimal bytes with optional spaces, colons, single hyphens or a 0x prefix. File inputs allow up to 50,000,000 bytes and compute SHA-256, SHA-384 or SHA-512 in your browser. Algorithm hints describe common output lengths.

How your privacy works →

Hash Comparison: common questions

Do uppercase and lowercase hexadecimal digits compare the same?

Yes. A4, a4 and 0xA4 represent the same byte. Spaces, colons and single hyphens can separate complete byte groups.

Can I tell which algorithm produced a 64-digit digest?

Sixty-four hexadecimal digits represent 256 bits. SHA-256, SHA3-256 and several other methods can produce that length. Use the algorithm named alongside the source digest.

Does a text file’s byte-order mark affect its checksum?

Yes. A file digest uses its exact bytes. A UTF-8 byte-order mark adds EF BB BF before the text. Line endings and trailing newlines also contribute bytes.

Will changing the file algorithm rehash a file I already opened?

The selection applies when you open a file. Each computed digest lists its algorithm. Open the file again after changing the selection to replace that digest.

Guides