ASCII table with decimal, hex, octal, binary and Unicode lookup

Enter a character or a code above – A, é, €, 65, 0x41 or U+20AC – and see at once how it is written in decimal, hex, binary, UTF-8, HTML, CSS and JavaScript. The complete ASCII table below is there for reference.

Source: IETF RFC 20 – ASCII format for Network Interchange (Codetabelle, Steuerzeichen). Updated: .

A single character (emoji too) or a code: decimal (65), hex (0x41), Unicode (U+20AC) or HTML (€). For digits as a code use 0x or U+.
My ToolboxYour inputs are saved in this browser only.

Result

Character
A U+0041
Unicode
U+0041
Decimal
65
Hexadecimal
41
Octal
101
Binary
1000001
UTF-8 (bytes, hex)
41
UTF-16 (units, hex)
0041
HTML
A
CSS
\41
JavaScript
\u0041
ASCII table
DecHexOctBinaryCharHTMLMeaning
00000000000000␀�NUL – Null character
10100100000001␁SOH – control character
20200200000010␂STX – control character
30300300000011␃ETX – control character
40400400000100␄EOT – control character
50500500000101␅ENQ – control character
60600600000110␆ACK – control character
70700700000111␇BEL – Bell
80801000001000␈BS – Backspace
90901100001001␉	HT – Horizontal tab
100A01200001010␊
LF – Line feed (Unix line ending)
110B01300001011␋VT – control character
120C01400001100␌FF – control character
130D01500001101␍
CR – Carriage return
140E01600001110␎SO – control character
150F01700001111␏SI – control character
161002000010000␐DLE – control character
171102100010001␑DC1 – control character
181202200010010␒DC2 – control character
191302300010011␓DC3 – control character
201402400010100␔DC4 – control character
211502500010101␕NAK – control character
221602600010110␖SYN – control character
231702700010111␗ETB – control character
241803000011000␘CAN – control character
251903100011001␙EM – control character
261A03200011010␚SUB – control character
271B03300011011␛ESC – Escape
281C03400011100␜FS – control character
291D03500011101␝GS – control character
301E03600011110␞RS – control character
311F03700011111␟US – control character
322004000100000␣ Space
332104100100001!!
342204200100010""
352304300100011##
362404400100100$$
372504500100101%%
382604600100110&&
392704700100111''
402805000101000((
412905100101001))
422A05200101010**
432B05300101011++
442C05400101100,,
452D05500101101--
462E05600101110..
472F05700101111//
48300600011000000
49310610011000111
50320620011001022
51330630011001133
52340640011010044
53350650011010155
54360660011011066
55370670011011177
56380700011100088
57390710011100199
583A07200111010::
593B07300111011;&#59;
603C07400111100<&lt;
613D07500111101=&#61;
623E07600111110>&gt;
633F07700111111?&#63;
644010001000000@&#64;
654110101000001A&#65;
664210201000010B&#66;
674310301000011C&#67;
684410401000100D&#68;
694510501000101E&#69;
704610601000110F&#70;
714710701000111G&#71;
724811001001000H&#72;
734911101001001I&#73;
744A11201001010J&#74;
754B11301001011K&#75;
764C11401001100L&#76;
774D11501001101M&#77;
784E11601001110N&#78;
794F11701001111O&#79;
805012001010000P&#80;
815112101010001Q&#81;
825212201010010R&#82;
835312301010011S&#83;
845412401010100T&#84;
855512501010101U&#85;
865612601010110V&#86;
875712701010111W&#87;
885813001011000X&#88;
895913101011001Y&#89;
905A13201011010Z&#90;
915B13301011011[&#91;
925C13401011100\&#92;
935D13501011101]&#93;
945E13601011110^&#94;
955F13701011111_&#95;
966014001100000`&#96;
976114101100001a&#97;
986214201100010b&#98;
996314301100011c&#99;
1006414401100100d&#100;
1016514501100101e&#101;
1026614601100110f&#102;
1036714701100111g&#103;
1046815001101000h&#104;
1056915101101001i&#105;
1066A15201101010j&#106;
1076B15301101011k&#107;
1086C15401101100l&#108;
1096D15501101101m&#109;
1106E15601101110n&#110;
1116F15701101111o&#111;
1127016001110000p&#112;
1137116101110001q&#113;
1147216201110010r&#114;
1157316301110011s&#115;
1167416401110100t&#116;
1177516501110101u&#117;
1187616601110110v&#118;
1197716701110111w&#119;
1207817001111000x&#120;
1217917101111001y&#121;
1227A17201111010z&#122;
1237B17301111011{&#123;
1247C17401111100|&#124;
1257D17501111101}&#125;
1267E17601111110~&#126;
1277F17701111111␡&#127;DEL – Delete

How it is calculated

ASCII (American Standard Code for Information Interchange) defines 128 characters: codes 0 to 31 are control characters, 32 is the space, 33 to 126 are printable characters (digits, unaccented letters, punctuation) and 127 is DEL. Each character needs 7 bits, usually stored in a whole byte.

How to use the table

Control characters

Codes 0–31 date from the teleprinter era and are not printable. Today the important ones are tab (9), line feed LF (10, the line ending on Unix and in the web), carriage return CR (13, together with LF the Windows line ending) and escape (27). The table shows them as visible placeholders (␀, ␊ …) so the row does not look empty.

Extended range 128–255

ASCII ends at 127. Codes 128–255 are not part of ASCII; here the table shows the Unicode block “Latin-1 Supplement” (identical to ISO 8859-1): accented letters and some symbols. Codes 128–159 are control characters there. Windows-1252 assigns 128–159 differently (for example “€” at 128) – it is not the same as Latin-1. In UTF-8 every character from 128 upward takes two or more bytes; the lookup above shows this in the UTF-8 row.

Looking up Unicode characters

The lookup understands any Unicode character, including the euro sign or emoji. It shows the code point (U+…), the UTF-8 bytes (RFC 3629), the UTF-16 units (a surrogate pair above U+FFFF, RFC 2781) and ready-made notations: &#8364; or named &euro; in HTML, \20AC in CSS, \u20AC in JavaScript.

Frequently asked questions

What is the ASCII table?

A mapping of 128 characters to the numbers 0 to 127: control characters, space, digits, unaccented letters and punctuation. It is the foundation of Unicode and UTF-8.

How many characters does the ASCII table have?

128 characters (codes 0–127): 95 printable (32–126) and 33 control characters including DEL. Codes 128–255 belong to extended character sets such as Latin-1.

What are the ASCII codes of space, A and a?

Space is code 32 (hex 20), capital A is 65 (hex 41), lowercase a is 97 (hex 61). Upper and lower case letters differ by 32.

What is the difference between ASCII and Unicode?

ASCII has 128 characters, Unicode over 150,000 from nearly all scripts. The first 128 Unicode characters are identical to ASCII – in UTF-8 even byte for byte.

How do I write a special character like € or é in HTML?

As an entity: &euro; or numeric &#8364; for €, &eacute; or &#233; for é. The lookup above shows both notations for every character.

What are the ASCII special characters?

The printable punctuation and symbols sit at 33–47, 58–64, 91–96 and 123–126, for example ! # $ % & @ [ ] { } ~. Filter to “Printable characters” above.

Sources and legal basis

As of:

Related tools