Hex Translator: Text to Hex and Back
Convert text to hexadecimal bytes, or hex back to readable text.
Text tools
Each character becomes one or more UTF-8 bytes written as two hex digits. Pick how the bytes are separated, then copy.
This hex translator converts text into hexadecimal bytes and turns hex back into readable text. Each character is encoded as UTF-8 and written as two-digit hex values, so Hello becomes 48 65 6C 6C 6F. Paste up to 5,000 characters, choose a format and a direction, then copy the result.
What a hex translator shows you
Computers store text as bytes, numbers from 0 to 255. Hexadecimal writes each byte with two symbols from 0-9 and A-F, which is why it appears in file viewers, logs and source code.
Basic English letters, digits and punctuation take one UTF-8 byte each. Other characters take two, three or four.
| Character | Hex bytes |
|---|---|
| A | 41 |
| a | 61 |
| space | 20 |
| é | C3 A9 |
| € | E2 82 AC |
| 𝐀 (bold A) | F0 9D 90 80 |
The last row shows why styled letters from the bold copy and paste fonts take more room than plain ones: four bytes each instead of one.
Three output formats
The format buttons change only how the bytes are separated. For Hello you get 48 65 6C 6C 6F with spaces, 48656C6C6F with nothing between, or 0x48 0x65 0x6C 0x6C 0x6F in the style used in source code. Output letters are always capitals.
Decoding hex back to text
Switch to Hex to text and paste the bytes. The decoder strips every 0x prefix and ignores anything that is not a hex digit, so spaces, commas, colons and lowercase are all fine. 48:65:6c:6c:6f and 0x48,0x65,0x6C,0x6C,0x6F both decode to Hello.
One side effect: the letters a to f are hex digits, so a label such as “data:” pasted with the bytes is partly read as hex. Paste only the hex itself.
If the number of digits is odd, the last one is dropped and a note says so. Bytes that are not valid UTF-8 appear as a replacement mark. Swap direction moves the result into the input box and flips the mode, a quick way to check a round trip.
Related converters
The binary translator shows the same bytes as 0s and 1s. To see code points such as U+0041 instead of bytes, use the Unicode text inspector. The Alt codes list covers keypad numbers for typing symbols on Windows, and the Caesar cipher tool handles letter-shift puzzles. All are on the text tools page.
Hex is an encoding, not encryption. Anyone can decode it, so do not use it to hide passwords or private messages.
Hex translator FAQ
Does this convert numbers to hexadecimal?
No. It treats what you type as text. Entering 255 gives 32 35 35, the bytes for the characters 2, 5 and 5, not FF. For number conversion use a programmer calculator instead.
Can it read hex colour codes like #FF8800?
Not in a useful way. A colour code is three numbers for red, green and blue, not text. Decoding it here treats FF, 88 and 00 as character bytes and gives unreadable marks.
Is hex the same as ASCII?
Not quite. ASCII is a table that assigns numbers to 128 basic characters; hex is one way of writing those numbers. For plain English text the UTF-8 bytes shown here are identical to the ASCII codes.
Why did my hex decode into strange symbols?
The bytes were probably not UTF-8 text. They may come from another encoding such as UTF-16 or Latin-1, or from a file that is not text at all. This tool only decodes UTF-8.
