Hex Converter
Convert text to hex, or hex back to text, live as you type. Free, private — nothing is uploaded.
Your text converted to hex will appear here.Related tools
Specific conversions
Everything you need to convert hex
Live encode and decode
The result updates instantly as you type — no button to click, no page reload.
One-click swap
Swap the output back into the input and flip the mode to check your work or reverse a conversion.
Full UTF-8 support
Emoji, accented letters, and non-Latin scripts encode and decode correctly, byte for byte.
Lenient hex parsing
Paste hex with spaces, commas, or 0x prefixes — they're stripped automatically before decoding.
100% private
Runs entirely in your browser. Nothing you type or paste is uploaded or stored.
Copy or download
Grab the result to your clipboard, or download it as a .txt file.
Convert text and hex in three steps
- 1
Type or paste your text or hex
Switch to "Text → Hex" to encode, or "Hex → Text" to decode, then type or paste into the input box.
- 2
Read the result instantly
The conversion updates live as you type — lowercase, space-separated hex pairs one way, decoded UTF-8 text the other.
- 3
Copy, download, or swap
Grab the result with one click, download it as a .txt file, or hit swap to convert it right back and check your work.
Built for developers, students, and quick checks
Hex shows up anywhere raw bytes need a compact, readable form — debugging tools, network captures, and CS courses all use it. PixelTools converts between hex and text instantly, with no upload and no account needed.
Debugging byte data
Turn a raw byte dump from a debugger, memory inspector, or crash log back into readable text in seconds.
Inspecting network payloads
Decode hex-encoded bytes from a packet capture or API payload without installing a CLI tool.
Writing byte-array literals
Generate the exact hex byte sequence for a string you need to embed as a byte array or test payload.
Learning encoding basics
See exactly how text maps to bytes and hex — a common early topic in CS and networking courses.
Frequently asked questions
What is hexadecimal (hex)?
+
Hexadecimal is base 16 — it uses the digits 0-9 plus the letters a-f to represent a value, so every byte (0-255) fits in exactly two hex digits. It's the standard way to display raw byte data because it's far more compact than binary and easier to read in fixed-width pairs.
How does text-to-hex encoding work here?
+
Your text is encoded as UTF-8 bytes first (the same encoding the web, most files, and most APIs use), then each byte is written as a two-digit lowercase hex pair separated by spaces — e.g. "hi" becomes "68 69".
Why does my hex decode with an error?
+
Most often the hex string has an odd number of digits (each byte needs exactly two) or contains a character outside 0-9 and a-f. Spaces, commas, and 0x prefixes are stripped automatically, but a genuinely truncated or corrupted byte can't be guessed.
Does this handle emoji and accented characters?
+
Yes. Because encoding goes through full UTF-8 rather than a single-byte ASCII table, multi-byte characters like emoji and accented letters round-trip correctly — they just take up more than one hex pair, exactly as they do on disk or over a network.
Can I paste hex with 0x prefixes or commas?
+
Yes — the decoder strips whitespace, commas, and 0x/0X prefixes before parsing, so "0x68, 0x69" and "68 69" and "6869" all decode the same way.
Is my text or hex uploaded anywhere?
+
No. Everything runs entirely in your browser using JavaScript — nothing you type or paste is sent to a server.
What's the difference between hex and binary?
+
Both represent the same underlying bytes — binary uses two symbols (0 and 1) so a byte needs 8 digits, while hex uses sixteen symbols (0-9, a-f) so the same byte fits in 2 digits. Hex is generally preferred for display because it's far more compact and easier to scan.
Try the hex converter now
Free, no account needed.
Convert text or hex →