%

ASCII Character: Percent sign

ASCII Code 37 · Unicode U+0025 · Hex 0x25

percent-sign percent

About the Percent sign Character

ASCII code 37 (0x25) represents the Percent sign character "%". The "Percent sign" character (%) with ASCII code 37 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 37
Hexadecimal 0x25
Octal 045
Binary 00100101
Unicode U+0025
Unicode Name PERCENT SIGN
HTML Numeric %
HTML Entity %
URL Escape %25
UTF-8 (Hex) 25
Quoted-Printable %

Source Code Examples

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

Navigate

Copied!