Hex Dump Viewer
Show text as a hex dump in hexdump -C or xxd format, or turn hex and dumps back into text.
Runs in your browser Your input never leaves your device.
Report a problem with this tool
About this tool
A hex dump shows each byte of some data as two hexadecimal digits next to the printable characters, which is how programmers inspect what is really in a file or a network message. Type or paste text and the tool dumps its UTF-8 bytes in the format of hexdump -C (offset, two groups of eight bytes, and the text between bars, with an asterisk for repeated lines unless you ask for all of them) or the default xxd format, or as plain hex bytes. Switch to the reverse mode to paste hex and get the text back: it understands plain hex such as 48 65 6c 6c 6f, lists like 0x48, 0x65, and complete dumps from hexdump -C or xxd (with any group size or line width), ignoring the offsets and the text columns. If the bytes are not valid UTF-8, they are shown again as hex. The dumps were compared byte for byte with the real hexdump -C, hexdump -v -C and xxd commands on ten test inputs, the dumps were read back with xxd -r, and xxd's own output with nine different group sizes and widths was read back exactly. This page works on text; to inspect an actual file, use a desktop tool or the file type identifier for its first bytes. Everything runs in your browser; nothing is uploaded.
How to use it
- Choose dump or reverse.
- Paste your text, hex or a hex dump.
- Pick the dump format.
- Copy the result.
Common problems
- The dump of my text has more bytes than characters
- Characters outside basic ASCII, such as accents and emoji, take two to four bytes in UTF-8.
- Reverse mode says something is not hex bytes
- Each token must be an even number of hex digits. Remove other text, or paste a complete dump so the columns can be recognised.
- I need to dump a file
- This page works on pasted text. The file type identifier shows the first bytes of any file, and hexdump or xxd on your computer dumps a whole file.