copied = false, 2000)"
@keydown.enter="navigator.clipboard.writeText('$'); copied = true; setTimeout(() => copied = false, 2000)"
:class="copied ? 'border-green-400 bg-green-50 dark:bg-green-950' : ''">
$
DOLLAR SIGN
Overview
$ is the DOLLAR SIGN, the currency symbol of the United States dollar and many other currencies that share the name. It occupies U+0024 in the Basic Latin block and is classified as a currency symbol. Written as an S crossed by one or two vertical strokes, it precedes monetary amounts across much of the world, and in computing it takes on further roles such as marking variables, so that it is one of the most versatile symbols in the ASCII range.
On this page
Encoding Table
| Format | Value | Copy |
|---|---|---|
| Code point | U+0024 |
|
| Decimal | 36 |
|
| HTML decimal | $ |
|
| HTML hex | $ |
|
| CSS | \0024 |
|
| JavaScript | \u{24} |
|
| Python | \u0024 |
|
| Java | \u0024 |
|
| Go | \u0024 |
|
| Ruby | \u{24} |
|
| Rust | \u{24} |
|
| C / C++ | \u0024 |
|
| URL-encoded | %24 |
|
| UTF-8 bytes | 24 |
|
| UTF-16BE bytes | 00 24 |
|
| UTF-32BE bytes | 00 00 00 24 |
How to Use
HTML:
$
CSS:
content: "\0024"
JavaScript:
"\u{24}"
Python:
"\u0024"
Properties
- Block
- Basic Latin
- Script
- Common Zyyy
- Category
- Currency Symbol (Sc)
- Bidirectional
- ET
- Combining
- 0
- Mirrored
- No
Frequently Asked Questions
How do I type or copy DOLLAR SIGN?
Copy $ directly, or use the HTML entity, UTF-8, and code encodings shown on this page.