Hex Viewer

Pick a file to see its bytes, sixteen to a row, with the ASCII text beside them. Click a byte to read the numbers that start there.

How it works

The viewer reads 512 bytes at a time, only the part on screen. A 4 GB disk image opens as fast as a 4 KB icon, and the file is never loaded into memory whole.

Each row shows the offset of its first byte, sixteen bytes in hexadecimal and the same bytes as ASCII. Bytes outside the printable range 0x20 to 0x7E show as a dot.

Search runs in a background worker that reads the file one megabyte at a time, so the page stays usable while it scans. The file stays on your device the whole time.

How to use it

  1. 1 Pick a file, or paste one you copied.
  2. 2 Scroll with Previous and Next, or type an offset such as 0x1000 or 4096 and press Go.
  3. 3 Click a byte to select it. The table below reads it as 8, 16, 32 and 64-bit integers and as floats.
  4. 4 Search for text or for hex bytes such as 50 4B 03 04. Press Find next to move to the next hit.

Good to know

  • The first few bytes usually name the format: 89 50 4E 47 is PNG, 25 50 44 46 is PDF, 50 4B 03 04 is ZIP, and FF D8 FF is JPEG.
  • Windows programs often store strings as UTF-16, with a zero byte after each letter. Text search will not find those; search in hex for 48 00 69 00 instead of Hi.
  • An offset with a letter in it, such as 1f00, is read as hex. A plain number such as 4096 is decimal. Add 0x to be sure.
  • With a byte selected, the arrow keys move the selection and Page Up and Page Down move a screen at a time.

Browser support

  • Chrome 94 and later
  • Firefox 93 and later
  • Safari 16.4 and later
  • Edge 94 and later

These are the oldest versions with everything the tool uses. They are worked out from the tool itself, so they change when it does.

Version numbers checked on 2026-09-04.

Reading a PNG’s width and height straight from its bytes

A hex viewer is the tool you reach for when a file will not open, a program says a file is the wrong type, or you want to see what a format really stores. The best way to learn to read one is to take a file you know and find something in it by hand. A PNG image works well, because its layout is short and public.

Open any PNG. The first row starts 89 50 4E 47 0D 0A 1A 0A. Those eight bytes are the PNG signature, and the ASCII column shows .PNG.... because 50 4E 47 are the letters P, N and G. Every PNG starts this way. If a file called photo.png starts with FF D8 FF instead, it is really a JPEG with the wrong name, which is a common reason an upload is rejected.

Next come four bytes, 00 00 00 0D, then 49 48 44 52, which the ASCII column shows as IHDR. The four bytes are the length of the header chunk, 13, and IHDR is its name. The image width starts right after the name, at offset 0x10, and the height at 0x14. Click the byte at 0x10. Say the four bytes there are 00 00 01 2C. With Big-endian selected, UInt32 reads 300: the image is 300 pixels wide. Switch to Little-endian and the same bytes read 738,263,040. Both readings are correct arithmetic. Only one matches the format, and the PNG specification says big-endian, so the width is 300.

Search works the same way. Type IDAT in text mode and press Find to jump to the first block of image data. Press Find next to step to the next one. Search in hex mode for 49 45 4E 44, the IEND chunk name, to find where the image officially ends. Any bytes after IEND are not part of the picture. Some tools hide extra data there, and this is how you would spot it.

The viewer has limits. It shows bytes, not meaning: it does not know any format, so you need the format’s specification to know which offset holds what. It cannot edit or save a file. Text search matches UTF-8, so text stored as UTF-16 needs a hex search. And the number table reads from the selected byte forward, so a value that is not aligned where you clicked will read as something else.

Frequently asked questions

Is my file uploaded?

No. The browser reads the file from your disk when you pick it, and only the bytes on screen are read at any moment. Nothing is sent to a server.

How big a file can it open?

Any size your browser can hand to a web page, which on desktop browsers includes files of many gigabytes. Viewing reads 512 bytes at a time. Search reads one megabyte at a time in a worker, so a very large file takes a while to search but does not freeze the page.

What is the difference between little-endian and big-endian?

They are the two orders for storing a number that takes more than one byte. The number 300 is 0x012C. Little-endian stores it as 2C 01, smallest byte first, as x86 and ARM processors do. Big-endian stores it as 01 2C, as PNG, JPEG and network protocols do. Pick the order the file format uses.

Can I edit the bytes?

No. This is a viewer. It never changes or saves your file.

Related tools

Your files are processed on your device and are not uploaded. You can verify this in your browser’s developer tools under the Network tab.