Developer ASCII table

Petr Faltus development

Useful development tool that shows numbers and characters declarations for Java, C# and PHP in the ASCII table.

    Hexadecimal number   Binary number   Octal number   Character
Number     Java, C#, PHP     Java, C#, PHP     Java, PHP     Java C# PHP HTML
0   0 0x0   0 0b0   0 0   NUL 0 '\0' "\x0" -
1   1 0x1   1 0b1   1 01   SOH 1 '\x1' "\x1" -
2   2 0x2   10 0b10   2 02   STX 2 '\x2' "\x2" -
3   3 0x3   11 0b11   3 03   ETX 3 '\x3' "\x3" -
4   4 0x4   100 0b100   4 04   EOT 4 '\x4' "\x4" -
5   5 0x5   101 0b101   5 05   ENQ 5 '\x5' "\x5" -
6   6 0x6   110 0b110   6 06   ACK 6 '\x6' "\x6" -
7   7 0x7   111 0b111   7 07   BEL 7 '\a' "\x7" -
8   8 0x8   1000 0b1000   10 010   BS '\b' '\b' "\x8" -
9   9 0x9   1001 0b1001   11 011   TAB '\t' '\t' "\t" -
10   A 0xA   1010 0b1010   12 012   LF '\n' '\n' "\n" -
11   B 0xB   1011 0b1011   13 013   VT 11 '\v' "\v" -
12   C 0xC   1100 0b1100   14 014   FF '\f' '\f' "\f" -
13   D 0xD   1101 0b1101   15 015   CR '\r' '\r' "\r" -
14   E 0xE   1110 0b1110   16 016   SO 14 '\xE' "\xE" -
15   F 0xF   1111 0b1111   17 017   SI 15 '\xF' "\xF" -
 
    Hexadecimal number   Binary number   Octal number   Character
Number     Java, C#, PHP     Java, C#, PHP     Java, PHP     Java C# PHP HTML
16   10 0x10   10000 0b10000   20 020   DLE 16 '\x10' "\x10" -
17   11 0x11   10001 0b10001   21 021   DC1 17 '\x11' "\x11" -
18   12 0x12   10010 0b10010   22 022   DC2 18 '\x12' "\x12" -
19   13 0x13   10011 0b10011   23 023   DC3 19 '\x13' "\x13" -
20   14 0x14   10100 0b10100   24 024   DC4 20 '\x14' "\x14" -
21   15 0x15   10101 0b10101   25 025   NAK 21 '\x15' "\x15" -
22   16 0x16   10110 0b10110   26 026   SYN 22 '\x16' "\x16" -
23   17 0x17   10111 0b10111   27 027   ETB 23 '\x17' "\x17" -
24   18 0x18   11000 0b11000   30 030   CAN 24 '\x18' "\x18" -
25   19 0x19   11001 0b11001   31 031   EOM 25 '\x19' "\x19" -
26   1A 0x1A   11010 0b11010   32 032   SUB 26 '\x1A' "\x1A" -
27   1B 0x1B   11011 0b11011   33 033   ESC 27 '\x1B' "\e" -
28   1C 0x1C   11100 0b11100   34 034   FS 28 '\x1C' "\x1C" -
29   1D 0x1D   11101 0b11101   35 035   GS 29 '\x1D' "\x1D" -
30   1E 0x1E   11110 0b11110   36 036   RS 30 '\x1E' "\x1E" -
31   1F 0x1F   11111 0b11111   37 037   US 31 '\x1F' "\x1F" -
 
    Hexadecimal number   Binary number   Octal number   Character
