ASCII

ASCII is a character encoding table in which each letter, number, and symbol corresponds to a specific number. The standard ASCII table contains 128 characters, numbered from 0 to 127. These include Latin letters, digits, punctuation marks, and control characters.

ASCII table

ASCII (American Standard Code for Information Interchange) is a set of character codes. The table shows the characters (Char) and their values ​​in decimal (Dec) and hexadecimal (Hex) notations. Several codes (00–32, 7F) are control codes and are used as commands (Cmd).

You can check whether the code and symbol match in the standard Windows Notepad: hold down Alt and enter the decimal code on the numeric keypad. For example, Alt+1 will display the ☺ symbol.

This is what the ASCII table looks like with characters from 0 to 127:

DecHexCharCmd
00x00NULNUL
10x01SOH
20x02STX
30x03ETX
40x04EOT
50x05ENQ
60x06ACK
70x07BEL
80x08BS
90x09TAB
100x0ALF
110x0BVT
120x0CFF
130x0DCR
140x0ESO
150x0FSI
160x10DLE
170x11DC1
180x12DC2
190x13DC3
200x14DC4
210x15§NAK
220x16SYN
230x17ETB
240x18CAN
250x19EM
260x1ASUB
270x1BESC
280x1CFS
290x1DGS
300x1ERS
310x1FUS
320x20(sp)
330x21!
340x22«
350x23#
360x24$
370x25%
380x26&
390x27
400x28(
410x29)
420x2A*
430x2B+
440x2C,
450x2D
460x2E.
470x2F/
480x300
490x311
500x322
510x333
520x344
530x355
540x366
550x377
560x388
570x399
580x3A:
590x3B;
600x3C<
610x3D=
620x3E>
630x3F?
DecHexCharCmd
640x40@
650x41A
660x42B
670x43C
680x44D
690x45E
700x46F
710x47G
720x48H
730x49I
740x4AJ
750x4BK
760x4CL
770x4DM
780x4EN
790x4FO
800x50P
810x51Q
820x52R
830x53S
840x54T
850x55U
860x56V
870x57W
880x58X
890x59Y
900x5AZ
910x5B[
920x5C\
930x5D]
940x5E^
950x5F_
960x60`
970x61a
980x62b
990x63c
1000x64d
1010x65e
1020x66f
1030x67g
1040x68h
1050x69i
1060x6Aj
1070x6Bk
1080x6Cl
1090x6Dm
1100x6En
1110x6Fo
1120x70p
1130x71q
1140x72r
1150x73s
1160x74t
1170x75u
1180x76v
1190x77w
1200x78x
1210x79y
1220x7Az
1230x7B{
1240x7C|
1250x7D}
1260x7E~
1270x7FDEL

 

Please note that this table only contains basic control characters, numbers, Latin letters (lowercase and uppercase), and some special characters. The more extended ASCII table (extended ASCII) includes characters with codes from 128 to 255, but these may vary depending on the encoding (e.g., UTF-8 or ISO-8859-1).

Below is a table of the IBM CP866 code page, which was used in DOS to display Cyrillic and pseudographics:

DecHexChar
1280x80A
1290x81B
1300x82IN
1310x83G
1320x84D
1330x85E
1340x86AND
1350x87Z
1360x88AND
1370x89Y
1380x8ATO
1390x8BL
1400x8CM
1410x8DN
1420x8EABOUT
1430x8FP
1440x90I
1450x91R
1460x92WITH
1470x93T
1480x94U
1490x95F
1500x96X
1510x97C
1520x98Ch
1530x99Sh
1540x9ASCH
1550x9BЪ
1560x9CY
1570x9DЬ
1580x9EE
1590x9FYu
1600xA0I
DecHexChar
1610xA1A
1620xA2b
1630xA3V
1640xA4G
1650xA5d
1660xA6e
1670xA7and
1680xA8s
1690xA9And
1700xAAy
1710xABTo
1720xACl
1730xADm
1740xAEn
1750xAFO
1760xB0p
1770xB1
1780xB2
1790xB3
1800xB4
1810xB5
1820xB6
1830xB7
1840xB8
1850xB9
1860xBA
1870xBB
1880xBC
1890xBD
1900xBE
1910xBF
DecHexChar
1920xC0
1930xC1
1940xC2
1950xC3
1960xC4
1970xC5
1980xC6
1990xC7ã
2000xC8Ã
2010xC9
2020xCA
2030xCB
2040xCC
2050xCD
2060xCE
2070xCF
2080xD0¤
2090xD1ð
2100xD2Ð
2110xD3Ê
2120xD4Ë
2130xD5È
2140xD6Í
2150xD7Î
2160xD8Ï
2170xD9
2180xDA
2190xDB
2200xDC
2210xDD
2220xDE
2230xDF
DecHexChar
2240xE0α
2250xE1ß
2260xE2Γ
2270xE3π
2280xE4Σ
2290xE5σ
2300xE6µ
2310xE7τ
2320xE8Φ
2330xE9Θ
2340xEAΩ
2350xEBδ
2360xEC
2370xEDφ
2380xEEε
2390xEF
2400xF0
2410xF1±
2420xF2
2430xF3
2440xF4
2450xF5
2460xF6÷
2470xF7
2480xF8°
2490xF9
2500xFA·
2510xFB
2520xFCNo.
2530xFD¤
2540xFE
2550xFF(nbsp)

What is ASCII?

The table was developed in America in the 1960s, and its name stands for American Standard Code for Information Interchange. The abbreviation is pronounced, “ASK.”

There are national ASCII extensions that encode letters and symbols used in other alphabets. The “standard” table is called US-ASCII, or the international version. Most national extensions replace only some symbols, such as the dollar sign with the pound sign. However, for languages ​​that use non-Latin alphabets, most symbols are replaced. Russian is one such language.

What is the ASCII table for?

Digital devices don’t understand symbols by default—only numbers. Therefore, letters, numbers, and symbols must be encoded to communicate to the computer the correspondence between a specific symbol and a numerical value. There are currently several encoding options, and ASCII is one of the earliest. It set the standards for subsequent solutions.

When this encoding was developed, computers as we know them today didn’t yet exist. It was developed for teletypes—information exchange devices similar to telegraphs and typewriters. They’re rarely used today, but some standards have survived from that era, including the ASCII character set, which is now used to encode information in computers.

Today, ASCII is used to encode data in computer devices; several other encoding systems are based on it. It’s also used in creative arts, where images are created using symbols. This is called ASCII art.

Practical application

  • When developing a website or application, a developer may need to use ASCII to encode characters that are not included in the national encoding.
  • You can save a document or other file in ASCII format, which will encode all its characters using that character set. This can be useful if you need to convey information that will be readable anywhere, but some formatting features will be unavailable in this mode.
  • You can enter an ASCII code directly from the keyboard: hold down the Alt key and type the numeric value corresponding to a character from the table. This also works for characters found in extended versions of the character set, such as emojis, hieroglyphs, letters from other alphabets, and so on. The code for these characters can be much longer than the standard 128 letters and numbers.

How ASCII is structured internally

ASCII is used to input, output, and transmit information, so it must describe the most frequently used symbols and controls (carry, backspace, etc.).The table is eight-bit, and the numbers that correspond to the symbols are translated into binary code so that the computer can recognize them. Decimal notation is more convenient for humans. Hexadecimal notation is also used—it makes it easier to represent a set of numbers in a table.

Uppercase and lowercase letters in ASCII are distinct elements. Moreover, in the table, lowercase letters are arranged below uppercase letters, in the same column but on different rows. This makes the entries more visually clear, and the information is easier to check and manipulate, such as editing the case using automatic commands.

How are characters arranged in ASCII?

  • The first two lines of the table are control characters: Backspace, line feed, beginning and end of paragraph, and others.
  • The third line contains punctuation marks and special characters such as percentage % or asterisk *.
  • The fourth line contains numbers and mathematical symbols, as well as a colon, semicolon, and question mark.
  • The fifth and sixth lines contain capital letters and some other special characters.
  • The seventh and eighth lines describe lowercase letters and a few other symbols.

Differences from Unicode

When we talk about encoding, the first thing that comes to mind is the international character encoding system, Unicode. It’s important not to confuse it with ASCII—the two concepts are not identical.

ASCII was developed earlier and includes fewer characters. The standard table has only 128, not counting extensions for other languages. Meanwhile, Unicode, implemented by UTF-8 and UTF-32 encodings, currently has 2²¹ characters—more than two million. This set includes virtually all existing characters, making it a very broad one.

Unicode can be thought of as an extension of ASCII. The first 128 characters in Unicode are encoded the same way as in ASCII, and they are the same characters.


Explore More IT Terms


Share this term: Facebook X LinkedIn WhatsApp Email
CONTINUE LEARNING Next: App Store →

RELATED ARTICLES

Leave a Reply

Your email address will not be published. Required fields are marked *