Text to ASCII Codes

Convert text to ASCII decimal, hex, binary, or octal codes instantly. See the ASCII value of every character.

runs locally on your browser. Your data never leaves your device.

Format

Separator

Source
13Characters
13Codes
Character Map
#CharDecHexBinaryOct
1H724801001000110
2e1016501100101145
3l1086C01101100154
4l1086C01101100154
5o1116F01101111157
6,442C0010110054
7space32200010000040
8W875701010111127
9o1116F01101111157
10r1147201110010162
11l1086C01101100154
12d1006401100100144
13!33210010000141

Common Use Cases

Decode a space-separated list of decimal ASCII codes encountered in a CTF challenge or encoding puzzle
Inspect the exact byte values of every character in a string when debugging a text encoding or protocol issue
Look up the hex escape sequence for a specific character to use in HTML, CSS, or a source code string literal
Verify that a string contains no non-ASCII characters before passing it to a system with strict 7-bit ASCII requirements

About Text to ASCII Codes

ASCII, the American Standard Code for Information Interchange, was published in 1963 and formalised the relationship between human-readable characters and the binary numbers computers use internally. The standard defines 128 characters (codes 0–127): 33 non-printing control characters (codes 0–31 and 127) and 95 printable characters including uppercase and lowercase Latin letters, digits, punctuation, and the space character. Every modern encoding system, including UTF-8, UTF-16, Latin-1, and Windows-1252, is a superset of or directly compatible with ASCII for the first 128 code points.

Understanding ASCII codes is foundational to programming. String manipulation in virtually every language ultimately works on arrays of code points. Knowing that uppercase 'A' is 65 and lowercase 'a' is 97 (a difference of exactly 32) explains why toggling the sixth bit flips a letter's case. Knowing that '0' is 48 means you can convert a digit character to its integer value by subtracting 48. These patterns repeat throughout systems programming, protocol design, and file format parsing.

Hexadecimal representation (base 16) is ubiquitous in computing because each hexadecimal digit maps precisely to four binary bits (a nibble). ASCII codes expressed in hex are compact and align naturally with byte-level representations: 0x41 for 'A', 0x61 for 'a', 0x20 for space. Hex escapes appear in HTML (`A`), URLs (`%41`), CSS (`\0041`), and source code string literals (`\x41`).

Binary representation makes the bit patterns explicit. This is useful when studying character encoding, designing low-level parsers, or understanding bitwise operations on character data. Octal representation was historically common in C string literals (`\101` for 'A') and still appears in Unix file permissions and some legacy protocols.

This tool converts in both directions: type text to see every character's code, or paste a list of ASCII codes to decode them back into text. The character map table gives you all four representations simultaneously for every character in your input, making it a compact reference for encoding work, CTF challenges, protocol debugging, or learning.

Frequently Asked Questions

What is an ASCII code?
An ASCII code is the numeric value assigned to a character in the ASCII standard. Each printable character has a unique decimal code from 32 (space) to 126 (tilde ~). For example, 'A' is 65, 'a' is 97, '0' is 48, and ' ' (space) is 32. The same value can also be expressed in hexadecimal (41, 61, 30, 20), binary (01000001, 01100001, 00110000, 00100000), or octal (101, 141, 60, 40).
What happens with non-ASCII characters?
Characters with code points above 127 (such as é, ñ, ©, emoji, or CJK characters) are outside the 7-bit ASCII range. The tool still displays their Unicode code point value and flags them with a warning. These characters are not technically ASCII; they belong to Unicode and may be encoded differently (e.g. as multiple bytes in UTF-8). The warning lets you know the output may not behave as expected in systems that are strictly limited to 7-bit ASCII.
How does the bidirectional conversion work?
When you type in the Text panel, the ASCII panel updates instantly showing each character's code in the selected format and separated by the chosen separator. When you type in the ASCII panel instead, the tool reads each space- (or comma-, dash-, or newline-) separated token, interprets it as a number in the selected base, and converts it back to a character, rebuilding the original text. Both panels are fully editable and the conversion direction is detected automatically based on which panel was last edited.
What is the difference between the output formats?
Decimal is the standard base-10 representation (e.g. 72 for 'H'). Hexadecimal (base 16) uses digits 0–9 and A–F and is common in programming and protocol specs (e.g. 48 for 'H'). Binary (base 2) shows all eight bits explicitly (e.g. 01001000 for 'H') and is useful for bit-level analysis. Octal (base 8) uses digits 0–7 and appears in C string literals and Unix permissions (e.g. 110 for 'H').
What is the character map table?
The character map table shows every character from your input text as a row, with its decimal, hexadecimal, binary, and octal values displayed side by side. This gives you a quick reference for all four representations at once. Rows for non-ASCII characters (code > 127) are highlighted in amber to make them easy to spot.
Can I use this for CTF challenges or decoding puzzles?
Yes. Paste a space-separated list of decimal numbers into the ASCII panel and switch the direction to decode them back to text, a common format in Capture The Flag (CTF) encoding challenges. Switch the format to hex or binary if the numbers are in those bases. The character map is also useful for verifying individual character values when solving cipher or encoding puzzles.