Code ASCII
Les caractères sont tous des valeurs de type entier, qui correspondent à un code.
Le code ASCII (American Standard Code For Information Interchange) est un jeu de caractères codés sur 7 bits, et son usage est très répandu pour la représentation de lettres et de symboles.
Il utilise donc les 128 premiers caractères du jeu de caractères ANSI, mais des codes ASCII étendus (codés sur 8bits) permettent un choix entre 256 valeurs, pour un usage national.
Les 33 premiers codes sont des codes système.
Dec | Hex | Oct | HTML | Chr | En | Fr |
0 | #0h | 0x0 | � | >NUL | Rien | |
1 | #1h | 0x1 |  | SOH (Start Of Head) | Début de l'entête | |
2 | #2h | 0x2 |  | STX (Start of Text) | Début de texte | |
3 | #3h | 0x3 |  | ETX (End of Text) | Fin de texte | |
4 | #4h | 0x4 |  | EOT (End Of Transmission) | Fin de transmission | |
5 | #5h | 0x5 |  | ENQ (Enquiry demand) | ||
6 | #6h | 0x6 |  | ACK (Acknowledge) | Accusé de réception | |
7 | #7h | 0x7 |  | BEL (beep) | Avertissement sonore | |
8 | #8h | 0x10 |  | BS (Back Space) | Retour d'un caractère | |
9 | #9h | 0x11 | 	 | HT (Horizontal Tabulation) | Tabulation horizontale | |
10 | #ah | 0x12 | | LF (Line Feed) | Ejection d'une feuille | |
11 | #bh | 0x13 |  | VT (Vertical Tabulation) | Tabulation verticale | |
12 | #ch | 0x14 |  | FF (Form Feed) | Avancée de la feuille | |
13 | #dh | 0x15 | | CR (Carriage Return) | Retour Chariot (Enter) | |
14 | #eh | 0x16 |  | SO (Shift Out) | ||
15 | #fh | 0x17 |  | SI (Shift In) | ||
16 | #10h | 0x20 |  | DLE (Data Link Escape) | ||
17 | #11h | 0x21 |  | DC1 (Device Control 1) | ||
18 | #12h | 0x22 |  | DC2 | ||
19 | #13h | 0x23 |  | DC3 | ||
20 | #14h | 0x24 |  | DC4 | ||
21 | #15h | 0x25 |  | NACK (Negative ACK) | ||
22 | #16h | 0x26 |  | SYN (Synchronous) | ||
23 | #17h | 0x27 |  | ETB (End Transmission Block) | ||
24 | #18h | 0x30 |  | CAN (Cancel) | ||
25 | #19h | 0x31 |  | EM (End of Medium) | ||
26 | #1ah | 0x32 |  | SUB (Substitude) | ||
27 | #1bh | 0x33 |  | ESC (Escape) | ||
28 | #1ch | 0x34 |  | FS (File Separator) | ||
29 | #1dh | 0x35 |  | GS (Group Separator) | ||
30 | #1eh | 0x36 |  | RS (Record Separator) | ||
31 | #1fh | 0x37 |  | US (United Separator) | ||
32 | #20h | 0x40 |   | SP (Space) | ||
33 | #21h | 0x41 | ! | ! | ||
34 | #22h | 0x42 | " | " | ||
35 | #23h | 0x43 | # | # | ||
36 | #24h | 0x44 | $ | $ | ||
37 | #25h | 0x45 | % | % | ||
38 | #26h | 0x46 | & | & | ||
39 | #27h | 0x47 | ' | ' | ||
40 | #28h | 0x50 | ( | ( | ||
41 | #29h | 0x51 | ) | ) | ||
42 | #2ah | 0x52 | * | * | ||
43 | #2bh | 0x53 | + | + | ||
44 | #2ch | 0x54 | , | , | ||
45 | #2dh | 0x55 | - | - | ||
46 | #2eh | 0x56 | . | . | ||
47 | #2fh | 0x57 | / | / | ||
48 | #30h | 0x60 | 0 | 0 | ||
49 | #31h | 0x61 | 1 | 1 | ||
50 | #32h | 0x62 | 2 | 2 | ||
51 | #33h | 0x63 | 3 | 3 | ||
52 | #34h | 0x64 | 4 | 4 | ||
53 | #35h | 0x65 | 5 | 5 | ||
54 | #36h | 0x66 | 6 | 6 | ||
55 | #37h | 0x67 | 7 | 7 | ||
56 | #38h | 0x70 | 8 | 8 | ||
57 | #39h | 0x71 | 9 | 9 | ||
58 | #3ah | 0x72 | : | : | ||
59 | #3bh | 0x73 | ; | ; | ||
60 | #3ch | 0x74 | < | < | ||
61 | #3dh | 0x75 | = | = | ||
62 | #3eh | 0x76 | > | > | ||
63 | #3fh | 0x77 | ? | ? | ||
64 | #40h | 0x100 | @ | @ | ||
65 | #41h | 0x101 | A | A | ||
66 | #42h | 0x102 | B | B | ||
67 | #43h | 0x103 | C | C | ||
68 | #44h | 0x104 | D | D | ||
69 | #45h | 0x105 | E | E | ||
70 | #46h | 0x106 | F | F | ||
71 | #47h | 0x107 | G | G | ||
72 | #48h | 0x110 | H | H | ||
73 | #49h | 0x111 | I | I | ||
74 | #4ah | 0x112 | J | J | ||
75 | #4bh | 0x113 | K | K | ||
76 | #4ch | 0x114 | L | L | ||
77 | #4dh | 0x115 | M | M | ||
78 | #4eh | 0x116 | N | N | ||
79 | #4fh | 0x117 | O | O | ||
80 | #50h | 0x120 | P | P | ||
81 | #51h | 0x121 | Q | Q | ||
82 | #52h | 0x122 | R | R | ||
83 | #53h | 0x123 | S | S | ||
84 | #54h | 0x124 | T | T | ||
85 | #55h | 0x125 | U | U | ||
86 | #56h | 0x126 | V | V | ||
87 | #57h | 0x127 | W | W | ||
88 | #58h | 0x130 | X | X | ||
89 | #59h | 0x131 | Y | Y | ||
90 | #5ah | 0x132 | Z | Z | ||
91 | #5bh | 0x133 | [ | [ | ||
92 | #5ch | 0x134 | \ | \ | ||
93 | #5dh | 0x135 | ] | ] | ||
94 | #5eh | 0x136 | ^ | ^ | ||
95 | #5fh | 0x137 | _ | _ | ||
96 | #60h | 0x140 | ` | ` | ||
97 | #61h | 0x141 | a | a | ||
98 | #62h | 0x142 | b | b | ||
99 | #63h | 0x143 | c | c | ||
100 | #64h | 0x144 | d | d | ||
101 | #65h | 0x145 | e | e | ||
102 | #66h | 0x146 | f | f | ||
103 | #67h | 0x147 | g | g | ||
104 | #68h | 0x150 | h | h | ||
105 | #69h | 0x151 | i | i | ||
106 | #6ah | 0x152 | j | j | ||
107 | #6bh | 0x153 | k | k | ||
108 | #6ch | 0x154 | l | l | ||
109 | #6dh | 0x155 | m | m | ||
110 | #6eh | 0x156 | n | n | ||
111 | #6fh | 0x157 | o | o | ||
112 | #70h | 0x160 | p | p | ||
113 | #71h | 0x161 | q | q | ||
114 | #72h | 0x162 | r | r | ||
115 | #73h | 0x163 | s | s | ||
116 | #74h | 0x164 | t | t | ||
117 | #75h | 0x165 | u | u | ||
118 | #76h | 0x166 | v | v | ||
119 | #77h | 0x167 | w | w | ||
120 | #78h | 0x170 | x | x | ||
121 | #79h | 0x171 | y | y | ||
122 | #7ah | 0x172 | z | z | ||
123 | #7bh | 0x173 | { | { | ||
124 | #7ch | 0x174 | | | | | ||
125 | #7dh | 0x175 | } | } | ||
126 | #7eh | 0x176 | ~ | ~ | ||
Dec | Hex | Oct | html | Chr | |
---|---|---|---|---|---|
0 | #0h | 0x0 | � | >NUL | Rien |
1 | #1h | 0x1 |  | SOH (Start Of Head) | Début de l'entête |
2 | #2h | 0x2 |  | STX (Start of Text) | Début de texte |
3 | #3h | 0x3 |  | ETX (End of Text) | Fin de texte |
4 | #4h | 0x4 |  | EOT (End Of Transmission) | Fin de transmission |
5 | #5h | 0x5 |  | ENQ (Enquiry demand) | |
6 | #6h | 0x6 |  | ACK (Acknowledge) | Accusé de réception |
7 | #7h | 0x7 |  | BEL (beep) | Avertissement sonore |
8 | #8h | 0x10 |  | BS (Back Space) | Retour d'un caractère |
9 | #9h | 0x11 | 	 | HT (Horizontal Tabulation) | Tabulation horizontale |
10 | #ah | 0x12 | | LF (Line Feed) | Ejection d'une feuille |
11 | #bh | 0x13 |  | VT (Vertical Tabulation) | Tabulation verticale |
12 | #ch | 0x14 |  | FF (Form Feed) | Avancée de la feuille |
13 | #dh | 0x15 | | CR (Carriage Return) | Retour Chariot (Enter) |
14 | #eh | 0x16 |  | SO (Shift Out) | |
15 | #fh | 0x17 |  | SI (Shift In) | |
16 | #10h | 0x20 |  | DLE (Data Link Escape) | |
17 | #11h | 0x21 |  | DC1 (Device Control 1) | |
18 | #12h | 0x22 |  | DC2 | |
19 | #13h | 0x23 |  | DC3 | |
20 | #14h | 0x24 |  | DC4 | |
21 | #15h | 0x25 |  | NACK (Negative ACK) | |
22 | #16h | 0x26 |  | SYN (Synchronous) | |
23 | #17h | 0x27 |  | ETB (End Transmission Block) | |
24 | #18h | 0x30 |  | CAN (Cancel) | |
25 | #19h | 0x31 |  | EM (End of Medium) | |
26 | #1ah | 0x32 |  | SUB (Substitude) | |
27 | #1bh | 0x33 |  | ESC (Escape) | |
28 | #1ch | 0x34 |  | FS (File Separator) | |
29 | #1dh | 0x35 |  | GS (Group Separator) | |
30 | #1eh | 0x36 |  | RS (Record Separator) | |
31 | #1fh | 0x37 |  | US (United Separator) | |
32 | #20h | 0x40 |   | SP (Space) |
Dec | Hex | Oct | html | Chr | Dec | Hex | Oct | html | Chr | Dec | Hex | Oct | html | Chr | ||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
33 | #21h | 0x41 | ! | ! | 65 | #41h | 0x101 | A | A | 97 | #61h | 0x141 | a | a | ||
34 | #22h | 0x42 | " | " | 66 | #42h | 0x102 | B | B | 98 | #62h | 0x142 | b | b | ||
35 | #23h | 0x43 | # | # | 67 | #43h | 0x103 | C | C | 99 | #63h | 0x143 | c | c | ||
36 | #24h | 0x44 | $ | $ | 68 | #44h | 0x104 | D | D | 100 | #64h | 0x144 | d | d | ||
37 | #25h | 0x45 | % | % | 69 | #45h | 0x105 | E | E | 101 | #65h | 0x145 | e | e | ||
38 | #26h | 0x46 | & | & | 70 | #46h | 0x106 | F | F | 102 | #66h | 0x146 | f | f | ||
39 | #27h | 0x47 | ' | ' | 71 | #47h | 0x107 | G | G | 103 | #67h | 0x147 | g | g | ||
40 | #28h | 0x50 | ( | ( | 72 | #48h | 0x110 | H | H | 104 | #68h | 0x150 | h | h | ||
41 | #29h | 0x51 | ) | ) | 73 | #49h | 0x111 | I | I | 105 | #69h | 0x151 | i | i | ||
42 | #2ah | 0x52 | * | * | 74 | #4ah | 0x112 | J | J | 106 | #6ah | 0x152 | j | j | ||
43 | #2bh | 0x53 | + | + | 75 | #4bh | 0x113 | K | K | 107 | #6bh | 0x153 | k | k | ||
44 | #2ch | 0x54 | , | , | 76 | #4ch | 0x114 | L | L | 108 | #6ch | 0x154 | l | l | ||
45 | #2dh | 0x55 | - | - | 77 | #4dh | 0x115 | M | M | 109 | #6dh | 0x155 | m | m | ||
46 | #2eh | 0x56 | . | . | 78 | #4eh | 0x116 | N | N | 110 | #6eh | 0x156 | n | n | ||
47 | #2fh | 0x57 | / | / | 79 | #4fh | 0x117 | O | O | 111 | #6fh | 0x157 | o | o | ||
48 | #30h | 0x60 | 0 | 0 | 80 | #50h | 0x120 | P | P | 112 | #70h | 0x160 | p | p | ||
49 | #31h | 0x61 | 1 | 1 | 81 | #51h | 0x121 | Q | Q | 113 | #71h | 0x161 | q | q | ||
50 | #32h | 0x62 | 2 | 2 | 82 | #52h | 0x122 | R | R | 114 | #72h | 0x162 | r | r | ||
51 | #33h | 0x63 | 3 | 3 | 83 | #53h | 0x123 | S | S | 115 | #73h | 0x163 | s | s | ||
52 | #34h | 0x64 | 4 | 4 | 84 | #54h | 0x124 | T | T | 116 | #74h | 0x164 | t | t | ||
53 | #35h | 0x65 | 5 | 5 | 85 | #55h | 0x125 | U | U | 117 | #75h | 0x165 | u | u | ||
54 | #36h | 0x66 | 6 | 6 | 86 | #56h | 0x126 | V | V | 118 | #76h | 0x166 | v | v | ||
55 | #37h | 0x67 | 7 | 7 | 87 | #57h | 0x127 | W | W | 119 | #77h | 0x167 | w | w | ||
56 | #38h | 0x70 | 8 | 8 | 88 | #58h | 0x130 | X | X | 120 | #78h | 0x170 | x | x | ||
57 | #39h | 0x71 | 9 | 9 | 89 | #59h | 0x131 | Y | Y | 121 | #79h | 0x171 | y | y | ||
58 | #3ah | 0x72 | : | : | 90 | #5ah | 0x132 | Z | Z | 122 | #7ah | 0x172 | z | z | ||
59 | #3bh | 0x73 | ; | ; | 91 | #5bh | 0x133 | [ | [ | 123 | #7bh | 0x173 | { | { | ||
60 | #3ch | 0x74 | < | < | 92 | #5ch | 0x134 | \ | \ | 124 | #7ch | 0x174 | | | | | ||
61 | #3dh | 0x75 | = | = | 93 | #5dh | 0x135 | ] | ] | 125 | #7dh | 0x175 | } | } | ||
62 | #3eh | 0x76 | > | > | 94 | #5eh | 0x136 | ^ | ^ | 126 | #7eh | 0x176 | ~ | ~ | ||
63 | #3fh | 0x77 | ? | ? | 95 | #5fh | 0x137 | _ | _ | |||||||
64 | #40h | 0x100 | @ | @ | 96 | #60h | 0x140 | ` | ` |
English translation
You have asked to visit this site in English. For now, only the interface is translated, but not all the content yet.If you want to help me in translations, your contribution is welcome. All you need to do is register on the site, and send me a message asking me to add you to the group of translators, which will give you the opportunity to translate the pages you want. A link at the bottom of each translated page indicates that you are the translator, and has a link to your profile.
Thank you in advance.
Document created the 19/03/2002, last modified the 08/03/2020
Source of the printed document:https://www.gaudry.be/en/code-ascii.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.