Home / ASCII converter

ASCII converter

Updated December 3, 2026

Type text to see the ASCII code of every character, or paste codes to read them as text. Pick decimal, hexadecimal, octal or binary.

Encoding, not encryption. These tools convert between ways of writing the same information. They are not secure encryption, so do not rely on them to protect anything private. Everything runs in your browser, and what you type is not sent anywhere.

What ASCII covers

ASCII has 128 characters, numbered 0 to 127: 95 printable characters (letters, digits, punctuation and the space) and 33 control codes. Anything outside that range, such as é, € or an emoji, is not in ASCII, so this converter reports it. For those characters use the binary or hex translator, which work on UTF-8 bytes. The complete list is on the ASCII table page.

Example

H is 72, e is 101, l is 108 and o is 111, so “Hello” is 72 101 108 108 111 in decimal. In hexadecimal the same codes are 48 65 6C 6C 6F, because 72 = 4 × 16 + 8.

Reading codes back

Separate the codes with spaces, commas or line breaks. Hexadecimal may have a 0x prefix, octal an 0o prefix and binary a 0b prefix. A code above 127 is reported instead of being turned into a character. Control codes such as 10 (line feed) are turned into the control character itself.

Got a question?

What is the difference between ASCII and UTF-8?

UTF-8 stores every Unicode character in one to four bytes, and the first 128 codes are the same as ASCII. So any ASCII text is also valid UTF-8, but not the other way round.

Why does my accented letter give an error?

Accented letters are not in ASCII, which stops at 127. Use the binary or hex translator to see their UTF-8 bytes.

Is lowercase different from uppercase?

Yes, each has its own code: A is 65 and a is 97.

Embed this tool on your site

Embedding is open to every site, with no account needed. Copy the code below. The embedded tool has no ads and no tracking. A credit line comes with it; keeping it is appreciated but optional, and if your site marks outside links nofollow or sponsored, leave that on. The embed works the same.

All embeddable tools · Preview the embedded version