Skip to content
OddsockLocal
Local
Source text

The preview shows up here.

ReadyRuns in this browser. Nothing is uploaded.

How to use

  1. Drop one file.
  2. Read the detected type.
  3. Read the signature if you need the raw header.

What is File type detector?

Renaming a file does not change what it is. The type detector looks at the opening bytes and returns a detected type plus the first 16 bytes in hex, the signature. A PNG starts 89 50 4E 47. A PDF starts with the %PDF marker. A ZIP starts with PK. If the header matches nothing in the list, the type stays unrecognized instead of trusting the extension.

Read more

This report is deliberately smaller than the inspector. There is no modified time, no MIME comparison, no 256-byte dump. Use it when the only question is what the bytes claim to be. Use the inspector when you also want the size and a preview. Use the hex viewer when you need byte 10,000.

One file. It is not opened as a document, only sliced.

Use cases

  • A .jpg that will not render is checked and turns out to be a WEBP or a HTML page.
  • A support thread asks for the signature before guessing the format.
  • A batch of renamed downloads is sampled one by one.
  • A student learns that PK means zip, even when the name says .docx or .jar.
  • Someone confirms a font or a WAV header without reading the whole file.

Sixteen bytes decide the type

Any one file, regardless of its extension.

JSON with the file name, the detected type from the header, and the first 16 bytes written as hex.

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 extension is chosen by whoever saved the file. The signature is in the bytes. They disagree often enough that the name is not evidence.