ASCII/Unicode Table

ASCII is a numeric computer code used to represent characters from the English alphabet as decimal numbers.

Dec Ascii Character Dec Html Ascii Character Dec Ascii Character Dec Ascii Character
0 NUL (Null) 32   [Space] 64 @ 96 `
1 SOH 33 ! ! 65 A 97 a
2 STX 34 " " 66 B 98 b
3 ETX 35 # # 67 C 99 c
4 EOT 36 $ $ 68 D 100 d
5 ENQ 37 % % 69 E 101 e
6 ACK 38 & & 70 F 102 f
7 BEL 39 ' ' 71 G 103 g
8 BS Backspace 40 ( ( 72 H 104 h
9 TAB \t 41 ) ) 73 I 105 i
10 LF Line Feed \n 42 * * 74 J 106 j
11 VT 43 + + 75 K 107 k
12 FF Form Feed 44 , , 76 L 108 l
13 CR Carriage Return \r 45 - - 77 M 109 m
14 SO 46 . . 78 N 110 n
15 SI 47 / / 79 O 111 o
16 DLE 48 0 0 80 P 112 p
17 DC1 49 1 1 81 Q 113 q
18 DC2 50 2 2 82 R 114 r
19 DC3 51 3 3 83 S 115 s
20 DC4 52 4 4 84 T 116 t
21 NAK 53 5 5 85 U 117 u
22 SYN 54 6 6 86 V 118 v
23 ETB 55 7 7 87 W 119 w
24 CAN 56 8 8 88 X 120 x
25 EM 57 9 9 89 Y 121 y
26 SUB (EOF) 58 : : 90 Z 122 z
27 ESC (Escape) 59 ; ; 91 [ 123 {
28 FS 60 &lt; < 92 \ 124 |
29 GS 61 = = 93 ] 125 }
30 RS 62 &gt; > 94 ^ 126 ~
31 US 63 ? ? 95 _ 127 DEL

Windows CR+LF is Chr(13) followed by Chr(10) or `r`n in PowerShell


Adding 32 (or flipping the sixth binary bit) will convert any upper case letter to lower case.

ASCII stands for American Standard Code for Information Interchange. ASCII codes from 0 - 127 are identical to Unicode.

ANSI stands for American National Standards Institute The ANSI standard extended ASCII to 256 characters (Extended ASCII) but these incorporate multiple character sets, whch vary by country/locale. ANSI codes from 128 - 256 are no longer in general use.

Decimal escapes are available in HTML, so for example the less than symbol '<' can be written as either &#lt; or as &#60;

“Why shouldn’t we give our teachers a license to obtain software, all software, any software, for nothing? Does anyone demand a licensing fee, each time a child is taught the alphabet?” ~ William Gibson

Related character codes:

Convert Decimal to Hex
GenChr.cmd - Generate an ASCII/Unicode character.
man ascii will produce an acii table on most unix systems.
Colour codes (CSS/HTML)


Copyright © SS64.com 1999-2018
Some rights reserved