DevKits

ASCII 59

Semicolon (;)

Printable ASCII

Semicolon. Statement terminator in C-family languages. Alternative CSV delimiter in European locales.

Common uses & context

The character ';' — Semicolon — has ASCII code 59 (0x3B), octal 0073, binary 00111011. Semicolon. Statement terminator in C-family languages. Alternative CSV delimiter in European locales.

Punctuation and symbol codes carry the most syntactic weight per byte in programming: a single ';' can change how a parser reads an entire expression. When ';' needs to appear as literal data rather than syntax, you often have to escape it — in string literals, in regular expressions, in URLs (where it becomes %3B), or in HTML. Knowing its exact code point (59) helps when you filter, validate, or sanitize input byte by byte.

All encodings at a glance

Decimal59
Hexadecimal0x3B
Octal0073
Binary00111011
HTML numeric entity&#59;
URL encoding%3B
UTF-8 bytes0x3B

Code snippets

JavaScript

String.fromCharCode(59); // ";"
59.toString(16); // "3b"

Python

chr(59)           # ';'
ord(chr(59))      # 59
hex(59)           # '0x3b'

HTML

&#59;   <!-- numeric entity (no named entity for this character) -->

Programming notes

  • Code 59 (0x3B); URL-encoded form%3B.
  • In HTML the numeric entity is &#59;.
  • When used as literal data in regex or strings, ';' usually needs escaping — check the rules for your language.

Frequently asked questions

What character is ASCII code 59?

ASCII code 59 is the character ';' (Semicolon). In hexadecimal it is 0x3B, in octal 0073, and in binary 00111011.

What is 0x3B in ASCII?

Hexadecimal 0x3B equals decimal 59, which is the character ';' (Semicolon). To convert hex to ASCII yourself, read the two hex digits as a base-16 number (0x3B = 59) and look up that code point.

How do I write the character with code 59 in code?

In JavaScript use String.fromCharCode(59); in Python use chr(59); in HTML use the numeric entity &#59;. In a URL it is percent-encoded as %3B, and in UTF-8 it is stored as the byte sequence 0x3B.

Nearby codes

Encode & convert this character