Developer tools

Hex Viewer

Online Hex Viewer

Open any file and inspect its bytes in hex and ASCII, with search and offset jump.

About this tool

About Hex Viewer

See exactly what is inside a file, byte by byte. Open or drop any file, from a PNG or PDF to a firmware image or an unknown download, and the viewer lays it out in the classic three columns: the offset in hex, sixteen bytes per row in hexadecimal, and their printable ASCII characters. Only the rows on screen are drawn, so files of hundreds of megabytes scroll smoothly. Type an offset such as 0x1F40 or 8000 to jump straight to it, or search for text in UTF-8 or a hex byte pattern with ?? wildcards and step through every match. Click a byte to read it as a signed or unsigned 8, 16 or 32-bit integer in little and big endian, or as a float, and Shift-click to select a range you can copy as hex or text, or download as a hex dump. The viewer also identifies the file type from its magic number. Files are read into your browser's memory only and never uploaded.

Built and maintained by Abhi JainUpdated

How to View a File in Hex

  1. 1

    Open a file

    Click Open any file or drop a file onto the page. The File panel shows its size and detected type.

  2. 2

    Move around

    Scroll the byte grid, use the arrow keys, or type an offset in Go to offset and press Go.

  3. 3

    Search

    Choose Text or Hex bytes under Find, type what you are looking for, and use the arrows to step between matches.

  4. 4

    Inspect and copy

    Click a byte (Shift-click for a range) to see its numeric values, then Copy hex, Copy text or download a Dump.

Hex Viewer: questions and answers

What is a hex viewer used for?

It shows the raw bytes of a file. Developers use it to check file signatures, debug binary formats and protocols, find embedded strings, confirm encodings such as a UTF-8 BOM, and see why a file won't open.

How do I find out a file's real type?

Most formats start with a fixed signature, called a magic number: PNG files begin with 89 50 4E 47, PDFs with %PDF-, ZIP files (including DOCX and XLSX) with 50 4B 03 04. The viewer checks dozens of these and shows the detected type, whatever the file extension says.

What does little endian vs big endian mean?

It is the order in which a multi-byte number is stored. Little endian puts the least significant byte first, so the bytes 01 02 read as 0x0201 = 513; big endian reads them as 0x0102 = 258. x86 and ARM CPUs use little endian; many file formats and network protocols use big endian.

Can I edit bytes?

No, this is a read-only viewer, which makes it safe to open any file. You can copy any selection as hex or text.

How large a file can I open?

Anything your device has memory for, up to about 2 GB per file, because a browser tab can't hold more in one buffer. Scrolling stays fast at any size; searching a very large file can take a few seconds.

Is my file uploaded?

No. The file is read straight from your disk into this browser tab and is never sent anywhere.