Text to ASCII
Convert text into decimal ASCII character codes
What is Text to ASCII?
Behind every letter on your screen sits a number. The Text to ASCII converter exposes those numbers, turning "Hello" into "72 101 108 108 111" — the decimal code for each character under the American Standard Code for Information Interchange. It is the forward direction of the text/number relationship: characters in, codes out.
Seeing the numeric layer is useful far beyond curiosity. Firmware developers feed byte values to microcontrollers that only understand numbers, teachers demonstrate how text is stored as a sequence of integers, and puzzle creators build challenges out of encoded messages. When a protocol spec says "send the ASCII codes", this tool produces exactly that.
How to use
- Type or paste your text into the input box — anything from a single character to several paragraphs.
- Each character is converted to its decimal code point. Standard characters yield values 0–127; accented characters produce their Latin-1 values 128–255.
- Click convert. Codes are separated by spaces by default, giving output like "72 105" for "Hi".
- Copy the code sequence for your datasheet, script, or puzzle, or clear the box to encode new text.
Common use cases
- Microcontroller programming: Devices that accept numeric input — LCD drivers, serial protocols, keypad matrices — need character codes rather than characters. Generate the exact byte sequence to send.
- Teaching encoding: Showing students that "A" is really 65 demystifies how computers store text and sets up lessons on binary and Unicode.
- Puzzle creation: Escape-room designers and CTF authors encode hints as number strings; this produces the puzzle side of the pair.
- Protocol testing: When a spec defines messages as byte values, convert your test strings to codes to build precise test vectors.
Example
Input: Go! Output: 71 111 33
FAQs
What codes do non-English characters get?
Characters like é or ñ map to their Latin-1 values (233 and 241). Scripts beyond Latin-1 — Chinese, Arabic, emoji — have no single ASCII number; they are multi-byte Unicode sequences. For those, the Unicode encode tool gives the correct representation.
Can I change the separator between codes?
The output uses spaces, the most widely compatible separator. If your target system needs commas, a quick find-and-replace turns "72 101" into "72,101" in seconds.
Is this reversible?
Completely. Feed the output into the ASCII to Text tool and you get your original text back character-for-character, since the mapping between characters and codes is fixed and one-to-one.
Why do codes only go up to 127 for standard text?
Original ASCII was a 7-bit standard, giving 128 possible values (0–127) — enough for English letters, digits, punctuation, and control codes. The 128–255 range came later with extended sets, which is why plain ASCII tools treat 127 as the classic boundary.