Skip to content
The Calculatorz
Computing & text

ASCII Converter (Text to ASCII Codes and Back)

Convert text to ASCII codes in decimal, hexadecimal, binary or octal, and ASCII codes back to text, with a full ASCII table.

Text and code format

Conversion

How to use this calculator

To encode, type or paste text and choose Text → ASCII codes; the result lists each character's code in decimal, hexadecimal, binary and octal. To decode, paste codes separated by spaces or commas, choose ASCII codes → text and pick the format the codes are in (prefixes such as 0x and 0b are also recognised). Characters beyond standard ASCII, such as é, ₹ or emoji, are shown with their Unicode code point and flagged.

Formula

Each ASCII character has a code from 0 to 127. Encoding replaces each character with its code; decoding looks the code up in the ASCII table. Characters above 127 are not ASCII and are reported with their Unicode code point (U+hex).

ASCII codes in decimal, hexadecimal, binary and octal

This ASCII converter turns any text into its character codes in all four common number formats, and turns code lists back into readable text. The complete 128-character ASCII table below lists every code with its decimal, hexadecimal, octal and 7-bit binary value.

Complete ASCII table (0–127)

DecHexOctBinaryCharacter
Control characters (0–31 and 127)
0000000000000NUL (Null)
1010010000001SOH
2020020000010STX
3030030000011ETX
4040040000100EOT
5050050000101ENQ
6060060000110ACK
7070070000111BEL (Bell)
8080100001000BS (Backspace)
9090110001001HT (Horizontal tab)
100A0120001010LF (Line feed)
110B0130001011VT
120C0140001100FF
130D0150001101CR (Carriage return)
140E0160001110SO
150F0170001111SI
16100200010000DLE
17110210010001DC1
18120220010010DC2
19130230010011DC3
20140240010100DC4
21150250010101NAK
22160260010110SYN
23170270010111ETB
24180300011000CAN
25190310011001EM
261A0320011010SUB
271B0330011011ESC (Escape)
281C0340011100FS
291D0350011101GS
301E0360011110RS
311F0370011111US
1277F1771111111DEL
Printable characters (32–126)
32200400100000Space
33210410100001!
34220420100010"
35230430100011#
36240440100100$
37250450100101%
38260460100110&
39270470100111'
40280500101000(
41290510101001)
422A0520101010*
432B0530101011+
442C0540101100,
452D0550101101-
462E0560101110.
472F0570101111/
483006001100000
493106101100011
503206201100102
513306301100113
523406401101004
533506501101015
543606601101106
553706701101117
563807001110008
573907101110019
583A0720111010:
593B0730111011;
603C0740111100<
613D0750111101=
623E0760111110>
633F0770111111?
64401001000000@
65411011000001A
66421021000010B
67431031000011C
68441041000100D
69451051000101E
70461061000110F
71471071000111G
72481101001000H
73491111001001I
744A1121001010J
754B1131001011K
764C1141001100L
774D1151001101M
784E1161001110N
794F1171001111O
80501201010000P
81511211010001Q
82521221010010R
83531231010011S
84541241010100T
85551251010101U
86561261010110V
87571271010111W
88581301011000X
89591311011001Y
905A1321011010Z
915B1331011011[
925C1341011100\
935D1351011101]
945E1361011110^
955F1371011111_
96601401100000`
97611411100001a
98621421100010b
99631431100011c
100641441100100d
101651451100101e
102661461100110f
103671471100111g
104681501101000h
105691511101001i
1066A1521101010j
1076B1531101011k
1086C1541101100l
1096D1551101101m
1106E1561101110n
1116F1571101111o
112701601110000p
113711611110001q
114721621110010r
115731631110011s
116741641110100t
117751651110101u
118761661110110v
119771671110111w
120781701111000x
121791711111001y
1227A1721111010z
1237B1731111011{
1247C1741111100|
1257D1751111101}
1267E1761111110~

Calculator credits

Calculator developmentJulia Edwards

Editorial supervision

Expert reviewWasiMathematics and Physics Instructor, Mechanical Engineer

Published byThe Calculatorz

Last updated

Read how we research, test, review and correct our calculators in our editorial policy.

Frequently asked questions

What is ASCII?

ASCII (American Standard Code for Information Interchange) is a 7-bit character code with 128 characters: 33 control codes and 95 printable characters (letters, digits, punctuation and space). It was standardised in 1963 and is the base of UTF-8.

What is the ASCII code for A?

Capital A is 65 (hex 41, binary 1000001) and lowercase a is 97 (hex 61). Each lowercase letter is 32 more than its capital.

What is the ASCII code for a space?

Space is 32 (hex 20). The digit 0 is 48 and 9 is 57.

What is extended ASCII?

There is no single "extended ASCII". Codes 128–255 mean different characters in different code pages such as Windows-1252 or ISO 8859-1. Modern text uses Unicode, usually encoded as UTF-8.

Does this work with Urdu, Hindi, Arabic or emoji?

Those characters are not ASCII. The converter still shows each one's Unicode code point (for example ی is U+06CC) and marks it as non-ASCII. Use the text to binary converter to see its UTF-8 bytes.

What are ASCII control characters?

Codes 0–31 and 127 control devices rather than print symbols. The common ones today are tab (9), line feed (10) and carriage return (13).

What is the difference between ASCII and Unicode?

ASCII defines 128 characters. Unicode defines over 150,000 characters for every writing system; its first 128 code points are identical to ASCII.

How do I convert ASCII codes to text?

Choose ASCII codes → text, select the format and paste the codes separated by spaces, for example 72 105 → Hi.

Why is ASCII 7-bit?

Seven bits allow 128 codes, which was enough for English text and controls in the 1960s while saving transmission cost. Computers later stored each character in an 8-bit byte with the top bit set to 0.

How are line breaks encoded?

Unix, Linux and macOS use line feed (10). Windows uses carriage return followed by line feed (13 10).

References & methodology sources

These sources support the calculator’s formula, definitions, thresholds, units or result interpretation.

  1. Cerf, V. (1969). ASCII format for network interchange (RFC 20, STD 80). Internet Engineering Task Force. View source
  2. Unicode Consortium. (2024). The Unicode Standard, version 16.0. View source
  3. Yergeau, F. (2003). UTF-8, a transformation format of ISO 10646 (RFC 3629, STD 63). Internet Engineering Task Force. View source
  4. Klensin, J., & Padlipsky, M. (2008). Unicode format for network interchange (RFC 5198). Internet Engineering Task Force. View source