Developer Tools
Hex Dump Viewer - Text or File to Hex and ASCII
Display the hex dump of typed text or an uploaded file. Shows the byte offset, hexadecimal values, and printable ASCII representation in the classic xxd/od style.
13 bytes
| Offset | 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f | ASCII |
|---|---|---|
| 00000000 | 48 65 6c 6c 6f 2c 20 57 6f 72 6c 64 21 | |Hello, World!| |
Classic Hex Dump Format
Each row shows a byte offset (in hexadecimal), up to 16 bytes of data in hex pairs, and a
corresponding ASCII column where non-printable bytes appear as a period. This format is used
by tools like xxd, od -x, and most hex editors.
Byte grouping and endianness
Multi-byte values like 32-bit integers are stored differently depending on architecture.
Little-endian (x86, ARM by default) stores the least significant byte first: the
integer 0x0A0B0C0D is stored as 0D 0C 0B 0A. Big-endian (network byte order, MIPS, SPARC) stores the most significant byte first:
0A 0B 0C 0D. This distinction is critical when interpreting multi-byte fields in
binary file formats or network protocol analysis.
Common file magic numbers
| Format | Magic bytes (hex) | ASCII |
|---|---|---|
| PNG | 89 50 4E 47 0D 0A 1A 0A | .PNG.... |
| JPEG | FF D8 FF | - |
25 50 44 46 | %PDF | |
| ZIP / DOCX / XLSX | 50 4B 03 04 | PK.. |
| ELF (Linux binary) | 7F 45 4C 46 | .ELF |
| GIF | 47 49 46 38 | GIF8 |
| WebP | 52 49 46 46 ... 57 45 42 50 | RIFF...WEBP |
Use Cases
Hex dumps are useful for debugging binary protocols, inspecting file magic bytes, analysing encoding issues, and understanding how text is stored at the byte level. Additional uses include identifying corrupted files by comparing expected vs. actual magic bytes, analysing network packet captures, and reverse engineering proprietary binary file formats.