.

ASCII Code 46

Period, dot

About This Character

ASCII code 46 (0x2E) represents the Period, dot character ".". The "Period, dot" character (.) with ASCII code 46 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 46
Octal 056
Hexadecimal 0x2E
Binary 00101110
HTML Code .
HTML Entity .
Unicode U+002E
Unicode Name FULL STOP
URL Escape %2E
Quoted-Printable .
UTF-8 (Hex) 2E
Category Printable — Punctuation & Symbols

How to Type in Code

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

See Also

Copied!