Number     Java, C#, PHP     Java, C#, PHP     Java, PHP     Java C# PHP HTML
32   20 0x20   100000 0b100000   40 040   ' ' ' ' ' '  
33   21 0x21   100001 0b100001   41 041   ! '!' '!' '!' !
34   22 0x22   100010 0b100010   42 042   " '"' '"' '"' "
35   23 0x23   100011 0b100011   43 043   # '#' '#' '#' #
36   24 0x24   100100 0b100100   44 044   $ '$' '$' '$' $
37   25 0x25   100101 0b100101   45 045   % '%' '%' '%' %
38   26 0x26   100110 0b100110   46 046   & '&' '&' '&' &
39   27 0x27   100111 0b100111   47 047   ' '\'' '\'' '\'' '
40   28 0x28   101000 0b101000   50 050   ( '(' '(' '(' (
41   29 0x29   101001 0b101001   51 051   ) ')' ')' ')' )
42   2A 0x2A   101010 0b101010   52 052   * '*' '*' '*' *
43   2B 0x2B   101011 0b101011   53 053   + '+' '+' '+' +
44   2C 0x2C   101100 0b101100   54 054   , ',' ',' ',' ,
45   2D 0x2D   101101 0b101101   55 055   - '-' '-' '-' -
46   2E 0x2E   101110 0b101110   56 056   . '.' '.' '.' .
47   2F 0x2F   101111 0b101111   57 057   / '/' '/' '/' /
 
    Hexadecimal number   Binary number   Octal number   Character
Number     Java, C#, PHP     Java, C#, PHP     Java, PHP     Java C# PHP HTML
48   30 0x30   110000 0b110000   60 060   0 '0' '0' '0' 0
49   31 0x31   110001 0b110001   61 061   1 '1' '1' '1' 1
50   32 0x32   110010 0b110010   62 062   2 '2' '2' '2' 2
51   33 0x33   110011 0b110011   63 063   3 '3' '3' '3' 3
52   34 0x34   110100 0b110100   64 064   4 '4' '4' '4' 4
53   35 0x35   110101 0b110101   65 065   5 '5' '5' '5' 5
54   36 0x36   110110 0b110110   66 066   6 '6' '6' '6' 6
55   37 0x37   110111 0b110111   67 067   7 '7' '7' '7' 7
56   38 0x38   111000 0b111000   70 070   8 '8' '8' '8' 8
57   39 0x39   111001 0b111001   71 071   9 '9' '9' '9' 9
58   3A 0x3A   111010 0b111010   72 072   : ':' ':' ':' :
59   3B 0x3B   111011 0b111011   73 073   ; ';' ';' ';' &#x3B;
60   3C 0x3C   111100 0b111100   74 074   < '<' '<' '<' &lt;
61   3D 0x3D   111101 0b111101   75 075   = '=' '=' '=' &#x3D;
62   3E 0x3E   111110 0b111110   76 076   > '>' '>' '>' &gt;
63   3F 0x3F   111111 0b111111   77 077   ? '?' '?' '?' &#x3F;
 
    Hexadecimal number   Binary number   Octal number   Character
Number     Java, C#, PHP     Java, C#, PHP     Java, PHP     Java C# PHP HTML
64   40 0x40   1000000 0b1000000   100 0100   @ '@' '@' '@' &#x40;
65   41 0x41   1000001 0b1000001   101 0101   A 'A' 'A' 'A' &#x41;
66   42 0x42   1000010 0b1000010   102 0102   B 'B' 'B' 'B' &#x42;
67   43 0x43   1000011 0b1000011   103 0103   C 'C' 'C' 'C' &#x43;
68   44 0x44   1000100 0b1000100   104 0104   D 'D' 'D' 'D' &#x44;
69   45 0x45   1000101 0b1000101   105 0105   E 'E' 'E' 'E' &#x45;
70   46 0x46   1000110 0b1000110   106 0106   F 'F' 'F' 'F' &#x46;
71   47 0x47   1000111 0b1000111   107 0107   G 'G' 'G' 'G' &#x47;
72   48 0x48   1001000 0b1001000   110 0110   H 'H' 'H' 'H' &#x48;
73   49 0x49   1001001 0b1001001   111 0111   I 'I' 'I' 'I' &#x49;
74   4A 0x4A   1001010 0b1001010   112 0112   J 'J' 'J' 'J' &#x4A;
75   4B 0x4B   1001011 0b1001011   113 0113   K 'K' 'K' 'K' &#x4B;
76   4C 0x4C   1001100 0b1001100   114 0114   L 'L' 'L' 'L' &#x4C;
77   4D 0x4D   1001101 0b1001101   115 0115   M 'M' 'M' 'M' &#x4D;
78   4E 0x4E   1001110 0b1001110   116 0116   N 'N' 'N' 'N' &#x4E;
79   4F 0x4F   1001111 0b1001111   117 0117   O 'O' 'O' 'O' &#x4F;
 
    Hexadecimal number   Binary number   Octal number   Character
