Hex File Compare

Compare two files in hexadecimal to spot mismatched bytes instantly. Upload locally, review offsets, ASCII columns, and confirm integrity securely inside your browser.

Upload
Drag & drop File A here
or click to browse your device
Choose the first file to compare
Upload
Drag & drop File B here
or click to browse your device
Choose the second file to compare
Only the first bytes from each file are read for faster comparisons

About Hex File Compare

Hex File Compare checks the first chunk of two files and highlights differences line by line. It renders a familiar hex dump with offset, hexadecimal values, and ASCII previews so you can validate digital signatures, confirm binary patches, or inspect suspicious downloads—all without uploading sensitive data.

How much of the files are compared?

You can choose the preview length up to 64 KB. The tool reads that amount from each file (or less if the file is shorter) so you get a quick diff without waiting for large transfers.

What does the "Show differences only" switch do?

When enabled, the table collapses to just the rows where File A and File B differ. Use it to focus on mismatched offsets and skim large binaries faster.

Do my files stay on my device?

Yes. The comparison runs entirely in your browser via FileReader, keeping confidential logs, firmware images, or executables private.

Why do identical files still show dots in the ASCII column?

Non-printable bytes are replaced with dots to keep the layout readable. Any printable characters (letters, digits, punctuation) appear directly so you can spot embedded text or headers.