Skip to content
ASCII World
.

Period, dot or full stop

PrintableASCII 46 | Hex 0x2E | U+002E
Period (ASCII 46) terminates sentences in English and serves as the decimal separator in US, UK, and most programming locales. In file systems, the dot separates filenames from extensions (report.pdf), and a leading dot hides files in Unix (.gitignore, .env). In regular expressions, an unescaped dot matches any character except newline, which is the single most common regex metacharacter surprise for beginners. DNS fully qualified domain names technically end with a trailing dot (example.com.), though it is almost always omitted in practice.

ASCII Code

Decimal
46
Hexadecimal
0x2E
Octal
56
Binary
0010 1110
URL Escape
%2E

Unicode

Code Point
U+002E
Escape
\u002e
UTF-8 Hex
0x2E
UTF-8 Binary
00101110
UTF-16
0x002E
UTF-32
0x0000002E

HTML Entities

Numeric
.
Hex
.
Named
.

How to Type

Windows Alt CodeAlt + 46
HTML Entity
.
Unicode InputU+002E

Source Code Representations

C / Java
"\u002E"
CSS
\002E
JavaScript
"\u002E"
Perl
\x{002E}
Python 2
u"\u002E"
Python 3
\u002E
Ruby
\u{002E}

Frequently Asked Questions

What is ASCII code 46?
ASCII code 46 represents the Period, dot or full stop character. In hexadecimal it is 0x2E, in binary 0010 1110, and in octal 56. It is a printable character that appears as "." in text.
How do I type ASCII 46 on a keyboard?
On Windows, hold Alt and type 46 on the numeric keypad. On Mac, you can use the Character Viewer (Edit > Emoji & Symbols). In HTML, use the entity . or ..