Number     Java, C#, PHP     Java, C#, PHP     Java, PHP     Java C# PHP HTML
80   50 0x50   1010000 0b1010000   120 0120   P 'P' 'P' 'P' &#x50;
81   51 0x51   1010001 0b1010001   121 0121   Q 'Q' 'Q' 'Q' &#x51;
82   52 0x52   1010010 0b1010010   122 0122   R 'R' 'R' 'R' &#x52;
83   53 0x53   1010011 0b1010011   123 0123   S 'S' 'S' 'S' &#x53;
84   54 0x54   1010100 0b1010100   124 0124   T 'T' 'T' 'T' &#x54;
85   55 0x55   1010101 0b1010101   125 0125   U 'U' 'U' 'U' &#x55;
86   56 0x56   1010110 0b1010110   126 0126   V 'V' 'V' 'V' &#x56;
87   57 0x57   1010111 0b1010111   127 0127   W 'W' 'W' 'W' &#x57;
88   58 0x58   1011000 0b1011000   130 0130   X 'X' 'X' 'X' &#x58;
89   59 0x59   1011001 0b1011001   131 0131   Y 'Y' 'Y' 'Y' &#x59;
90   5A 0x5A   1011010 0b1011010   132 0132   Z 'Z' 'Z' 'Z' &#x5A;
91   5B 0x5B   1011011 0b1011011   133 0133   [ '[' '[' '[' &#x5B;
92   5C 0x5C   1011100 0b1011100   134 0134   \ '\\' '\\' '\\' &#x5C;
93   5D 0x5D   1011101 0b1011101   135 0135   ] ']' ']' ']' &#x5D;
94   5E 0x5E   1011110 0b1011110   136 0136   ^ '^' '^' '^' &#x5E;
95   5F 0x5F   1011111 0b1011111   137 0137   _ '_' '_' '_' &#x5F;
 
    Hexadecimal number   Binary number   Octal number   Character
Number     Java, C#, PHP     Java, C#, PHP     Java, PHP     Java C# PHP HTML
96   60 0x60   1100000 0b1100000   140 0140   ` '`' '`' '`' &#x60;
97   61 0x61   1100001 0b1100001   141 0141   a 'a' 'a' 'a' &#x61;
98   62 0x62   1100010 0b1100010   142 0142   b 'b' 'b' 'b' &#x62;
99   63 0x63   1100011 0b1100011   143 0143   c 'c' 'c' 'c' &#x63;
100   64 0x64   1100100 0b1100100   144 0144   d 'd' 'd' 'd' &#x64;
101   65 0x65   1100101 0b1100101   145 0145   e 'e' 'e' 'e' &#x65;
102   66 0x66   1100110 0b1100110   146 0146   f 'f' 'f' 'f' &#x66;
103   67 0x67   1100111 0b1100111   147 0147   g 'g' 'g' 'g' &#x67;
104   68 0x68   1101000 0b1101000   150 0150   h 'h' 'h' 'h' &#x68;
105   69 0x69   1101001 0b1101001   151 0151   i 'i' 'i' 'i' &#x69;
106   6A 0x6A   1101010 0b1101010   152 0152   j 'j' 'j' 'j' &#x6A;
107   6B 0x6B   1101011 0b1101011   153 0153   k 'k' 'k' 'k' &#x6B;
108   6C 0x6C   1101100 0b1101100   154 0154   l 'l' 'l' 'l' &#x6C;
109   6D 0x6D   1101101 0b1101101   155 0155   m 'm' 'm' 'm' &#x6D;
110   6E 0x6E   1101110 0b1101110   156 0156   n 'n' 'n' 'n' &#x6E;
111   6F 0x6F   1101111 0b1101111   157 0157   o 'o' 'o' 'o' &#x6F;
 
    Hexadecimal number   Binary number   Octal number   Character
