ASCII Text Converter

Of the numerous ways invented to represent text on a computer, none are more common or well-known than the American Standard Code for Information Interchange (ASCII). This simple 7-bit code represents the English alphabet in both lower and upper case, the digits 0 to 9, and numerous punctuation marks. It's current form was standardized in 1986.

The range of 128 codes is divided into control characters and printable characters. Control characters are invisible symbols that represent commands rather than printable text (codes [0, 31] and 127). For example, 10 represents a new line, and 9 represents a "Tab", which advances the column position to the next tab stop. Although 32 is a space, which is invisible, it is considered to be a printable character nonetheless, since it behaves like a printable character (having the same behavior everywhere), and this allows fonts to define a printable glyph for the space (such as in programming, where whitespace is meaningful in some languages and it can be helpful to see it). The remaining codes are printable characters, which compose normal text. The letters you're reading now are printable characters! The glyph image and size for each character is determined by the font.

The ranges of characters were carefully chosen to make certain tricks possible. For example, upper and lower case letters differ by only the sixth bit. Text can be converted to lowercase by simply setting the sixth bit to 1 (calculate a bitwise or with 32), provided the text does not contain any of: [\]^_

The eighth bit in a byte is not used by ASCII. Using only 7 bits makes text 12.5% smaller, and allows for future extensions of the encoding when full bytes are used. Now, the eighth bit is used to represent the start of a UTF-8 multi-byte character from Unicode, allowing millions of characters.


Enter text in the box, and it will be encoded or decoded into ASCII character codes.


  

ASCII Codes:
  


ASCII Character Codes
In Hexadecimal:
0 [NUL] 1 [SOH] 2 [STX] 3 [ETX] 4 [EOT] 5 [ENQ] 6 [ACK] 7 [BEL] 8 [BS] 9 [TAB] A [LF] B [VT] C [FF] D [CR] E [SO] F [SI] 10 [DLE] 11 [DC1] 12 [DC2] 13 [DC3] 14 [DC4] 15 [NAK] 16 [SYN] 17 [ETB] 18 [CAN] 19 [EM] 1A [SUB] 1B [ESC] 1C [FS] 1D [GS] 1E [RS] 1F [US]
20 (Space) 21 ! 22 " 23 # 24 $ 25 % 26 & 27 ' 28 ( 29 ) 2A * 2B + 2C , 2D - 2E . 2F / 30 0 31 1 32 2 33 3 34 4 35 5 36 6 37 7 38 8 39 9 3A : 3B ; 3C < 3D = 3E > 3F ?
40 @ 41 A 42 B 43 C 44 D 45 E 46 F 47 G 48 H 49 I 4A J 4B K 4C L 4D M 4E N 4F O 50 P 51 Q 52 R 53 S 54 T 55 U 56 V 57 W 58 X 59 Y 5A Z 5B [ 5C \ 5D ] 5E ^ 5F _
60 ` 61 a 62 b 63 c 64 d 65 e 66 f 67 g 68 h 69 i 6A j 6B k 6C l 6D m 6E n 6F o 70 p 71 q 72 r 73 s 74 t 75 u 76 v 77 w 78 x 79 y 7A z 7B { 7C | 7D } 7E ~ 7F [DEL]