#

ASCII Code 35

Number sign

About This Character

ASCII code 35 (0x23) represents the Number sign character "#". The "Number sign" character (#) with ASCII code 35 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 35
Octal 043
Hexadecimal 0x23
Binary 00100011
HTML Code #
HTML Entity #
Unicode U+0023
Unicode Name NUMBER SIGN
URL Escape %23
Quoted-Printable #
UTF-8 (Hex) 23
Category Printable — Punctuation & Symbols

How to Type in Code

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

See Also

Copied!