Character to ASCII Code Converter

Type text to get the ASCII code of every character in decimal, hex and binary. Characters outside ASCII, such as é or emoji, show their Unicode code point instead.

Each character, including spaces, gets its own code.

ASCII codes (decimal)
Result appears as you type

How to find a character's ASCII code

ASCII is a table that gives each of 128 characters a number from 0 to 127. Capital letters run from 65 (A) to 90 (Z), lower case from 97 (a) to 122 (z), and the digits 0 to 9 are 48 to 57. Codes 0 to 31 and 127 are control characters such as tab (9) and line feed (10).

To find a code, look the character up in the table below. Lower case letters are always 32 more than their capitals, which is why a is 97 and A is 65.

Example 1: Hello → 72 101 108 108 111

Look up each character's code

ASCII gives the numbers 0 to 127 to English letters, digits, punctuation and control characters. Unicode keeps the same numbers for those characters and adds codes for everything else.

CharacterDecimalHexBinary
H724801001000
e1016501100101
l1086C01101100
l1086C01101100
o1116F01101111

Codes: 72 101 108 108 111

Example 2: A1 z! → 65 49 32 122 33

Look up each character's code

ASCII gives the numbers 0 to 127 to English letters, digits, punctuation and control characters. Unicode keeps the same numbers for those characters and adds codes for everything else.

CharacterDecimalHexBinary
A654101000001
1493100110001
Space322000100000
z1227A01111010
!332100100001

Codes: 65 49 32 122 33

Printable ASCII table

Codes 32 to 126 in decimal and hex. Codes 0 to 31 and 127 are control characters, such as tab (9), line feed (10) and carriage return (13).

3220Space
3321!
3422"
3523#
3624$
3725%
3826&
3927'
4028(
4129)
422A*
432B+
442C,
452D-
462E.
472F/
48300
49311
50322
51333
52344
53355
54366
55377
56388
57399
583A:
593B;
603C<
613D=
623E>
633F?
6440@
6541A
6642B
6743C
6844D
6945E
7046F
7147G
7248H
7349I
744AJ
754BK
764CL
774DM
784EN
794FO
8050P
8151Q
8252R
8353S
8454T
8555U
8656V
8757W
8858X
8959Y
905AZ
915B[
925C\
935D]
945E^
955F_
9660`
9761a
9862b
9963c
10064d
10165e
10266f
10367g
10468h
10569i
1066Aj
1076Bk
1086Cl
1096Dm
1106En
1116Fo
11270p
11371q
11472r
11573s
11674t
11775u
11876v
11977w
12078x
12179y
1227Az
1237B{
1247C|
1257D}
1267E~

Where this comes up

  • Programming exercises that compare, sort or shift characters by their codes, such as a Caesar cipher.
  • Finding the code to type a character with an Alt code or to write an escape sequence such as \x41.
  • Spotting invisible characters, for example a tab or non-breaking space that is breaking a CSV file or a password.

Frequently asked questions

What is the ASCII code for A?

Capital A is 65 (hex 41, binary 01000001). Lower case a is 97 (hex 61).

What happens with characters that are not ASCII?

ASCII only covers codes 0 to 127. For anything else, such as é or an emoji, the tool shows the Unicode code point, which uses the same numbers as ASCII for the first 128 characters. For example é is 233 and 😀 is 128512.

What about extended ASCII codes 128 to 255?

There is no single extended ASCII. Code pages such as Latin-1 and Windows-1252 used 128 to 255 for different characters. Latin-1 matches Unicode in that range, but Windows-1252 does not (€ is 128 in Windows-1252 and 8364 in Unicode), so this tool shows Unicode code points, which are unambiguous.

Is my text sent anywhere?

No. The conversion runs in your browser and nothing you type is uploaded.

Related tools

Local Processing
End-to-End Encryption
Works Offline

Building Something Beyond This Tool?

We help teams design and build reliable web and mobile applications backed by well-structured APIs.