:

ASCII Code 58

Colon

About This Character

ASCII code 58 (0x3A) represents the Colon character ":". The "Colon" character (:) with ASCII code 58 is a punctuation or special symbol in the printable ASCII range. Punctuation characters serve important roles in both natural language writing and programming syntax. The printable ASCII characters (codes 32–126) include the space, digits, uppercase and lowercase Latin letters, and common punctuation symbols. These 95 characters form the foundation of text representation in virtually all computing systems and are universally supported across all character encodings, programming languages, and operating systems.

Character Encoding

Decimal 58
Octal 072
Hexadecimal 0x3A
Binary 00111010
HTML Code :
HTML Entity :
Unicode U+003A
Unicode Name COLON
URL Escape %3A
Quoted-Printable :
UTF-8 (Hex) 3A
Category Printable — Punctuation & Symbols

How to Type in Code

JavaScript
// Character literal
let char = ':';
// Using char code
let char2 = String.fromCharCode(58);
// Unicode escape
let char3 = '\x3A';
Python
# Character literal
char = ':'
# Using chr()
char = chr(58)
# Using ord() to get code
code = ord(':')  # Returns 58
HTML
<!-- Direct character -->
:
<!-- HTML entity (numeric) -->
&#58;
<!-- Hex entity -->
&#x3A;
C#
// Character literal
char c = ':';
// Using cast
char c2 = (char)58;
// To get code from char
int code = (int)':';  // Returns 58

See Also

Copied!