.

ASCII Character: Period, dot

ASCII Code 46 · Unicode U+002E · Hex 0x2E

period dot full-stop

About the Period, dot 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.

Encoding Details

ASCII Code 46
Hexadecimal 0x2E
Octal 056
Binary 00101110
Unicode U+002E
Unicode Name FULL STOP
HTML Numeric .
HTML Entity .
URL Escape %2E
UTF-8 (Hex) 2E
Quoted-Printable .

Source Code Examples

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

Navigate

Copied!