ASCII 46
Full Stop (.)
Printable ASCII
Period / dot / full stop. Decimal point, object property access (obj.prop), file extension separator.
Common uses & context
The character '.' — Full Stop — has ASCII code 46 (0x2E), octal 0056, binary 00101110. Period / dot / full stop. Decimal point, object property access (obj.prop), file extension separator.
Punctuation and symbol codes carry the most syntactic weight per byte in programming: a single '.' can change how a parser reads an entire expression. When '.' needs to appear as literal data rather than syntax, you often have to escape it — in string literals, in regular expressions, in URLs (where it becomes %2E), or in HTML. Knowing its exact code point (46) helps when you filter, validate, or sanitize input byte by byte.
All encodings at a glance
| Decimal | 46 |
| Hexadecimal | 0x2E |
| Octal | 0056 |
| Binary | 00101110 |
| HTML numeric entity | . |
| URL encoding | %2E |
| UTF-8 bytes | 0x2E |
Code snippets
JavaScript
String.fromCharCode(46); // "."
46.toString(16); // "2e"Python
chr(46) # '.'
ord(chr(46)) # 46
hex(46) # '0x2e'HTML
. <!-- numeric entity (no named entity for this character) -->Programming notes
- ▸Code 46 (0x2E); URL-encoded form%2E.
- ▸In HTML the numeric entity is ..
- ▸When used as literal data in regex or strings, '.' usually needs escaping — check the rules for your language.
Frequently asked questions
What character is ASCII code 46?
ASCII code 46 is the character '.' (Full Stop). In hexadecimal it is 0x2E, in octal 0056, and in binary 00101110.
What is 0x2E in ASCII?
Hexadecimal 0x2E equals decimal 46, which is the character '.' (Full Stop). To convert hex to ASCII yourself, read the two hex digits as a base-16 number (0x2E = 46) and look up that code point.
How do I write the character with code 46 in code?
In JavaScript use String.fromCharCode(46); in Python use chr(46); in HTML use the numeric entity .. In a URL it is percent-encoded as %2E, and in UTF-8 it is stored as the byte sequence 0x2E.