Text to Hex Converter
runs in your browserno sign-upfree
Convert text to hexadecimal bytes and hex back to text. Choose spaces, commas or no separator and 0x prefixes; reads \x41 and 0x41 styles too.
Converted to hex codes
About this tool
Convert text to hexadecimal — two hex digits per byte, such as 48 65 6C 6C 6F for “Hello” — or decode hex back to text. Use it for debugging, network data, escape sequences and byte-level checks. Output can use spaces, commas or no separator, with optional 0x prefixes; input can be in 0x41, \x41 or plain 41 style.
How to use
- Type or paste your text to see its hex bytes.
- Choose the separator and whether to add a 0x prefix.
- To decode, press Hex → text and paste the hex.
FAQ
How do I convert hex to text?
Press Hex → text and paste the hex. Spaces are optional: 48656C6C6F and 48 65 6C 6C 6F both become “Hello”. Bytes are decoded as UTF-8, so multi-byte characters like é (C3 A9) come out correctly.
What about accents, other alphabets and emoji?
They aren’t ASCII, so they are stored in more than one byte. With “UTF-8 bytes” (the default, and what files and web pages use) é becomes two values and an emoji four. Choose “Unicode code points” to get one number per character instead (é = 233, 😀 = 128512).
Which hex formats can I convert back to text?
Values separated by spaces, commas or new lines, with or without prefixes such as 0x, \x, 0b or U+. Hex and binary also work as one unbroken run (48656C6C6F or 0100100001101001). Values above 255 are read as Unicode code points.
Is my text uploaded?
No. The conversion runs in your browser, so your text never leaves your device.