Dollar Sign ($)
The dollar sign $ is Unicode U+0024, the sign of the dollar and several peso currencies. Press Copy to put it on your clipboard.
- Unicode
U+0024- HTML
$- Word
0024 Alt+X
How to type the dollar sign ($)
$ is on every English keyboard: press Shift + 4 on US and UK layouts. The methods below cover phones and other layouts, plus the codes you need in HTML and programming.
Windows
- In Word or Outlook, type 0024 and press Alt + X. Alt + X converts the hex code before the cursor into the character, and back again.
- Press Win + R, type charmap and press Enter. Tick “Advanced view”, search for Dollar Sign, then Select and Copy. Character Map is built into every version of Windows.
Mac
- Press Control + Command + Space to open the Character Viewer, search for dollar and double-click it.
- With the Unicode Hex Input keyboard enabled (System Settings → Keyboard → Input Sources), hold Option and type 0024.
Linux & ChromeOS
- Press Ctrl + Shift + U, type 24, then press Enter or Space. Works in GTK and IBus apps (GNOME, Firefox, Chrome, LibreOffice) and on ChromeOS.
iPhone & iPad
- Copy $ from this page, then go to Settings → General → Keyboard → Text Replacement and add it with a shortcut such as ;doll. The shortcut then turns into the symbol as you type, in every app.
Android
- Copy $ here, then open Gboard settings → Dictionary → Personal dictionary and add it with a shortcut.
Microsoft Word
- Type 0024, then press Alt + X.
- Insert → Symbol → More Symbols. Set “from” to Unicode (hex), type 0024 in “Character code” and click Insert.
Google Docs
- Insert → Special characters, then search for “dollar” or draw it in the box.
Excel & Google Sheets
- Enter
=UNICHAR(36)in a cell. It works in Excel 2013 and later and in Google Sheets.
HTML
- Write
$or$in your HTML.
What does $ mean?
$ is the sign of the dollar and of several peso currencies. It began as a symbol for the Spanish peso in the 1700s, and the United States adopted it when it named its currency after the Spanish dollar. Today it marks the US dollar (USD), the Canadian, Australian, New Zealand, Hong Kong and Singapore dollars, and the Mexican, Chilean and Colombian pesos.
In English it goes before the amount with no space: $25, $4.99. When several dollars appear together, add a prefix or the ISO code, for example US$10, C$10, A$10 or 10 USD. Some fonts draw the sign with two vertical strokes; that is a style of the same character, not a different one.
In programming, $ has many jobs: it marks variables in PHP, Perl and shell scripts, the end of a line in regular expressions, and template expressions in JavaScript (${name}).
Common uses
- Prices: $19.99, US$250
- Shell and PHP variables:
$HOME,$user - Regular expressions:
^end$
Dollar Sign codes for HTML, CSS and programming
Every code below produces $. Use the HTML entity in web pages, the CSS escape in content, and the escape sequence in source code.
| Unicode code point | U+0024 | |
|---|---|---|
| HTML entity (named) | $ | |
| HTML decimal | $ | |
| HTML hex | $ | |
| CSS content | content: "\24"; | |
| JavaScript | "\u0024" | |
| Python | "\u0024" | |
| Python (by name) | "\N{DOLLAR SIGN}" | |
| Java / C# | "\u0024" | |
| UTF-8 bytes | 24 | |
| UTF-16 | 0024 | |
| URL encoded | %24 |
$ vs look-alike characters
These characters look similar to $ but have a different meaning and code. Pasting the wrong one can break search, sorting and screen readers.
| Char | Name | When to use it |
|---|---|---|
Fullwidth DollarU+FF04 | Fullwidth dollar sign, used inside Chinese, Japanese and Korean text. | |
Heavy DollarU+1F4B2 | Heavy dollar sign emoji. Always coloured, so avoid it in prices. | |
Capital SU+0053 | The letter S. Using S or 5 instead of $ breaks price parsing and search. |
Symbols similar to $
Click to copy, or open a symbol for its codes. See the full currency symbols collection.
$ character properties
- Official Unicode name
- DOLLAR SIGN
- Also known as
- dollar symbol, peso sign, USD sign
- Code point
- U+0024
- Unicode block
- Basic Latin (U+0000–U+007F)
- General category
- Currency symbol (Sc)
- Added in
- Unicode 1.1 (1993)
- Plane
- Basic Multilingual Plane (0)
- Emoji
- No, it is a text symbol
Frequently asked questions
Why does the dollar sign have one or two lines?
Both are the same character, U+0024. Whether it shows one or two vertical strokes depends on the font. Unicode has no separate code for the two-stroke version.
Which countries use the $ sign?
The United States, Canada, Australia, New Zealand, Singapore, Hong Kong and others use it for their dollars, and Mexico, Chile, Colombia and Argentina use it for their pesos.
What is the alt code for the dollar sign?
On Windows, hold Alt and type 36 on the numeric keypad to get $. On a laptop without a keypad, copy it from this page or use 0024 then Alt + X in Word.
How do I type the dollar sign on a Mac?
There is no single Option shortcut for $ on the US layout. Press Control + Command + Space to open the Character Viewer, search for “dollar” and double-click it, or copy it from this page.
What is the HTML code for the dollar sign?
Use the named entity $ or the numeric reference $ (hex $). All three display $ in every browser.
What is the Unicode for the dollar sign?
$ is U+0024, officially named DOLLAR SIGN, in the Basic Latin block. It has been part of Unicode since version 1.1 (1993).