Paste hexadecimal bytes and read them as text, or type text and get its hex codes, with an ASCII table below.
Hex to ASCII table (0x20–0x7E): hex, character, decimal
Common words in hex
| Hello | 48 65 6C 6C 6F |
| hello | 68 65 6C 6C 6F |
| Hi | 48 69 |
| OK | 4F 4B |
| yes | 79 65 73 |
| no | 6E 6F |
| I love you | 49 20 6C 6F 76 65 20 79 6F 75 |
| test | 74 65 73 74 |
| admin | 61 64 6D 69 6E |
| 0 | 00 |
Processed in your browser. A copy of each run is saved to your past runs so you can reopen it. Privacy
About
What the Hex to Text does
Hex to Text turns hexadecimal byte values such as 48 65 6C 6C 6F into the text they encode (Hello), and text back into hex. It reads ASCII and UTF-8, accepts pairs with or without spaces, 0x prefixes and \x escapes, and shows the same bytes in decimal, binary and Base64. It is for developers reading packet dumps, logs and escaped strings. It decodes bytes; it does not decrypt anything.
Steps
How to use it
- 1Paste the hex into the Input panel: spaced pairs, one long string, 0x-prefixed or \x-escaped all work.
- 2Press Translate (or Cmd/Ctrl+Enter). The text appears on the right; decimal, binary and Base64 views appear below.
- 3To go the other way, press Swap: the text moves into the input and comes back as hex.
- 4Copy the result. The hex to ASCII table under the tool covers the printable characters 0x20 to 0x7E.
Example
A real run
Input
48 65 6C 6C 6F 2C 20 54 65 78 61 73 21
Output
Hello, Texas!
Thirteen bytes, read as UTF-8: 48 is H, 65 is e, 2C is the comma, 20 the space and 21 the exclamation mark. The same input written as 48656C6C6F or with 0x or \x prefixes gives the same text.
Options
Every setting, and when to use it
- Input is
- This page starts in Hex. Choose Text to type words and get their hex codes, or Detect automatically to let the tool decide between binary, decimal, hex and text. Fixing the format matters for short inputs such as cafe, which is valid hex and an English word.
- Delimiter
- The separator between bytes in the hex, decimal and binary outputs: a space (48 65 6C), none (48656C) or a custom string such as a comma or a colon for MAC-address style.
- Encoding: UTF-8 or 7-bit ASCII
- UTF-8 decodes multi-byte characters such as é (C3 A9) and emoji correctly, and is what almost every modern system sends. 7-bit ASCII treats each byte on its own and suits old protocols and homework that assumes one byte per character.
- Swap
- Moves the result back into the input and switches the format, so you can check a round trip from hex to text and back without copying by hand.
Good to know
Common problems and limits
Hex needs two digits per byte. A string with an odd number of digits is rejected with the count, for example "The hex string has 11 digits, which is not an even number", rather than guessed.
Bytes that are not valid UTF-8 text, such as part of an image or a hash, are shown as the replacement character � with a warning. The decimal and binary views below still show the exact bytes.
Input is limited to 1 MB. Hex is decoded to bytes and then to text; nothing is decrypted, so encrypted or compressed data stays unreadable after conversion.
Hex color codes such as #4F46E5 are three bytes of color, not text; use the Color Converter for those. For text to binary and binary to text, the Binary Translator is the better start.
Audience
Who uses it
- DevelopersRead a \x-escaped string from a log or a Python repr, or check what bytes a protocol field actually contains.
- Network and security engineersDecode the ASCII portion of a packet capture or a hex dump from Wireshark or xxd.
- CTF and puzzle playersTurn a hex clue into text in one step, then try the next layer in the Base64 decoder.
- StudentsCheck hand conversions of ASCII codes against the table and the decimal view.
FAQ
Frequently asked
What is "hello" in hex?
Lowercase hello is 68 65 6C 6C 6F, and Hello with a capital H is 48 65 6C 6C 6F. Each pair is one letter's ASCII code in hexadecimal: h is 0x68 (104) and H is 0x48 (72). Type a word with the input set to Text to get its hex codes.
How do I convert hex to text by hand?
Split the hex into pairs, convert each pair from base 16 to a number (4 and 8 make 4 × 16 + 8 = 72), then look the number up in an ASCII table: 72 is H. The table under the tool lists every printable character with its hex code, so you can check each step.
How do I convert ASCII codes to text?
If the codes are hex (48 65 6C), paste them here with the input set to Hex. If they are decimal numbers (72 101 108), set the input to Decimal. Either way the tool maps each code to its character and shows the text.
What is 11111111 in hexadecimal?
Binary 11111111 is FF in hexadecimal and 255 in decimal: each group of four bits makes one hex digit, and 1111 is F. FF is the largest value one byte can hold, which is why it appears so often in hex dumps and color codes.
What is the difference between hex and ASCII?
Hexadecimal is a way of writing numbers in base 16. ASCII is a table that assigns numbers 0 to 127 to letters, digits and symbols. A hex to ASCII conversion reads each hex pair as a number and looks it up in that table; UTF-8 extends the same idea to every character.
Why do I see � in the converted text?
Those bytes are not valid UTF-8 text, often because the hex is binary data (an image, a hash or encrypted content) or because a byte is missing. The tool shows � instead of guessing and warns you; the decimal and binary views still show the exact bytes.
Automation: an MCP tool translate_binary(input, "hex", encoding) → text and an n8n node are planned for this tool.