Skip to content
Toolcroft

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.

Bytes/row:

13 bytes

Offset00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0fASCII
0000000048 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

FormatMagic bytes (hex)ASCII
PNG89 50 4E 47 0D 0A 1A 0A.PNG....
JPEGFF D8 FF-
PDF25 50 44 46%PDF
ZIP / DOCX / XLSX50 4B 03 04PK..
ELF (Linux binary)7F 45 4C 46.ELF
GIF47 49 46 38GIF8
WebP52 49 46 46 ... 57 45 42 50RIFF...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.