Skip to content
ASCII World
%

Per cent sign

PrintableASCII 37 | Hex 0x25 | U+0025
ASCII 37 functions as the modulo operator in C, Python, Java, and JavaScript, returning the remainder after integer division. In URL encoding (RFC 3986), the percent sign introduces a two-digit hex escape sequence, so %20 represents a space and the literal percent sign itself must be encoded as %25. Printf-style format strings in C and Python use % as the conversion specifier prefix. CSS uses the percent sign for relative length units tied to parent element dimensions.

ASCII Code

Decimal
37
Hexadecimal
0x25
Octal
45
Binary
0010 0101
URL Escape
%25

Unicode

Code Point
U+0025
Escape
\u0025
UTF-8 Hex
0x25
UTF-8 Binary
00100101
UTF-16
0x0025
UTF-32
0x00000025

HTML Entities

Numeric
%
Hex
%
Named
%

How to Type

Windows Alt CodeAlt + 37
HTML Entity
%
Unicode InputU+0025

Source Code Representations

C / Java
"\u0025"
CSS
\0025
JavaScript
"\u0025"
Perl
\x{0025}
Python 2
u"\u0025"
Python 3
\u0025
Ruby
\u{0025}

Frequently Asked Questions

What is ASCII code 37?
ASCII code 37 represents the Per cent sign character. In hexadecimal it is 0x25, in binary 0010 0101, and in octal 45. It is a printable character that appears as "%" in text.
How do I type ASCII 37 on a keyboard?
On Windows, hold Alt and type 37 on the numeric keypad. On Mac, you can use the Character Viewer (Edit > Emoji & Symbols). In HTML, use the entity % or %.