How to use ASCII Converter
- Pick the "Text to ASCII" tab and type or paste your text in the Input box, or open a file with "Open a file".
- Choose the "Code format" (Decimal, Hexadecimal, Binary (8-bit) or Octal) and read the codes in the Output box.
- To go back, open the "ASCII to text" tab and paste codes separated by spaces, commas or new lines.
- Use "Characters above 127" to decide what happens with letters such as é, and tick "Add 0x before hex codes" if you want prefixed hex.
- Click Copy or Download to keep the result.
Features
- Decimal, hexadecimal, binary (8-bit) and octal output
- Decodes codes separated by spaces, commas or new lines
- Hex may carry 0x prefixes or be run together in pairs, such as 4869
- Binary may be run together in 8-bit groups
- Optional UTF-8 bytes for characters above code 127
- Live output with no convert button
- Files up to 10 MB can be opened, and nothing is uploaded
Supported formats and limits
- Maximum input: 10,000,000 characters
Examples
| Input | Result |
|---|---|
| Hi! | 72 105 33 — Decimal codes. |
| Hi! | 48 69 21 — The same text in hexadecimal, written in uppercase. |
| Hi | 01001000 01101001 — Binary (8-bit) format. |
| 72 101 108 108 111 | Hello — Decimal codes decoded with the "ASCII to text" tab. |
| é | C3 A9 — Hexadecimal with "Use UTF-8 bytes" selected. With "Show an error" the tool reports that é is not ASCII. |
Limitations
- ASCII defines only codes 0 to 127. By default any other character gives an error; "Use UTF-8 bytes" writes its UTF-8 bytes instead.
- Codes above 127 are rejected when decoding unless "Use UTF-8 bytes" is chosen.
- Invalid digits, hex that is not in pairs and binary that is not in 8-bit groups give an error.
- Control characters (codes 0 to 31) are real codes but are invisible in the text.
- It does not detect which character encoding a file uses.
Learn more
ASCII, the American Standard Code for Information Interchange, maps 128 characters to the numbers 0 to 127. Codes 0 to 31 and 127 are control characters such as the line feed (10) and tab (9). Codes 32 to 126 are the printable characters: the space, digits, punctuation and unaccented English letters. Capital letters run from 65 to 90 and lowercase from 97 to 122, so each lowercase letter is its capital plus 32.
The same code can be written in different bases. The letter H is 72 in decimal, 48 in hexadecimal, 01001000 in binary and 110 in octal. Programmers usually meet the hexadecimal form in byte dumps, colour codes and protocol specifications.
ASCII is the first 128 characters of Unicode, and UTF-8 keeps them as single bytes with the same values. Characters beyond ASCII, such as é, are not part of it; in UTF-8 they take two to four bytes, which is what the "Use UTF-8 bytes" option shows. Extended "8-bit ASCII" tables such as Latin-1 or Windows-1252 are different encodings, and this tool does not use them.
Frequently asked questions
What is ASCII?
ASCII is a 7-bit character code that assigns numbers 0 to 127 to letters, digits, punctuation and control characters. For example, A is 65 and a is 97.
How do I convert text to ASCII codes?
Type your text on the "Text to ASCII" tab and choose a code format. Each character becomes one code, separated by a space.
Why do I get an error for letters like é or ñ?
They are outside ASCII, which stops at code 127. Choose "Use UTF-8 bytes" to write each one as its UTF-8 bytes instead, for example C3 A9 for é.
Can I decode hex without spaces?
Yes. Hex pairs can be run together, so 4869 decodes to Hi. Binary can also be run together if it is in 8-bit groups.
Is my text uploaded?
No. The conversion runs in your browser.
Sources
Last reviewed: September 30, 2026