Text to Hex Converter (and back)
Paste text to get its UTF-8 bytes as hexadecimal, or paste hex to decode it back to text. Choose the separator (space, none, colon or \x), and upper or lower case. Decoding ignores spaces, colons and 0x or \x prefixes, so you can paste hex in almost any style. Everything runs locally in your browser — nothing is uploaded.
How to use
- Choose the direction: text to hex, or hex to text.
- For text to hex, pick the byte separator and letter case.
- Paste your input and copy the converted result.
Frequently asked questions
- How are non-ASCII characters handled?
- Text is encoded as UTF-8 first, so accented letters, emoji and CJK characters become their multi-byte hex sequences and decode back exactly.
- What hex formats can I decode?
- Any. Spaces, colons, newlines and 0x or \x prefixes are stripped, then the remaining hex digits are read two at a time. An odd number of digits is reported as an error.
- What does the separator option do?
- It sets how bytes are joined when encoding: a space (48 65), nothing (4865), a colon (48:65) or a \x prefix (\x48\x65). Decoding accepts all of these.
- Is my text sent anywhere?
- No. The conversion happens entirely in your browser; nothing is uploaded.
Guides on this topic
Related tools
Text to Binary Converter
Convert text to 8-bit binary and back. UTF-8 encoded, so emoji and accented characters work, with a choice of byte separator.
Base64 to Hex Converter (and back)
Convert a Base64 string to hexadecimal bytes and hex back to Base64, with URL-safe support, in your browser.
ASCII Code Table
Browse and search the 256-row ASCII / extended-ASCII table — decimal, hex, octal, binary, and the named control characters.
Image → ASCII Art
Convert any image to ASCII art with adjustable width, character set, and inversion — all in your browser.
Folder Tree Visualizer
Paste an indented list of file and folder names and get a pretty ASCII tree — the kind you'd paste into a README.
Number Base Converter
Convert numbers between binary, octal, decimal, and hexadecimal.