Magic Bytes

Identify file types using header bytes

Enable JavaScript to use the interactive controls. Your guide and examples are available below.

Features

About Magic Bytes

Identify file types using header bytes

How to use it

  1. Paste a small source or data sample into the editor.
  2. Select the operation, language and formatting options offered by this tool.
  3. Review validation messages and inspect the output before copying or exporting it.

Try Magic Bytes

Hexadecimal file prefix: 89 50 4e 47 0d 0a 1a 0a

Processing and limitations

Browser data

Signature match is not complete file validation; local signature set is limited.

Questions and answers

What can I do with Magic Bytes?

Identify candidate formats from header-byte signatures and offsets.

Where is my input processed?

The main operations run in your browser. Device models may require a first-use download; browser storage and resource limits apply.

What should I check before using the result?

Signature match is not complete file validation; local signature set is limited.

Related tools

JavaScript Tool

Beautify and format JavaScript; Remove comments and unnecessary whitespace

Development

CSS Tool

Beautify and format CSS; Purify into one line and remove comments

Development

Python Tool

Decompile PYC files; Beautify and format Python code

Development

PHP Tool

Beautify and format PHP code; Decrypt PHP code

Development