DevKits

ASCII 36

Dollar Sign ($)

Printable ASCII

Dollar sign. Common variable prefix in PHP and shell scripts. Used in regex to anchor to the end of a line.

Common uses & context

The character '$' — Dollar Sign — has ASCII code 36 (0x24), octal 0044, binary 00100100. Dollar sign. Common variable prefix in PHP and shell scripts. Used in regex to anchor to the end of a line.

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

All encodings at a glance

Decimal36
Hexadecimal0x24
Octal0044
Binary00100100
HTML numeric entity$
URL encoding%24
UTF-8 bytes0x24

Code snippets

JavaScript

String.fromCharCode(36); // "$"
36.toString(16); // "24"

Python

chr(36)           # '$'
ord(chr(36))      # 36
hex(36)           # '0x24'

HTML

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

Programming notes

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

ASCII code 36 is the character '$' (Dollar Sign). In hexadecimal it is 0x24, in octal 0044, and in binary 00100100.

What is 0x24 in ASCII?

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

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

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

Nearby codes

Encode & convert this character