The offset is the address
The left column counts from zero in hexadecimal. A format that says a field starts at 0x38 means the thirty-eighth byte after the start of the file, and the column is how you check that a parser agrees.
Pikkola Hex, tool No. 85
Paste hex or base64, or drop a file, and read it as an offset table with the ASCII beside it. Pick a byte and the same eight bytes are read as signed, unsigned and floating point, in both byte orders, which is how a value that looks wrong on one side is found.
The viewer
Sixteen bytes a row with the offset on the left and the printable characters on the right. Click any byte, or walk with the arrow keys, and the interpreter reads from there.
The first 256 KB are read in this tab.
-
-
A hex view is not a format reader. It is the layer under one, where a length, an offset and a byte order stop being abstractions.
The left column counts from zero in hexadecimal. A format that says a field starts at 0x38 means the thirty-eighth byte after the start of the file, and the column is how you check that a parser agrees.
A four-byte 1 in a file written by an x86 machine is 01 00 00 00, and the same value in a network header is 00 00 00 01. Reading both orders at once is the fastest way to see which one a file uses.
0xFF is 255 unsigned and -1 signed. A length that comes out as -1 is a 0xFF read as a signed byte, and a colour channel that comes out as 255 is the same byte read the other way. The type is the reader's decision, not the file's.
The page reads bytes and widths. It does not know what the bytes mean, and it does not pretend to; that is the next tool up.
| Part | What this page does | What it will not do |
|---|---|---|
| A hex string | Spaces, 0x prefixes, backslash escapes and comments are stripped | Guess whether an unlabelled pair is hex or decimal |
| Base64 | Standard and URL-safe alphabets, whitespace ignored | Repair a block with the wrong padding silently |
| Widths | 8, 16, 32 and 64 bit, signed and unsigned, both byte orders | Know which width the file intended |
| Floats | IEEE 754 single and double, both byte orders, with NaN and Infinity named | Read a fixed-point or a half float |
| A search | A hex pattern or a UTF-8 string, every hit marked | Search a regular expression over bytes |
| A file | The first 256 KB, read in this tab | Edit the file or write it back |
A 64-bit value past 2^53 loses precision as a JavaScript number, so the 64-bit readings are printed as exact integers from a BigInt. Everything below that is an ordinary number.
Field guide
A hex dump is the layer under every format reader. This is how to read the left column, why the same four bytes are two numbers, and where a byte inspector stops and a parser has to begin.
A dump counts bytes from zero, in hexadecimal, eight or sixteen to a row. When a specification says a length field sits at offset 0x08 and is four bytes long, the dump is how you see whether the program that read the file agrees: byte 0x08 is the ninth byte, and four bytes from there are 0x08 to 0x0B. A field that starts one byte late shows up as a number that is a power of 256 away from the right one, which is why an off-by-one in a parser is often diagnosed by reading the hex and not by reading the code.
The right column is the same bytes read as characters, with anything outside printable ASCII shown as a dot. It is the fastest way to see that a header is text, and it is deliberately not a text decoder: a UTF-8 Korean syllable is three bytes, and all three appear as dots.
A 32-bit value is four bytes, and the bytes can be laid down most significant first (big endian) or least significant first (little endian). The number 1 is 00 00 00 01 big endian and 01 00 00 00 little endian. Intel and ARM in their usual modes write little endian, so a binary file from a laptop is usually little endian; network protocols are defined big endian, and PNG, JPEG and most container formats write their lengths big endian.
| Bytes | uint32 LE | uint32 BE |
|---|---|---|
01 00 00 00 | 1 | 16,777,216 |
00 00 01 00 | 65,536 | 256 |
FF FF FF FF | 4,294,967,295 | 4,294,967,295 |
The last row is the useful one: all ones is the same number either way, which is why a sentinel passes while every real value looks wrong.
Eight bits hold 256 values. Read as unsigned, 0xFF is 255; read as signed two's complement, it is -1. Nothing in the file says which. A length of -1 in a log usually means a length field of 0xFF read as signed, and a colour channel of 255 in a screenshot tool is the same byte read unsigned. The same is true at every width, which is why this page prints both.
An IEEE 754 single-precision float is 32 bits: one sign, eight exponent, twenty-three mantissa. 3F 80 00 00 big endian is 1.0, and so is 00 00 80 3F little endian. A float that prints as 2.24e-41 is almost always an integer read as a float, and a float that prints as NaN is a bit pattern no arithmetic produced. Reading the hex under a suspicious float is how a serialisation bug is told apart from a calculation bug.
This page knows widths and byte orders. It does not know that the four bytes at 0x08 were a length rather than a colour, and it cannot tell you where the next record starts. That knowledge belongs to the format, and the tool above this one: read the type of the file first, then use the dump to check what the reader did with it.
When the bytes at the top of the dump are the question, Pikkola Mime names the format from them. When the whole file has to be identified rather than read, Pikkola Hash is the shorter answer.
No. It is read with the browser's file reader into memory in this tab, up to 256 KB, and the dump is drawn from that. Nothing is stored and nothing is sent; the only request after the page loads is the cookieless page-view count.
Because the byte order decides, and both are shown on purpose. 01 00 00 00 is 1 read little endian and 16777216 read big endian. A file written on an x86 machine is usually little endian, a network header is always big endian, and a PNG chunk length is big endian too.
Everything outside printable ASCII becomes a dot, including the bytes of a UTF-8 Korean character, which arrives as three bytes above 0x7F. That is not damage: it is the difference between a byte and a character, and the column is deliberately honest about it.
Partly. The dump shows the bytes, and a 16-bit reading from the right offset gives the code units, but this page does not decode UTF-16 as text. For a file like that, an editor that knows the encoding is the better tool; the dump is for checking what the editor did.
The first 4,096 bytes are drawn and the first 256 KB are kept, because a browser page that renders a hundred thousand rows stops being usable. Search still runs over everything that was read, and the byte count above the dump is the real size of what was loaded.