Free tool · Developer tools
Hex to text converter
Paste hex into this hex to text converter and read the text it holds. The example 43 61 66 c3 a9 20 e2 82 ac 35 is 10 bytes and decodes to "Café €5", which is 7 characters because é takes two bytes and € takes three.
- Free
- No sign-up
- Runs in your browser
- 10 bytes
- 7 characters
- UTF-8
- Plain hex digits
- Bytes read
- 43 61 66 C3 A9 20 E2 82 AC 35
- Lines
- 1
| Character | Code point | Bytes |
|---|---|---|
| C | U+0043 | 43 |
| a | U+0061 | 61 |
| f | U+0066 | 66 |
| é | U+00E9 | C3 A9 |
| (space) | U+0020 | 20 |
| € | U+20AC | E2 82 AC |
| 5 | U+0035 | 35 |
How to use the Hex to Text Converter
- Paste your hex into Hex to decode. Spaces, commas,
0x,\xand%codes are all removed for you. - Choose Read the bytes as. UTF-8 is right for most modern text; pick another encoding if the result looks garbled.
- If the hex came from a tool that prints an address column and a text column, tick This is a hex dump.
- Press Copy text, and use the character table to check which bytes made which character.
How do I convert hex to text?
Two hex digits make one byte, a number from 0 to 255, and a character encoding says which character each byte, or each short run of bytes, stands for. In 43 61 66 c3 a9 20 e2 82 ac 35, the pair 66 is 6 × 16 + 6 = 102, and 102 is the letter f. The pair 35 is 3 × 16 + 5 = 53, the digit 5. Most characters here are one byte, so the decoding is a lookup.
The two characters that are not plain English letters show how UTF-8 works. The pair C3 A9 is the bytes 11000011 and 10101001. The first byte says "two bytes follow as one character", and the remaining bits, 00011 and 101001, join into 11101001, which is E9 in hex and the code point U+00E9, the letter é. The three bytes E2 82 AC work the same way and give € (U+20AC). That is why 10 bytes produce only 7 characters.
| Character | Code point | Bytes (hex) |
|---|---|---|
| C | U+0043 | 43 |
| a | U+0061 | 61 |
| f | U+0066 | 66 |
| é | U+00E9 | C3 A9 |
| (space) | U+0020 | 20 |
| € | U+20AC | E2 82 AC |
| 5 | U+0035 | 35 |
Which hex formats can I paste?
The page skips spaces, commas, semicolons, colons, dots, hyphens and the markers 0x, \x and % before it reads the bytes, so you do not have to clean the hex first. The table shows six common ways to write the same three bytes, and all of them give the same text.
Every group of digits must have an even length. A group such as 656 stops the conversion with a message that names the group, because there is no safe guess for the missing digit. A letter outside A to F gives a message that names the letter.
| Style | Input | Text |
|---|---|---|
| Plain pairs | 48 69 21 | Hi! |
| No separator | 486921 | Hi! |
| 0x prefixes | 0x48, 0x69, 0x21 | Hi! |
| \x escapes | \x48\x69\x21 | Hi! |
| Percent codes | %48%69%21 | Hi! |
| Colons | 48:69:21 | Hi! |
Why does the same hex give different text?
Hex stores bytes and says nothing about the encoding. The table decodes 43 61 66 c3 a9 20 e2 82 ac 35 five ways. Read as Latin-1, every byte is one character, so the é shows up as two characters, Ã and ©, a pattern anyone who has seen broken accents will know. ASCII has no meaning for bytes above 7F, so 5 places are replaced by the mark �. UTF-16 reads two bytes at a time and turns plain English hex into unrelated symbols.
Use this to diagnose text that looks wrong: if UTF-8 gives �, try Latin-1; if every second character is a null or a space, try UTF-16. A correct decode has no replacement marks, and the page warns you with the byte position of the first bad place when it finds one.
| Read as | Text | Characters | Bad places |
|---|---|---|---|
| UTF-8 | Café €5 | 7 | 0 |
| ASCII (7-bit) | Caf�� ���5 | 10 | 5 |
| Latin-1 (ISO 8859-1) | Café â[82]¬5 | 10 | 0 |
| UTF-16 little-endian | 慃썦₩苢㖬 | 5 | 0 |
| UTF-16 big-endian | 䍡曃ꤠ갵 | 5 | 0 |
How do I decode a hex dump?
A hex dump prints an address column, the bytes and often the text beside them, so the numbers in the first and last columns are not part of the data. Tick the dump box and the page drops the leading address and the trailing text column of every line before it reads the bytes. These two lines come from two different dump layouts and both give "Hello, World!" and a line feed: 00000000: 4865 6c6c 6f2c 2057 6f72 6c64 210a Hello, World!. and 00000000 48 65 6c 6c 6f 2c 20 57 6f 72 6c 64 21 0a |Hello, World!.|. Each gives 14 bytes.
Leave the box clear for plain hex. With it ticked, a first group of four or more digits followed by a space, such as 4865 6c6c, would be taken for an address, so keep it off for hex that has no dump columns. When it is off and you paste a dump by mistake, the message tells you to tick it.
One layout does not work: plain BSD or macOS hexdump without the -C option prints 16-bit words in little-endian order. The line 6548 6c6c 206f stands for the bytes 48 65 6c 6c 6f 20, but read as typed it gives eHll o. Run xxd or hexdump -C instead, which print the bytes in file order.
Use it with
- HEX to RGB Converter: HEX, RGB, HSL, CMYK conversions.
- ASCII to Hex Converter: convert ASCII text to hex codes with a byte table, control character names and five output styles. Accents and emoji become UTF-8 bytes.
- Base64 Encoder Decoder: encode or decode Base64.
Questions
How do I convert hex to text by hand?
Turn each pair into a number (66 is 6 × 16 + 6 = 102), then look up the character for that number. For ASCII, 102 is f. Bytes above 7F belong to multi-byte encodings such as UTF-8, where C3 A9 together is é.
Why do I see � in the result?
The bytes are not valid in the chosen encoding, or the hex is not text. Try another encoding, check that no digit is missing, and tick the dump box only for real hex dumps.
Do I need spaces between the hex pairs?
No. 486921 and 48 69 21 give the same text. Commas, colons and line breaks work too, and so do 0x, \x and % prefixes.
What does an odd number of digits mean?
A byte needs two digits, so a group with three or five is incomplete. Add a leading 0 to a lone digit, for example 0A, and look for a digit lost in copying.
Can it read binary or decimal bytes?
This page reads hex only. Use the binary to text converter for ones and zeros or decimal byte values.
Is my hex sent anywhere?
No. The decoding runs in the page on your device and nothing you paste is uploaded or saved.
The tool's results are computed in your browser by the code on this page; the explanations are checked against the tool's own output.