;
Semicolon
PrintableASCII 59 | Hex 0x3B | U+003B
Positioned at ASCII 59, the semicolon terminates statements in C, Java, JavaScript, PHP, and most Algol-derived languages. Omitting a semicolon is probably the most common syntax error beginners encounter in C-family languages. JavaScript's automatic semicolon insertion (ASI) attempts to add missing semicolons at parse time, but its rules are subtle enough that relying on it causes real bugs in production code. In CSS, the semicolon separates property declarations within a rule block.
ASCII Code
Decimal
59
Hexadecimal
0x3B
Octal
73
Binary
0011 1011
URL Escape
%3B
Unicode
Code Point
U+003B
Escape
\u003b
UTF-8 Hex
0x3B
UTF-8 Binary
00111011
UTF-16
0x003B
UTF-32
0x0000003B
HTML Entities
Numeric
;
Hex
;
Named
;
How to Type
Windows Alt CodeAlt + 59
HTML Entity
;
Unicode InputU+003B
Source Code Representations
C / Java
"\u003B"CSS
\003BJavaScript
"\u003B"Perl
\x{003B}Python 2
u"\u003B"Python 3
\u003BRuby
\u{003B}Frequently Asked Questions
What is ASCII code 59?
ASCII code 59 represents the Semicolon character. In hexadecimal it is 0x3B, in binary 0011 1011, and in octal 73. It is a printable character that appears as ";" in text.
How do I type ASCII 59 on a keyboard?
On Windows, hold Alt and type 59 on the numeric keypad. On Mac, you can use the Character Viewer (Edit > Emoji & Symbols). In HTML, use the entity ; or ;.