Skip to content
OddsockLocal
Local
Source text

The preview shows up here.

ReadyRuns in this browser. Nothing is uploaded.

How to use

  1. Drop exactly two files.
  2. Read identical.
  3. If they differ, note firstDifference and open the hex viewer at that offset.

What is File compare?

A backup is either the same bytes or it is not. File compare takes exactly two files and walks them together. If every byte matches and the lengths match, identical is true and the first difference is null. If a byte differs, firstDifference is the offset of that byte, counting from zero. If one file is a prefix of the other, the difference is reported at the end of the shorter file.

Read more

You also get both sizes, so a mismatch of length is visible even before you interpret the offset. The page does not show a hex dump of the disagreement. The hex viewer is how you look at the bytes at that offset. Duplicate finder is how you hash a whole folder. This page is the two-file question.

Nothing is uploaded. The originals are not modified.

Use cases

  • A backup copy is checked against the original before the original is removed.
  • Two builds that should match are compared after a clean compile.
  • A download is compared with a second download when the checksum was never published.
  • A student finds the offset where two text files diverge, then opens that offset in the hex viewer.
  • Someone confirms a renamed file is still the same bytes.

Two files, one extra byte

Exactly two files. The second is the first plus one trailing byte.

JSON with identical false, firstDifference at the offset where the longer file continues, and both sizes.

Why use Oddsock

Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.

Related tools

Using this tool

The files are the same length and the same bytes. identical is true.