Character by character

Convert text to ASCII codes, and ASCII codes back to text

Type or paste any text and this converter shows the ASCII code for every character, in decimal, hexadecimal, binary, octal, HTML entities, or Unicode notation. The output updates as you type, and the character strip underneath lines each letter up with its code so you can spot exactly where a stray symbol or invisible character is hiding.

It also works in reverse. Paste a list of codes like 72 101 108 108 111 or 0x48 0x65 and it decodes them back into readable text. A third mode cleans text down to plain 7-bit ASCII by transliterating accents, removing unsupported characters, or escaping them. Everything runs in your browser, so nothing you paste is uploaded.

How to use the converter

  1. Pick a direction: text to codes, codes to text, or clean to plain ASCII.
  2. Type, paste, or open a .txt file in the left box.
  3. Choose a format and separator. The output refreshes instantly.
  4. Copy the result or download it as a .txt file. Use Swap to send the output back into the input and flip the direction.

Which format should I use?

Decimal is the classic ASCII number (A is 65) and the easiest to read. Hexadecimal is what you'll see in hex editors, network captures, and escape sequences like \x41. Binary shows the raw 8-bit pattern (A is 01000001), which is handy for learning and for microcontroller work. Octal turns up in older Unix tools and C string escapes. HTML entities like A can be dropped straight into a web page, and Unicode notation (U+0041) is the standard way to name a character in documentation.

Quick ASCII reference

CharactersDecimalHexBinary
Space322000100000
Digits 0 to 948–5730–3900110000–00111001
Uppercase A to Z65–9041–5A01000001–01011010
Lowercase a to z97–12261–7A01100001–01111010
Tab90900001001
Line feed (new line)100A00001010
Carriage return130D00001101
Delete1277F01111111

Every lowercase letter is exactly 32 higher than its uppercase partner, which is why flipping a single bit changes the case. Codes 0 to 31 and 127 are control characters that don't print; the strip above shows them by name (LF, TAB, CR) so they're easy to find.

Accents, emoji, and other non-ASCII characters

ASCII only defines 128 characters, so anything outside that range, like é, €, curly quotes, or emoji, is really Unicode. The converter flags these in amber and gives you two ways to encode them. Unicode code point gives one number per character (é is 233). UTF-8 bytes gives the actual bytes stored in a file (é is 195 169), which is what you need when debugging encoding problems. When decoding, byte values are read as UTF-8 by default, so both styles round-trip correctly.

If you need text that contains only ASCII, switch to Clean to plain ASCII. Transliteration turns café into cafe, smart quotes into straight quotes, and covers Latin accents, Greek, and Cyrillic, and the "What changed" list shows every substitution it made. For files full of accented characters, the character accent remover handles TXT and DOCX uploads, and the UTF-8 to ASCII converter is built for encoding cleanup on larger batches.

Frequently asked questions

What is the ASCII code for A?

Uppercase A is 65 in decimal, 41 in hex, and 01000001 in binary. Lowercase a is 97, 61 in hex, and 01100001 in binary.

Is my text uploaded anywhere?

No. The conversion runs entirely in your browser with JavaScript. Nothing is sent to a server or stored, and the tool keeps working if you go offline after the page loads.

Why does é turn into two numbers?

You have the Non-ASCII setting on UTF-8 bytes. In UTF-8, é is stored as two bytes, 195 and 169. Switch the setting to Unicode code point to get a single value, 233.

What formats can the decoder read?

Decimal, hex, binary, and octal, separated by spaces, commas, new lines, or almost any symbol, such as a pipe or dash. It also understands prefixed values such as 0x41, \x41, 0b01000001, U+0041, and HTML entities like A or A. Leave the format on Detect automatically and it works out the base for you. Octal digits look just like decimal ones, so choose Octal manually for unprefixed octal codes. Swap does this for you when you come from the encoder. Unbroken hex or binary strings, like 48656C6C6F, are split into bytes automatically.

Does it handle emoji?

Yes. Emoji are read as single characters, so 😀 becomes code point 128512 (U+1F600) or four UTF-8 bytes. They can be decoded back the same way.

Can I convert a whole file?

Yes. Use Open file to load a .txt, .csv, .log, .md, or similar text file up to 10 MB, then copy or download the result. The character strip previews the first few hundred characters so large files stay fast.

More ways to work with character codes: hex to text, binary to text, text to octal, and the zero-width character scanner.

Our Full Text Tool Library

Flipper File