Text to Hex Converter (and back)
Convert
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.
Related tools
BCD Converter (Binary-Coded Decimal)
Convert decimal to and from 8421 binary-coded decimal — per-digit 4-bit nibbles, packed BCD hex bytes, and BCD validity checking.
Gray Code Converter
Convert between decimal, binary and reflected-binary Gray code, both directions, with an optional fixed bit width and a 0-7 reference table.
Two's Complement Converter (8–64 bit)
Enter a decimal, hex, binary, or octal value and see its 8/16/32/64-bit two's complement bit pattern, plus its signed and unsigned readings, hex, octal, and one's complement — in your browser.
IEEE 754 Float Converter (32 & 64-bit)
See the exact IEEE 754 bit layout of any number in float32 and float64 — sign, exponent, and mantissa bits, hex, the stored value, and rounding — or decode hex bits back to a number, all in your browser.
Number Base Converter
Convert numbers between binary, octal, decimal, and hexadecimal.
Unit Converter
Convert length, weight, temperature, area, volume, speed, and time.