Input Text

ASCII Output

Format:Separator:

What Is a Text to ASCII Converter?

Every character you type — letters, digits, punctuation, spaces — has a number assigned to it in the ASCII standard (American Standard Code for Information Interchange). Originally published in 1963, ASCII maps 128 characters to the integers 0–127. A Text to ASCII converter takes each character in your input and outputs its corresponding numeric code, so you can see exactly what a machine "sees" when it reads your text. This is useful when debugging encoding issues, working with serial protocols, studying how compilers tokenize strings, or just satisfying your curiosity. You can view codes in decimal (the default), hexadecimal (base 16, common in programming), binary (base 2, what the hardware actually stores), or octal (base 8, still used in Unix file permissions). The ASCII table is one of the most referenced documents in computing — this tool puts it to work interactively. For characters beyond the standard 0–127 range (accented letters, emoji, CJK), the tool outputs their Unicode code point values, which is a superset of ASCII for the first 128 entries.

How to Use

1

Type or paste your text

Drop any text into the left panel. Each character — including spaces and newlines — will be converted. You can also click "Upload" to load a plain text file.

2

Choose format and separator

Select your output format (Decimal, Hex, Binary, or Octal) and how codes are separated (space, comma, or one per line). The output updates in real time as you type.

3

Copy or download the result

Hit "Copy" to grab the ASCII codes to your clipboard, or "Download" to save them as a .txt file.

Example

Here's a worked example. The word "Hello" converts to five decimal ASCII codes — one for each character.

"Hello" → Decimal ASCII codes

Input Text
Hello

→ Decimal ASCII

ASCII Output
72 101 108 108 111

FAQ

What is the ASCII code for a space?

A space character has the decimal ASCII code 32 (hex 20, binary 00100000). It's one of the most commonly checked codes. You can verify this — and any other character — on the ASCII table.

What happens with characters above ASCII 127?

Standard ASCII only covers 0–127. For extended characters (accented letters, emoji, CJK) this tool outputs the Unicode code point value via JavaScript's charCodeAt(). For multi-byte emoji or surrogate pairs, the raw char code of each UTF-16 code unit is shown.

What is the difference between decimal, hex, and binary output?

They're all the same number, just written in different bases. Decimal (base 10) is what humans use day-to-day. Hexadecimal (base 16) is compact and favored in programming — "A" is 0x41. Binary (base 2) shows the raw bit pattern, useful for low-level work. Octal (base 8) is less common today but still appears in Unix permissions and some older protocols.

Is my text sent to a server?

No. Everything runs locally in your browser using JavaScript. Your text never leaves your device. There is no backend, no logging, and no data collection.

Can I convert ASCII codes back to text?

Not with this tool directly — this page only goes text → codes. For the reverse, look for an ASCII to text converter. Many online tools handle both directions, and in JavaScript you can use String.fromCharCode() to reconstruct the original string from decimal codes.

Why do uppercase and lowercase letters have different codes?

ASCII assigns separate code points to each case. "A" is 65, "a" is 97 — a difference of exactly 32, which is the bit you flip to switch case. This design was intentional; it makes case conversion trivially fast in hardware, and it's why the original ASCII layout looks the way it does.

Related Tools