Skip to content
OddsockLocal
Local
Source text
HashSHA-256
ReadyRuns in this browser. Nothing is uploaded.

How to use

  1. Choose one file.
  2. Pick Hash. SHA-256 is the start.
  3. Paste an expected checksum if you have one, or leave it empty to see only the hex.
  4. Read matches. false means the bytes differ, including a newline you did not expect.

What is File checksum?

File checksum hashes the bytes of one file, not the characters you type. Choose the algorithm, drop the file, and read the hex. If you paste an expected checksum, the result is a small report: the checksum you computed and whether it matches, compared in lowercase. A file whose bytes are exactly Odd socks in the dryer. with no extra newline has SHA-256 0e1364279200dba3cce6a88e4ca8c9d0381ab37b8dceb937aff4fc556e0af54e, and an expected field set to that hex reports matches true.

Read more

A trailing newline, a UTF-8 BOM or a different line ending changes the digest even when the text looks the same in an editor. That is why the text hasher and the file hasher can disagree about a sentence you typed in one place and saved in another. The expected value is trimmed and lowercased before compare, so a checksum copied with a capital A still matches.

One file only. HMAC is not offered here; the secret field lives on the text hasher. The file is read in the tab.

Use cases

  • A download page published a SHA-256 and you want matches true before you open the archive.
  • Two copies of a note look identical and you suspect one of them has a trailing newline.
  • A vendor still publishes MD5 and you need that hex of the file you actually have, not of a retyped name.
  • You want CRC32 of a small file because an old tool printed that and nothing longer.

A one-line text file against a known SHA-256

File note.txt containing Odd socks in the dryer. with no added newline. Hash SHA-256. Expected checksum 0e1364279200dba3cce6a88e4ca8c9d0381ab37b8dceb937aff4fc556e0af54e.

checksum 0e1364279200dba3cce6a88e4ca8c9d0381ab37b8dceb937aff4fc556e0af54e, matches true.

Why use Oddsock

The expected field is the point of a download check. A hex string with no true or false still leaves the comparison to your eyes.

Related tools

Using this tool

The file includes whatever bytes were saved. A newline at the end is an extra byte. The text page hashes only what is in the box.