ASCII 64
Commercial At (@)
Printable ASCII
At sign. Email address separator, decorators in Python (@decorator), mentions (@user), CSS at-rules (@media).
Common uses & context
The character '@' — Commercial At — has ASCII code 64 (0x40), octal 0100, binary 01000000. At sign. Email address separator, decorators in Python (@decorator), mentions (@user), CSS at-rules (@media).
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 %40), or in HTML. Knowing its exact code point (64) helps when you filter, validate, or sanitize input byte by byte.
All encodings at a glance
| Decimal | 64 |
| Hexadecimal | 0x40 |
| Octal | 0100 |
| Binary | 01000000 |
| HTML numeric entity | @ |
| URL encoding | %40 |
| UTF-8 bytes | 0x40 |
Code snippets
JavaScript
String.fromCharCode(64); // "@"
64.toString(16); // "40"Python
chr(64) # '@'
ord(chr(64)) # 64
hex(64) # '0x40'HTML
@ <!-- numeric entity (no named entity for this character) -->Programming notes
- ▸Code 64 (0x40); URL-encoded form%40.
- ▸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 64?
ASCII code 64 is the character '@' (Commercial At). In hexadecimal it is 0x40, in octal 0100, and in binary 01000000.
What is 0x40 in ASCII?
Hexadecimal 0x40 equals decimal 64, which is the character '@' (Commercial At). To convert hex to ASCII yourself, read the two hex digits as a base-16 number (0x40 = 64) and look up that code point.
How do I write the character with code 64 in code?
In JavaScript use String.fromCharCode(64); in Python use chr(64); in HTML use the numeric entity @. In a URL it is percent-encoded as %40, and in UTF-8 it is stored as the byte sequence 0x40.