Skip to content
ASCII World
:

Colon

PrintableASCII 58 | Hex 0x3A | U+003A
ASCII 58 separates hours from minutes in time notation (14:30), keys from values in JSON and YAML, and port numbers from hostnames in URLs (localhost:3000). In Python, the colon begins a block statement (if, for, def, class) and defines dictionary key-value pairs. C and C++ use the double colon (::) as the scope resolution operator. IPv6 addresses use colons between hex groups, with a double colon (::) compressing consecutive zero groups.

ASCII Code

Decimal
58
Hexadecimal
0x3A
Octal
72
Binary
0011 1010
URL Escape
%3A

Unicode

Code Point
U+003A
Escape
\u003a
UTF-8 Hex
0x3A
UTF-8 Binary
00111010
UTF-16
0x003A
UTF-32
0x0000003A

HTML Entities

Numeric
:
Hex
:
Named
:

How to Type

Windows Alt CodeAlt + 58
HTML Entity
:
Unicode InputU+003A

Source Code Representations

C / Java
"\u003A"
CSS
\003A
JavaScript
"\u003A"
Perl
\x{003A}
Python 2
u"\u003A"
Python 3
\u003A
Ruby
\u{003A}

Frequently Asked Questions

What is ASCII code 58?
ASCII code 58 represents the Colon character. In hexadecimal it is 0x3A, in binary 0011 1010, and in octal 72. It is a printable character that appears as ":" in text.
How do I type ASCII 58 on a keyboard?
On Windows, hold Alt and type 58 on the numeric keypad. On Mac, you can use the Character Viewer (Edit > Emoji & Symbols). In HTML, use the entity : or :.