Text
ASCII codes
Need the reverse? ASCII code to text

About the Text to ASCII Code Converter

What is a text to ASCII converter?

Every character your computer stores — a letter, a digit, a space, an emoji — has a number behind it. A text to ASCII converter reveals those numbers. You type a word, and the tool shows the code for each character in whatever base you like: plain decimal, compact hexadecimal, raw binary, or old-school octal. It's the quickest way to see how text really looks to a machine.

Strictly speaking, classic ASCII only covers the first 128 characters, but text today is Unicode, so this tool shows the full Unicode code point for anything you paste — accented letters, symbols, even emoji all come through correctly. Nothing is uploaded; the conversion happens live in your browser as you type.

How to Use This Tool

  1. Enter your text. Type in the left box or paste from anywhere — or open a .txt file.
  2. Pick a format. Choose decimal, hexadecimal, binary or octal for the output codes.
  3. Set the separator. Space, comma, new line, none, or your own custom character between codes. Add an optional prefix like 0x, and pick the hex case.
  4. Copy or download. The codes update instantly — grab them with Copy, or save them as a text file.

Quick reference

CharacterDecimalHexBinaryOctal
A654101000001101
a976101100001141
0483000110000060
space322000100000040
!332100100001041

Common Use Cases

  • Learning & teaching: Show students exactly how characters map to numbers.
  • Debugging: Spot a stray non-printing character or a smart quote that broke your data.
  • Programming: Grab the code values you need for an array, a lookup table or an escape sequence.
  • Puzzles & ciphers: Encode a message as numbers for a bit of fun.

Going the other way? Use the ASCII to Text Converter. Working with raw bytes instead of characters? Try the UTF-8 Encoder.

Frequently Asked Questions

Is this text to ASCII converter free?

Yes, completely. There's no sign-up and no limit — convert as much text as you like.

What formats can it output?

Decimal (base 10), hexadecimal (base 16), binary (base 2) and octal (base 8). You can also add a prefix to every code and choose uppercase or lowercase hex.

Does it handle emoji and accented characters?

Yes. It reads full Unicode code points, so characters like é, and even emoji convert correctly rather than breaking apart.

What's the difference between ASCII and Unicode codes?

ASCII is the original 128-character set that covers unaccented English letters, digits and punctuation. Unicode is the modern superset that includes every character and emoji. For any character in the ASCII range the numbers are identical, so this tool works as both an ASCII and a Unicode code converter.

Is my text uploaded anywhere?

No. All conversion happens locally in your browser with JavaScript, so your text never leaves your device.