$
Dollar
PrintableASCII 36 | Hex 0x24 | U+0024
Assigned to ASCII 36, the dollar sign serves as a variable prefix in PHP, Perl, Bash, and jQuery selectors. In the original 1963 ASA X3.4 standard, position 36 was intentionally left available for national use, and some countries mapped it to their own currency symbol instead. Regular expressions use $ to anchor matches at the end of a line or string. LaTeX requires escaping the dollar sign (\$) because unescaped $ toggles math mode.
ASCII Code
Decimal
36
Hexadecimal
0x24
Octal
44
Binary
0010 0100
URL Escape
%24
Unicode
Code Point
U+0024
Escape
\u0024
UTF-8 Hex
0x24
UTF-8 Binary
00100100
UTF-16
0x0024
UTF-32
0x00000024
HTML Entities
Numeric
$
Hex
$
Named
$
How to Type
Windows Alt CodeAlt + 36
HTML Entity
$
Unicode InputU+0024
Source Code Representations
C / Java
"\u0024"CSS
\0024JavaScript
"\u0024"Perl
\x{0024}Python 2
u"\u0024"Python 3
\u0024Ruby
\u{0024}Frequently Asked Questions
What is ASCII code 36?
ASCII code 36 represents the Dollar character. In hexadecimal it is 0x24, in binary 0010 0100, and in octal 44. It is a printable character that appears as "$" in text.
How do I type ASCII 36 on a keyboard?
On Windows, hold Alt and type 36 on the numeric keypad. On Mac, you can use the Character Viewer (Edit > Emoji & Symbols). In HTML, use the entity $ or $.