Text to ASCII

Get the numeric code of every character — decimal, hex or Unicode — or decode codes back into text.

● Your files are processed locally in your browser and are not uploaded to our servers.

How to convert text to ASCII codes

  1. Choose the conversion: text → decimal codes, hex codes, Unicode (U+0041), JavaScript escapes (A), plain ASCII (remove accents) — or codes → text.
  2. Choose the separator: space, comma or new line.
  3. Paste your text or open a file, then click Convert.

Example: Hi! → 72 105 33 in decimal, 48 69 21 in hex.

ASCII table (printable characters)

CharactersDecimal codesHex
Space3220
! " # $ % & '33–3921–27
0–948–5730–39
A–Z65–9041–5A
a–z97–12261–7A
@6440
~1267E

Codes 0–31 and 127 are control characters: 9 is a tab, 10 a line feed (new line), 13 a carriage return. A lowercase letter is always its uppercase code + 32 (A = 65, a = 97).

ASCII and Unicode

ASCII covers only 128 characters (0–127): English letters, digits, punctuation and control codes. Every other character — accents, other alphabets, symbols, emoji — has a larger Unicode code point:

The first 128 Unicode code points are identical to ASCII, so plain English text gives the same codes in both.

Remove accents (plain ASCII)

The plain ASCII option turns “Café déjà vu” into “Cafe deja vu”. It's useful for file names, URLs, usernames, old systems and CSV imports that reject accented characters. For URLs, the Slug Generator also replaces spaces and symbols.

Codes back to text

The decoder accepts decimal numbers (72 105), hexadecimal (0x48 or 48 in hex mode), U+0048 and H notations, separated by spaces, commas or new lines.

FAQ

What is the ASCII code of A?

65 in decimal, 41 in hex, 01000001 in binary. Lowercase a is 97.

How do I convert text to binary or hex bytes?

Use Text to Binary or the Hex Encoder, which shows the UTF-8 bytes.

Is my text sent anywhere?

No. It's converted in your browser and never leaves your device.