ASCII Converter
How to use
Converts text into space-separated ASCII/decimal character codes, or turns a list of codes back into readable text. Paste either format and copy the conversion.
Text
ASCII / Decimal Codes
- Solving a programming puzzle or CTF challenge that encodes a message as ASCII codes
- Converting plain text into ASCII codes for a low-level programming assignment
- Decoding a list of ASCII codes back into readable text
- Teaching or learning how characters map to their underlying numeric values
What ASCII actually is, and where it stops
ASCII is a 7-bit encoding standardised in 1963: 128 code points, of which the first 33 are control characters that were originally instructions to a teleprinter rather than anything printable. Code 7 rang a physical bell. Code 13 returned the carriage to the left margin and code 10 advanced the paper by one line, which is why Windows still ends a line with both and Unix with only the second. When you convert text here and see numbers below 32 appear, those are what you are looking at, not characters that failed to display, but instructions that were never meant to be shown.
The printable range runs from 32 (space) to 126 (tilde), and the layout inside it is deliberate rather than arbitrary. Digits start at 48, so subtracting 48 from a digit's code gives its value: the trick every introductory parsing exercise relies on. Uppercase A is 65 and lowercase a is 97, exactly 32 apart, which means the difference between cases is a single bit. Flipping bit 5 changes case, and that is the actual mechanism behind the case-conversion routines in most low-level code.
Everything above 127 is where ASCII ends and the trouble begins. For decades each vendor filled the upper 128 slots differently (Latin-1, Windows-1252, dozens of regional code pages) which is why a document written in one and read in another turns accented letters into garbage. Unicode resolved this by defining a single code point for every character, and UTF-8 encodes those code points so that the first 128 are byte-identical to ASCII. That backwards compatibility is the reason ASCII still matters: valid ASCII is valid UTF-8, and always will be. For anything outside the 128, use the Unicode converter, which reports code points rather than pretending a byte value is a character.
Free and private. Everything runs on your own device, with no account and no uploads.
Converting text to its underlying ASCII/decimal character codes is a common need in programming and puzzles. This tool converts in both directions.
ASCII covers only the basic 128-character set (English letters, digits, punctuation); use the Unicode Converter for characters and emoji outside that range.
Codes are space-separated decimal numbers, making them easy to read and copy.
Yes, paste the space-separated codes and switch direction to get the original text back.
- 1
Enter text or codes
Type plain text, or a list of space-separated ASCII codes.
- 2
Convert
See the equivalent representation.
- 3
Copy the result
Grab the converted output.
- ·Remember ASCII only covers the basic 128-character set, for accented letters, emoji, or non-Latin scripts, use the Unicode Converter instead.
- ·Keep codes space-separated when pasting a list in, since that's the expected delimiter format.
- ·Case matters, uppercase and lowercase letters have different ASCII codes, so double-check casing when decoding.