Search for a tool
ASCII Code

Tool to convert ASCII (binary, octal, decimal, hexadecimal) automatically. ASCII (American Standard Code for Information Interchange) is the most used character coding system. It defines 128 characters numbered from 0 to 127 and coded in binary on 7 bits from 0000000 to 1111111.

Results

ASCII Code -

Tag(s) : Character Encoding

Share
dCode and you

dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!

Team dCode likes feedback and relevant comments; to get an answer give an email (not published). It is thanks to you that dCode has the best ASCII Code tool. Thank you.

# ASCII Code

## ASCII Encoder

Tool to convert ASCII (binary, octal, decimal, hexadecimal) automatically. ASCII (American Standard Code for Information Interchange) is the most used character coding system. It defines 128 characters numbered from 0 to 127 and coded in binary on 7 bits from 0000000 to 1111111.

### How to encrypt using ASCII table cipher

Encryption consists in replacing each character with its value in the ASCII table.

Example: dCode is written 1100100 1000011 1101111 1100100 1100101 in binary (7-bit) or 100 67 111 100 101 in decimal.

Characters which don't exist in the table cannot be coded.

### How to decrypt ASCII table cipher

ASCII conversion consists in replacing each value (binary, octal, decimal or hexadecimal) with the corresponding character in the ASCII table.

Example:

Valeurs ASCII (Format)Texte clair
65 77 69 82 73 67 65 78 (Decimal)AMERICAN
83 116 97 110 100 97 114 100 (Decimal)Standard
1000011 1001111 1000100 1000101 (Binary 7bit)CODE
49 4E 46 4F 52 4D 41 54 49 4F 4E (Hexadecimal)INFORMATION
111 116 124 105 122 103 110 101 116 107 105 (Octal)INTERCHANGE

### How to recognize an ASCII ciphertext?

The message is generally written either in binary, or in decimal, or in hexadecimal (or rarely in octal).

The most frequent values must correspond to letters characters lowercase or uppercase (between 65 and 122 in decimal)

### On how many characters is represented an ASCII code?

In binary, use either 7 bits or 8 bits (1 byte) to represent an ASCII character.

In octal, 1 byte is represented with 3 characters (from 000 to 177).

In decimal, the number is between 1 and 128 (from 1 to 3 characters).

In hexadecimal, 2 characters are used (from 00 to 7f).

### How do I change from a lowercase ASCII letter to an uppercase letter?

In the ASCII code there is a difference of 32 between a uppercase letter and a lowercase letter. So add 32 to the ASCII code of a capital letter to get a lowercase and subtract 32 from the ASCII code of a lowercase letter to have a capital letter.

Example: A (65) and a (97)

This trick does not work for accented letters, which are not in the basic ASCII table (see below)

### What is the full ASCII table?

Full 7-bit ASCII table

DecimalOctalHexBinaryCharacterInfo
000000000000000NUL(Null char.)
002002020000010STX(Start of Text)
003003030000011ETX(End of Text)
004004040000100EOT(End of Transmission)
005005050000101ENQ(Enquiry)
006006060000110ACK(Acknowledgment)
007007070000111BEL(Bell)
008010080001000BS(Backspace)
009011090001001HT(Horizontal Tab)
0100120A0001010LF(Line Feed)
0110130B0001011VT(Vertical Tab)
0120140C0001100FF(Form Feed)
0130150D0001101CR(Carriage Return)
0140160E0001110SO(Shift Out)
0150170F0001111SI(Shift In)
017021110010001DC1(XON)(Device Control 1)
018022120010010DC2(Device Control 2)
019023130010011DC3(XOFF)(Device Control 3)
020024140010100DC4(Device Control 4)
021025150010101NAK(Negative Acknowledgement)
022026160010110SYN(Synchronous Idle)
023027170010111ETB(End of Trans. Block)
024030180011000CAN(Cancel)
025031190011001EM(End of Medium)
0260321A0011010SUB(Substitute)
0270331B0011011ESC(Escape)
0280341C0011100FS(File Separator)
0290351D0011101GS(Group Separator)
0300361E0011110RS(Request to Send)(Record Separator)
0310371F0011111US(Unit Separator)
032040200100000SP(Space)
033041210100001!
034042220100010"
035043230100011#
036044240100100$037045250100101% 038046260100110& 039047270100111' 040050280101000( 041051290101001) 0420522A0101010* 0430532B0101011+ 0440542C0101100, 0450552D0101101- 0460562E0101110. 0470572F0101111/ 0480603001100000 0490613101100011 0500623201100102 0510633301100113 0520643401101004 0530653501101015 0540663601101106 0550673701101117 0560703801110008 0570713901110019 0580723A0111010: 0590733B0111011; 0600743C0111100< 0610753D0111101= 0620763E0111110> 0630773F0111111? 064100401000000@ 065101411000001A 066102421000010B 067103431000011C 068104441000100D 069105451000101E 070106461000110F 071107471000111G 072110481001000H 073111491001001I 0741124A1001010J 0751134B1001011K 0761144C1001100L 0771154D1001101M 0781164E1001110N 0791174F1001111O 080120501010000P 081121511010001Q 082122521010010R 083123531010011S 084124541010100T 085125551010101U 086126561010110V 087127571010111W 088130581011000X 089131591011001Y 0901325A1011010Z 0911335B1011011[ 0921345C1011100\ 0931355D1011101] 0941365E1011110^ 0951375F1011111_ 096140601100000 097141611100001a 098142621100010b 099143631100011c 100144641100100d 101145651100101e 102146661100110f 103147671100111g 104150681101000h 105151691101001i 1061526A1101010j 1071536B1101011k 1081546C1101100l 1091556D1101101m 1101566E1101110n 1111576F1101111o 112160701110000p 113161711110001q 114162721110010r 115163731110011s 116164741110100t 117165751110101u 118166761110110v 119167771110111w 120170781111000x 121171791111001y 1221727A1111010z 1231737B1111011{ 1241747C1111100| 1251757D1111101} 1261767E1111110~ 1271777F1111111DEL(Delete) ### How to code non-ASCII characters such as accents? Use another coding table, such as Unicode or in Europe the norm ISO/CEI 8859-1 Latin which includes the ASCII table in its first part (from 0 to 127) then specific characters for the following numbers (128-255). _0_1_2_3_4_5_6_7_8_9_A_B_C_D_E_F 0_ 1_ 2_!"#$%&'()*+,-./
3_0123456789:;<=>?
4_@ABCDEFGHIJKLMNO
5_PQRSTUVWXYZ[\]^_
6_abcdefghijklmno
7_pqrstuvwxyz{|}~
8_
9_
B_°±²³´µ·¸¹º»¼½¾¿
C_ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏ
D_ÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞß
E_àáâãäåæçèéêëìíîï
F_ðñòóôõö÷øùúûüýþÿ

All non-visible characters are control characters (see ASCII table from 1 to 31)

## Source code

dCode retains ownership of the source code of the script ASCII Code online. Except explicit open source licence (indicated Creative Commons / free), any algorithm, applet, snippet, software (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any function (convert, solve, decrypt, encrypt, decipher, cipher, decode, code, translate) written in any informatic langauge (PHP, Java, C#, Python, Javascript, Matlab, etc.) which dCode owns rights will not be released for free. To download the online ASCII Code script for offline use on PC, iPhone or Android, ask for price quote on contact page !