Number     Java, C#, PHP     Java, C#, PHP     Java, PHP     Java C# PHP HTML
112   70 0x70   1110000 0b1110000   160 0160   p 'p' 'p' 'p' &#x70;
113   71 0x71   1110001 0b1110001   161 0161   q 'q' 'q' 'q' &#x71;
114   72 0x72   1110010 0b1110010   162 0162   r 'r' 'r' 'r' &#x72;
115   73 0x73   1110011 0b1110011   163 0163   s 's' 's' 's' &#x73;
116   74 0x74   1110100 0b1110100   164 0164   t 't' 't' 't' &#x74;
117   75 0x75   1110101 0b1110101   165 0165   u 'u' 'u' 'u' &#x75;
118   76 0x76   1110110 0b1110110   166 0166   v 'v' 'v' 'v' &#x76;
119   77 0x77   1110111 0b1110111   167 0167   w 'w' 'w' 'w' &#x77;
120   78 0x78   1111000 0b1111000   170 0170   x 'x' 'x' 'x' &#x78;
121   79 0x79   1111001 0b1111001   171 0171   y 'y' 'y' 'y' &#x79;
122   7A 0x7A   1111010 0b1111010   172 0172   z 'z' 'z' 'z' &#x7A;
123   7B 0x7B   1111011 0b1111011   173 0173   { '{' '{' '{' &#x7B;
124   7C 0x7C   1111100 0b1111100   174 0174   | '|' '|' '|' &#x7C;
125   7D 0x7D   1111101 0b1111101   175 0175   } '}' '}' '}' &#x7D;
126   7E 0x7E   1111110 0b1111110   176 0176   ~ '~' '~' '~' &#x7E;
127   7F 0x7F   1111111 0b1111111   177 0177   DEL 127 '\x7F' "\x7F" -

Examples for ASCII table

Numbers and characters declaration example Java

import static java.lang.System.out;

public class ExampleSource
{
    public static void main(String[] args)
    {
        byte num1 = 35; // decimal number
        byte num2 = 0x23; // hexadecimal number
        byte num3 = 0b100011; // binary number
        byte num4 = 043; // octal number
        out.println("Numbers: " + num1 + " " + num2 + " " + num3 + " " + num4);

        char char1 = 9; // decimal ASCII code notation
        char char2 = '\t'; // escape sequence for special character
        char char3 = 'a'; // normal character
        out.println("Characters: |" + char1 + "| |" + char2 + "| |" + char3 + "|");
    }
}
D:\Temp\WORK ASCII TABLE\java>java ExampleSource
Numbers: 35 35 35 35
Characters: |   | |     | |a|

D:\Temp\WORK ASCII TABLE\java>

Numbers and characters declaration example C#

using System;

public class ExampleSource
{
    public static void Main(string[] args)
    {
        byte num1 = 35; // decimal number
        byte num2 = 0x23; // hexadecimal number
        byte num3 = 0b100011; // binary number (0b literals available from C# version 7)
        // octal literals are not available in C#
        Console.WriteLine("Numbers: " + num1 + " " + num2 + " " + num3);

        char char1 = '\x9'; // escape sequence in hexadecimal notation
        char char2 = '\t'; // escape sequence for special character
        char char3 = 'a'; // normal character
        Console.WriteLine("Characters: |" + char1 + "| |" + char2 + "| |" + char3 + "|");
    }
}
D:\Temp\WORK ASCII TABLE\csharp>ExampleSource.exe
Numbers: 35 35 35
Characters: |   | |     | |a|

D:\Temp\WORK ASCII TABLE\csharp>

Numbers and characters declaration example PHP

<?php

$num1 = 35; // decimal number
$num2 = 0x23; // hexadecimal number
$num3 = 0b100011; // binary number
$num4 = 043; // octal number
echo 'Numbers: ', $num1, ' ', $num2, ' ', $num3, ' ', $num4, PHP_EOL;

$char1 = "\x9"; // escape sequence in hexadecimal notation
$char2 = "\t"; // escape sequence for special character
$char3 = 'a'; // normal character
echo 'Characters: |', $char1, '| |', $char2, '| |', $char3, '|', PHP_EOL;

?>
D:\Temp\WORK ASCII TABLE\php>ExampleSource.cmd
Numbers: 35 35 35 35
Characters: |   | |     | |a|

D:\Temp\WORK ASCII TABLE\php>

Other development tools

Characters and HTML entities in the UTF-8 table
 
Predefined web CSS colors
CSS px to rem converter
 

  

🤝 Your IP address is 3.138.175.10 (ec2-3-138-175-10.us-east-2.compute.amazonaws.com)