Tools

Text to ASCII Code

Convert text to ASCII decimal, hex, or binary codes.

Result

How to Use the Text to ASCII Converter

Type or paste your text into the input box. Choose the output format (decimal, hexadecimal, or binary) and the separator between codes. The ASCII codes appear instantly in the output box.

Output Formats

Decimal (Base 10)

The standard ASCII representation. Each character maps to a number from 0 to 127 (standard ASCII) or 0 to 255 (extended ASCII). For example, 'A' = 65, 'a' = 97, '0' = 48.

Hexadecimal (Base 16)

Each character maps to a two-digit hex code. Commonly used in programming and Unicode documentation. 'A' = 41, 'a' = 61, '0' = 30 (hex).

Binary (Base 2)

Each character represented as an 8-bit binary string. 'A' = 01000001, 'a' = 01100001. Used in computing education and low-level debugging.

Common Use Cases

  • Learning how character encoding works
  • Debugging encoding issues in text processing
  • Generating ASCII code sequences for programming exercises
  • Converting text for data transmission protocols

Privacy

All conversion runs locally in your browser. No text is sent to a server.

More on TypingTest.now

Frequently Asked Questions

What is the ASCII code for the letter A?

Capital A is 65 in decimal, 41 in hexadecimal, and 01000001 in binary. Lowercase a is 97 (hex 61). The two cases always differ by exactly 32, which is why flipping a single bit converts between them. Type any character above to see its code in all three formats instantly.

How do I convert text to binary?

Type your text, select Binary as the output format, and the tool renders each character as an 8-bit binary number — H becomes 01001000, i becomes 01101001. Choose a separator such as a space so the bytes stay readable. The conversion runs instantly in your browser as you type.

What is the difference between ASCII and Unicode?

ASCII defines 128 characters covering English letters, digits, and basic punctuation. Unicode is a superset that assigns a code point to every character in every writing system — more than 150,000 characters. UTF-8, the dominant Unicode encoding, was deliberately designed so its first 128 code points match ASCII exactly.

Curious how fast you type? Take a free typing test and find out.
1-Minute Test →