DevKits

ASCII 37

Percent Sign (%)

Printable ASCII

Percent sign. Introduces URL percent-encoded sequences (%20). Used as the modulo operator in most languages.

Common uses & context

The character '%' — Percent Sign — has ASCII code 37 (0x25), octal 0045, binary 00100101. Percent sign. Introduces URL percent-encoded sequences (%20). Used as the modulo operator in most languages.

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 %25), or in HTML. Knowing its exact code point (37) helps when you filter, validate, or sanitize input byte by byte.

All encodings at a glance

Decimal37
Hexadecimal0x25
Octal0045
Binary00100101
HTML numeric entity%
URL encoding%25
UTF-8 bytes0x25

Code snippets

JavaScript

String.fromCharCode(37); // "%"
37.toString(16); // "25"

Python

chr(37)           # '%'
ord(chr(37))      # 37
hex(37)           # '0x25'

HTML

&#37;   <!-- numeric entity (no named entity for this character) -->

Programming notes

  • Code 37 (0x25); URL-encoded form%25.
  • In HTML the numeric entity is &#37;.
  • 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 37?

ASCII code 37 is the character '%' (Percent Sign). In hexadecimal it is 0x25, in octal 0045, and in binary 00100101.

What is 0x25 in ASCII?

Hexadecimal 0x25 equals decimal 37, which is the character '%' (Percent Sign). To convert hex to ASCII yourself, read the two hex digits as a base-16 number (0x25 = 37) and look up that code point.

How do I write the character with code 37 in code?

In JavaScript use String.fromCharCode(37); in Python use chr(37); in HTML use the numeric entity &#37;. In a URL it is percent-encoded as %25, and in UTF-8 it is stored as the byte sequence 0x25.

Nearby codes

Encode & convert this character