File Type Identifier

Identify a supported file type from its leading bytes, check the suggested extension and compare the evidence in Three.js.

  • File & Data
  • Runs in your browser
  • Free, no signup

The guide

Tested tool guide Tested browser tools Checked November 28, 2026

What File Type Identifier does, with a checked example

Choose a file or paste its leading bytes in hexadecimal. The tool reports a type, suggested extension, and the byte evidence. Copy the report or inspect the leading bytes and detected type side by side in Three.js.

Worked example

A concrete input and expected output from the current implementation.

Input

Enter 50 4B 03 04 in the hex input.

Expected output

The tool identifies a ZIP archive and suggests .zip.

Those four bytes identify a ZIP local file header. Many ZIP-based formats share this container header.

How the result is produced

1

Open a file or enter bytes

The file name is shown separately. Type detection reads the early bytes, including any distinctive form type in a container header.

2

Read the detection result

A signature match supplies a media type and extension. A readable text header is reported separately from unknown binary bytes.

3

Review the byte evidence

The hex and printable character columns show the first 128 bytes. Copy Report includes the detected type and input size.

Good uses

  • Inspect files with the wrong extension.
  • Distinguish a WAV or WebP inside a RIFF container.
  • Read a small, pasted header without opening the full file.

Limits and checks

  • Use complete hexadecimal pairs when pasting a header.
  • Interpret a shared archive signature as the container type.
  • Keep application-specific validation separate from a signature match.

Common questions

Does an extension affect detection?

The file name is shown for reference. Detection uses the bytes.

Can a ZIP header identify a specific document subtype?

A ZIP signature identifies the container. The subtype depends on the records stored inside.

References and verification

The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.