About the ASCII to Text Converter
A list of character codes from a program, a puzzle or a data file is meaningless until it is turned back into characters. This ASCII to text converter reads decimal codes separated by spaces, commas, semicolons or new lines and shows the text immediately: 72 101 108 108 111 spells Hello. Codes above 127 are treated as Unicode code points, so accented letters, other scripts and emoji come through correctly, and invalid codes are pointed out.
In ASCII and Unicode, each number maps to exactly one character: 65 is A, 97 is a, 48 is the digit 0 and 32 is a space. Codes below 32 are control characters, such as 10 for a new line and 9 for a tab, which appear as line breaks and tabs in the output. Any value that is not a number, or is above 1,114,111, the largest code point Unicode allows, is reported with its position so you can fix the list.
Example: 72 105 33 decodes to Hi!, and 72,101,108,108,111 decodes to Hello. 128512 gives 😀, and in hexadecimal mode 48 69 gives Hi.
To turn text into codes use the text to ASCII converter. For hexadecimal UTF-8 bytes use the hex to text converter, for bits the binary to text converter, and for a printable chart the ASCII table.
How to use the ASCII to Text Converter
- Paste the codesSeparated by spaces, commas, semicolons or new lines.
- Choose the number formatDecimal by default, or hex, octal or binary.
- Read the textDecoded as you type, with Unicode beyond ASCII.
- Fix any errorsInvalid codes are reported with their position.
ASCII to Text Converter features
- Decimal ASCII codes
- Unicode code points up to 1,114,111
- Hex, octal and binary input
- Any separator
- Control codes such as new line and tab
- Error positions for invalid codes
- Copy or download the text
Common uses
- Decoding puzzle and quiz answers
- Programming exercises
- Reading character codes from data files
- Checking keyboard and device output
- Learning about encodings
ASCII codes to text in practice: serial device replies, numeric entities, spreadsheets, puzzles, cleaning control characters and mainframe data
Lists of character codes appear in serial monitor output, data files, numeric HTML entities, puzzles and exported logs. Converting them back to text reveals what a device said or what a file contains. This guide decodes a reply from a GSM module, then covers numeric entities, spreadsheets, puzzles, unwanted control characters and the different code set used by mainframes.
A worked example: a serial device reply
A student's Arduino sends commands to a GSM module and logs the replies as numbers: 79 75 13 10. Converting gives O, K, a carriage return and a line feed, so the module simply replied OK, followed by the standard end of line. Knowing that 13 and 10 mark line endings explains why replies appear on separate lines in a terminal and why string comparisons must account for them.
Numeric HTML entities
HTML numeric entities such as Hi contain the same codes in disguise: 72 and 105, which spell Hi. Decoding the numbers explains what an entity-encoded string says, which is useful when exported content or emails show long runs of entities instead of readable text.
Building text in spreadsheets
The CHAR and UNICHAR functions in Excel and Google Sheets turn codes into characters, so a column of codes can be converted to text with a formula and joined together. UNICHAR handles the full Unicode range, including Urdu letters and emoji, while CHAR on Windows is limited to the system's older character set.
Building text in code
In JavaScript, String.fromCharCode turns codes into characters, and String.fromCodePoint does the same while also handling emoji and other characters above the basic range. Using fromCodePoint for any data that might include emoji avoids broken characters in the output.
Puzzles and challenges
Puzzle hunts sometimes hide messages as lists of numbers. If the numbers fall between 32 and 126, they are likely printable character codes. If decoding produces letters that still look scrambled, the message may use a further layer, such as a Caesar shift, which is the next thing to try.
Cleaning control characters
Codes below 32, apart from tab, line feed and carriage return, rarely belong in ordinary text. When they appear in data from devices or old systems, they can break CSV files, JSON and web pages. Converting suspicious values to codes reveals them, and removing everything outside the printable range plus line breaks usually cleans the data.
Data from mainframes
Large organisations' older systems may use EBCDIC, a different character code set in which A is 193 rather than 65. Codes from such systems decode to the wrong characters with ASCII. If decoded text looks like nonsense with many values above 127, check whether the data came from a system using EBCDIC and convert it first.
Hexadecimal codes
Some tools list codes in hex rather than decimal, as in 48 69 for Hi. Values containing letters A to F are clearly hex, but values made only of digits are ambiguous: 48 means H in hex and 0 in decimal. Check which base your source uses before decoding.
Common mistakes
- Forgetting line ending codes when comparing device replies.
- Using fromCharCode or CHAR for emoji and Urdu.
- Mixing up decimal and hexadecimal code lists.
- Decoding EBCDIC data as if it were ASCII.
Related tools
To turn text into codes, use Text to ASCII Converter. To decode named and numeric entities, try HTML Encoder & Decoder, and for binary messages, Binary to Text Converter.
Control characters in editors and logs
Some editors and logs show control characters in caret notation, so a carriage return, code 13, appears as ^M at the end of lines in files from Windows. Escape, code 27, may appear as ^[. Recognising these marks explains strange characters in files moved between systems.
Finding a troublesome character
When an import or comparison fails because of one odd character, finding its code identifies it. Code 160 is a non-breaking space and 65279 is a byte order mark, two common invisible culprits. Once identified, a find-and-replace or a cleaning step can remove them throughout a file.
Separators in barcodes
Some barcode standards, such as GS1 codes used on product labels, separate data fields with an invisible group separator, code 29. Scanned data containing this code looks like a single run of text until the separators are recognised, after which the fields, such as batch numbers and expiry dates, can be split correctly.
Secret messages in class
Exchanging lists of codes makes a simple classroom game. Once students decode messages comfortably, add a twist: add one to every code before sending, and challenge others to work out the rule. It introduces the idea of encoding and encryption without any special tools.
Saving decoded output
When saving decoded text to a file, check the line endings it contains. Output from devices often uses carriage return and line feed together, which some Linux tools display with stray symbols. Converting line endings to match the system where the file will be used keeps it tidy.
Privacy
Decoding runs in your browser. Nothing you paste is uploaded or stored.
Frequently asked questions
How do I convert ASCII codes to text?
Replace each number with its character: 72 is H, 105 is i and 33 is !. Paste the numbers here and they are converted at once, whatever separator you used.
What text is 72 101 108 108 111?
Hello. 72 is H, 101 is e, 108 is l (twice) and 111 is o. It is one of the most common examples of ASCII codes.
Can it decode numbers above 127?
Yes. Numbers above 127 are treated as Unicode code points: 233 is é, 960 is π and 128512 is 😀. Only values above 1,114,111 are invalid.
What do codes 10 and 13 mean?
10 is a line feed, the new line used on Linux and Mac, and 13 is a carriage return; Windows uses 13 10 together. Both show as line breaks in the output.
Can I decode hexadecimal codes?
Yes. Choose hexadecimal, and 48 69 21 becomes Hi!. Octal and binary codes are supported too. Codes written with a 0x prefix, such as 0x48, are accepted too, and an invalid code is reported with its position.
Why does my output have strange symbols?
The numbers may be bytes of a multi-byte encoding such as UTF-8 rather than code points. Use the hex to text or binary to text converter, which decode UTF-8 bytes.
How do I convert numbers to letters in Python?
Use chr(): "".join(chr(n) for n in [72, 105]) gives "Hi". In JavaScript, String.fromCodePoint(72, 105) does the same. Both accept code points above 127, so they decode accented letters and emoji as well.
Is my data uploaded?
No. The conversion happens in your browser, and nothing you paste is sent anywhere. The tool keeps working offline once the page has loaded, and nothing is stored after you close it.
What is the difference between ASCII codes and Unicode code points?
ASCII defines codes 0 to 127 only. Unicode keeps those same 128 codes and adds more than a million further positions, so 65 is A in both, while 233 (é) and 128512 (😀) exist only in Unicode.
Which separators can I use between the codes?
Spaces, commas, semicolons, tabs and new lines all work, in any mix, so you can paste a list straight from a spreadsheet, a program's output or a puzzle. Extra spaces and blank lines are ignored.