Calcist

Style

Buttons

Spacing

How much to show

Decimal places

Text size

ASCII calculator

Turn text into ASCII codes in decimal, hexadecimal and binary, or turn codes back into text. The full ASCII table is below.

Private: calculated on your device. Nothing you type is sent anywhere.

Next: Converting numbers between binary, hex and decimal? Use the programmer calculator.

What ASCII is

ASCII (American Standard Code for Information Interchange) gives each of 128 characters a number from 0 to 127: English letters, digits, punctuation, the space and 33 control codes such as line feed and tab. Seven bits are enough to store any of them, and they're usually stored in one 8-bit byte.

Code = position in the table 'A' = 65 = 41 hex = 01000001 binary

Worked example

"Hi" is two characters. H is 72 and i is 105.

  • Decimal: 72 105.
  • Hexadecimal: 72 = 4 × 16 + 8, so 48. 105 = 6 × 16 + 9, so 69. Together: 48 69.
  • Binary: 72 = 64 + 8 = 01001000, and 105 = 64 + 32 + 8 + 1 = 01101001.

Handy patterns

  • Capital letters run from 65 (A) to 90 (Z). Lowercase run from 97 (a) to 122 (z). Each lowercase letter is exactly 32 more than its capital, which is a single bit.
  • Digits 0 to 9 are codes 48 to 57, so a digit's value is its code minus 48.
  • Codes 0 to 31 and 127 are control characters with no printed symbol. 10 (LF) starts a new line on Linux and macOS; Windows uses 13 then 10 (CR LF).

Characters outside ASCII

Letters like é, ñ, curly quotes and emoji aren't ASCII. They have Unicode code points above 127. The first 128 Unicode code points are exactly ASCII, and in UTF-8 those characters take the same single byte. If your text contains other characters, the calculator lists their Unicode code point and leaves them out of the ASCII codes.

The full ASCII table (0–127)

DecHexBinaryCharacter
00000000000NUL (null)
10100000001SOH
20200000010STX
30300000011ETX
40400000100EOT
50500000101ENQ
60600000110ACK
70700000111BEL (bell)
80800001000BS (backspace)
90900001001HT (horizontal tab)
100A00001010LF (line feed (new line))
110B00001011VT (vertical tab)
120C00001100FF (form feed)
130D00001101CR (carriage return)
140E00001110SO
150F00001111SI
161000010000DLE
171100010001DC1
181200010010DC2
191300010011DC3
201400010100DC4
211500010101NAK
221600010110SYN
231700010111ETB
241800011000CAN
251900011001EM
261A00011010SUB
271B00011011ESC (escape)
281C00011100FS
291D00011101GS
301E00011110RS
311F00011111US
322000100000space
332100100001!
342200100010"
352300100011#
362400100100$
372500100101%
382600100110&
392700100111'
402800101000(
412900101001)
422A00101010*
432B00101011+
442C00101100,
452D00101101-
462E00101110.
472F00101111/
4830001100000
4931001100011
5032001100102
5133001100113
5234001101004
5335001101015
5436001101106
5537001101117
5638001110008
5739001110019
583A00111010:
593B00111011;
603C00111100<
613D00111101=
623E00111110>
633F00111111?
644001000000@
654101000001A
664201000010B
674301000011C
684401000100D
694501000101E
704601000110F
714701000111G
724801001000H
734901001001I
744A01001010J
754B01001011K
764C01001100L
774D01001101M
784E01001110N
794F01001111O
805001010000P
815101010001Q
825201010010R
835301010011S
845401010100T
855501010101U
865601010110V
875701010111W
885801011000X
895901011001Y
905A01011010Z
915B01011011[
925C01011100\
935D01011101]
945E01011110^
955F01011111_
966001100000`
976101100001a
986201100010b
996301100011c
1006401100100d
1016501100101e
1026601100110f
1036701100111g
1046801101000h
1056901101001i
1066A01101010j
1076B01101011k
1086C01101100l
1096D01101101m
1106E01101110n
1116F01101111o
1127001110000p
1137101110001q
1147201110010r
1157301110011s
1167401110100t
1177501110101u
1187601110110v
1197701110111w
1207801111000x
1217901111001y
1227A01111010z
1237B01111011{
1247C01111100|
1257D01111101}
1267E01111110~
1277F01111111DEL (delete)

Sources

How we checked this

Before every update, this calculator is run in a real browser with these known answers, and it must match all of them:

  • 'Hi' is 72 105 in decimal ✓
  • 'Hi' is 48 69 in hex and 01001000 01101001 in binary ✓
  • 72 101 108 108 111 decodes to Hello ✓
  • Hex 48 69 decodes to Hi ✓
  • Codes 9 and 10 are the control characters HT and LF ✓
  • Edge: 128 is outside ASCII ✓
  • Edge: é isn't ASCII (Unicode U+00E9) ✓

Last checked October 26, 2026. Spotted something wrong? The math is done in your browser with the formula shown on this page, so you can check any result by hand.

Add this calculator to your website (free)

Paste this code into any web page. The calculator works on your page, resizes itself, has no ads and no tracking cookies, and nothing your visitors type is sent anywhere. More about embedding.

Questions people ask

What is the ASCII code for A?

Capital A is 65 (hex 41, binary 01000001). Lowercase a is 97 (hex 61, binary 01100001).

What is the ASCII code for a space?

32 in decimal, 20 in hexadecimal and 00100000 in binary.

Is ASCII 7-bit or 8-bit?

ASCII is a 7-bit code with 128 characters (0 to 127). Codes 128 to 255 belong to various "extended ASCII" code pages, which differ from one system to another, so they aren't part of ASCII.

How do I convert ASCII to text?

Look up each number in the table, or choose ASCII to text above and paste the codes. For example, 72 101 108 108 111 spells Hello.

What's the difference between ASCII and Unicode?

ASCII covers 128 characters. Unicode covers over 150,000 characters from almost every writing system. Its first 128 code points are identical to ASCII.

Related calculators