Start a project

Tool 81 of 100 · Files

Hex File Inspector

Open any file to see its bytes in hex and ASCII, what type it really is, how it's structured inside, and the values at any offset, without uploading it.

Hex File Inspector at a glanceIllustration: 1, Any file; 2, processed in your browser; 3, Hex, structure, entropy.Hex File Inspector89504E470D0A1A0A0000000D.PNG····1Any file3Hex, structure, entropy2In yourbrowser
1 Any file 2 processed on your device 3 Hex, structure, entropy

Hex File Inspector

File

Hex view

Data inspector

Click any byte in the hex view to read the values that start there.

TypeValue

Entropy by block

Structure

OffsetSizePartDetails

Printable strings

Strings with their offsets

01

What it does

A paged hex dump with file-type detection, structure walks for common formats, a data inspector, byte search, strings and entropy.

  • Paged hex and ASCII view with offsets
  • File type from magic numbers, whatever the extension
  • Structure of PNG, JPEG, GIF, ZIP, gzip, ELF, PE, WASM, PDF and MP4
  • Data inspector: integers, floats, times and text at any offset

02

Private by design

Everything happens in your browser. Nothing you type, paste or upload is sent anywhere, and it keeps working offline once the page has loaded.

03

What you get

A hex dump, structure table and strings, with a Copy and a Download button on every result.

  • Hex
  • Binary
  • Files
  • Forensics

Why it matters

When a file won't open, an upload is rejected or a download looks suspicious, the answer is in the bytes: the first few say what the file really is, whatever its name, and the structure shows whether it's complete or damaged.

This inspector reads the file on your device and shows the hex, the detected type and a walk through its structure, such as the chunks in a PNG or the entries in a ZIP. The entropy chart shows compressed or encrypted regions, and the data inspector reads any value at the offset you click.

How it works

  1. InputA file from your device
  2. In your browserRead byte by byte, format detected
  3. OutputA hex view, structure, entropy and strings

Where it fits in a designer's workflow

  1. Plan
  2. Design
  3. Build
  4. Test
  5. Launch
Checking what a file really is.

By the numbers

Entropy of files from this sitestyles.css (text): 5.32 bits per byte; styles.css gzipped: 7.98 bits per byte; Tool icon (SVG): 4.97 bits per byte; Sample photo (JPEG): 7.98 bits per byte7.5styles.css (text)5.32 bits per bytestyles.css gzipped7.98 bits per byteTool icon (SVG)4.97 bits per byteSample photo (JPEG)7.98 bits per byte
Measured by this tool's own entropy function. Text sits around 5 bits per byte; compressed or encrypted data is close to the maximum of 8, which is how the inspector spots packed or encrypted sections inside a file. Source: Shannon (1948).
Show the numbers as a table
FileBytesBits per byte
styles.css (text)373525.319
styles.css gzipped93837.978
Tool icon (SVG)4014.968
Sample photo (JPEG)387787.975

How to use it

  1. Choose a file, or try the sample PNG.
  2. Read the detected type and structure.
  3. Click a byte to read the values starting there.
  4. Search for text or hex, or browse the strings.

FAQ

How does it know the file type?

Most formats start with a fixed 'magic number', such as 89 50 4E 47 for PNG or 50 4B 03 04 for ZIP. The extension is ignored.

What's entropy?

How random the bytes look, from 0 to 8 bits per byte. Near 8 means compressed or encrypted; text and code are usually 4 to 5.

Can it edit files?

No. It's read-only, so nothing can be damaged.

Is the file uploaded?

No. It's read in your browser, up to 64 MB.

Work with me

Want a site that gets these right?

I build fast, accessible websites and web apps that pass these checks from day one. Tell me about your project and I'll reply personally with honest next steps.

All developer tools · Back to leej.uk