Guide: Hex encoder & decoder
↑ Back to toolWhat is this tool?
Convert UTF-8 text to hex and hex byte strings back to text. Whitespace and 0x prefixes are stripped before decode. Each pair of hex digits maps to one byte; odd-length input is rejected with a clear error. Encode/decode modes, Monaco editors, resizable split, swap, copy, sample payloads, save, share, and history—entirely in the browser.
Why use it
Hex dumps appear in logs, firmware, certificates, and binary protocols. Quickly turn a snippet into readable text or verify what bytes a string would produce—without opening Python or xxd.
How to use
- Select encode or decode.
- Paste text or continuous hex (spaces allowed).
- Use swap to feed output back as input for round-trip checks.
FAQ
Why “hex string must have even length”?
Two hex digits = one byte. Trim stray nibbles or verify you copied the full dump.
Is this the same as Base64?
No—hex is 4 bits per symbol (0–9A–F), larger output than Base64 but human-readable for small blobs.
Related terms
Core: hex to text online, text to hex converter, hexadecimal decoder, 0x string decode utf8, hex dump to string.
Dev: bytes to hex javascript, protobuf hex debug, hmac key hex paste.
Learning: ascii table hex, utf-8 code units hex.
For mixed formats use unified encoder/decoder.
Similar tools
Conclusion
Keep this hex encoder/decoder handy whenever you need fast UTF-8 ↔ hex conversions with a comfortable editor UI.