Skip to content

Hex ↔ ASCII converter

Turn a run of hex into readable ASCII, or text into hex. Pick the byte delimiter and case, and choose how non-printable bytes are shown. All processing happens in your browser.

Direction
Non-printable bytes
Non-printable byte rendering

Hex

ASCII

Nothing entered

Notes

What happens to bytes that are not printable characters?
A byte outside the printable ASCII range (0x20 to 0x7E) has no character to show. You choose how it appears: a single dot, which keeps the text aligned with the byte count, or a "\xNN" escape, which keeps the exact value visible. Either way the conversion never silently drops a byte.
Which characters count as ASCII when I convert text to hex?
Only code points 0x00 to 0x7F are ASCII. Anything above that — an accented letter, a symbol, an emoji — is encoded as UTF-8, so a single character can become two, three or four bytes. The tool warns when it sees such a character so a surprising byte count is never a mystery.
What input does the hex side accept?
Spaces, newlines, commas and "0x" prefixes are all ignored, so a dump copied from a terminal, a spec or a debugger pastes in as-is. An odd number of hex digits leaves a dangling nibble, which is reported and dropped rather than guessed at.
Does anything leave my browser?
No. There is no backend and no analytics on this page. Everything is converted in the tab and is gone when you close it.

These are debugging aids, not certified reference implementations. If a tool disagrees with your specification, trust the specification.