HTML Entity for Dollar Sign ($)

Beginner
5 min read
Updated: Sep 2026
1 example
Unicode U+0024

What Is Dollar Sign?

Dollar sign ($) is the Unicode character at U+0024 in the Basic Latin (ASCII) block. Official name: DOLLAR SIGN. It is the standard currency symbol for dollars (USD and several other currencies).

Remember
Character     $
Unicode       U+0024
Named entity  $
Hex entity    $
Decimal       $
CSS escape    \24
Not the same  ¤ · € · ¢

Prefer typing $ or $ in HTML markup. Numeric forms work the same when you need an entity for consistency with other currency pages.

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Named entity$HTML markup
Direct character$HTML text (preferred / UTF-8)
Hex entity$HTML markup
Decimal entity$HTML markup
CSS escape\24Stylesheet content

When to Use Which

SituationUse
Prices / dollar currencyType $ or $
Euro€ / €
Cent¢ / ¢
Generic currency sign¤ / ¤
Generated text via ::before / ::aftercontent: "\24" or content: "$"

Live Preview

Dollar sign rendered in common price contexts.

Example $99.00
Large glyph $
Compared $   ¢   €   ¤
With entities Named: $ | Hex: $ | Decimal: $

Complete HTML Example

One page that shows Dollar Sign with named, hex, decimal, CSS escape, and a typed character. Use View Output or open the live editor.

Named + Hex + Decimal + CSS + Typed

Five ways to produce $, plus a price example.

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Dollar Sign ($) in HTML</title>
  <style>
    #point::after {
      content: "\24";
    }
  </style>
</head>
<body>
  <p>Symbol using Named Entity: &dollar;</p>
  <p>Symbol using Hex Code: &#x24;</p>
  <p>Symbol using HTML Code: &#36;</p>
  <p id="point">Symbol using CSS Entity: </p>
  <p>Typed directly: $</p>
  <p>Example: Price &dollar;99.00</p>
</body>
</html>
Try It Yourself

How It Works

1. Named: &dollar; is the HTML5 name for U+0024 → $. Useful when you want a readable entity.

2. Hex: U+0024 → &#x24; in HTML. Same glyph as the named form.

3. Decimal: same code point as 36 → &#36;. Same result as hex and named.

4. CSS: use \24 in content (not an HTML entity). #point::after appends that $ after the paragraph text. You can also write content: "$".

5. Typed / example: paste $ in UTF-8, or write &dollar;99.00 for a price.

Pitfalls & Tips

Common mistakes when working with Dollar Sign.

ASCII

Typing $ is fine

Unlike many math symbols, dollar is ASCII. You do not need an entity unless you prefer one for consistency.

¤

Not the generic currency sign

¤ (&curren;) is a generic currency glyph. Use $ for dollars.

Locale

Say which dollar

Several countries use $. Add USD, CAD, or similar when the currency must be unambiguous.

CSS vs HTML

Do not mix escapes

\24 belongs in CSS strings. &dollar; / &#x24; / &#36; belong in HTML.

Other langs

Special in some languages

In PHP, shell, and template strings, $ can start a variable. That is outside HTML — escape according to that language when needed.

Semicolon

End references

Always finish named/numeric forms with ; — write &dollar;, not &dollar.

Browser Support

Dollar sign (U+0024) and its entity forms (&dollar;, &#x24;, &#36;, CSS \\24) are supported in all mainstream browsers. As ASCII, the glyph is available in essentially every font.

✓ Universal support

Dollar Sign ($)

Encode with named, hex, decimal, CSS escape, or type the character — same code point everywhere encoding is supported.

100% Browser coverage
Google Chrome Supported
Yes
Microsoft Edge Supported
Yes
Mozilla Firefox Supported
Yes
Apple Safari Supported
Yes
Opera Supported
Yes
Internet Explorer All versions
Yes
U+0024 / entities Full support

Bottom line: Prefer typing $ or &dollar; in HTML. Use &#x24; or &#36; when numeric form is required, and \\24 only inside CSS content.

Key Takeaways

  • Unicode: dollar sign is U+0024 (decimal 36) — glyph $.
  • HTML: type $, or use &dollar; / &#x24; / &#36;.
  • CSS: use \24 or "$" inside content for generated text.
  • Meaning: $ = dollar — not ¤, €, or ¢.

One line: U+0024 → type $ / &dollar; / &#x24; / &#36; / CSS \24.

Frequently Asked Questions

Type $ directly, or use &dollar; (named), &#x24; (hex), &#36; (decimal), or the CSS escape \24 in content. Prefer typing $ or &dollar; in normal HTML.
U+0024 (DOLLAR SIGN). Hex 24, decimal 36. It belongs to the Basic Latin (ASCII) block (U+0000–U+007F).
Yes. Use &dollar;. Numeric forms &#36; and &#x24; also work. Typing $ is fine in UTF-8 documents.
Use it for prices, currency labels, and any text that needs the dollar sign. Prefer clear currency text (USD) when accessibility or locale clarity matters.
HTML entities (&dollar;, &#36;, or &#x24;) go in markup. The CSS escape \24 goes in stylesheet strings (usually content on ::before/::after).
No. $ is U+0024 (dollar). ¤ is U+00A4 (currency sign). € is U+20AC (euro sign). Use the symbol that matches the currency.

Did you know?

Dollar sign is Unicode U+0024 (decimal 36) — glyph $ in the Basic Latin (ASCII) block. HTML5 names it &dollar;. You can also type $ directly in UTF-8 HTML. Related currency pages: euro, cent, pound, and yen.

Next: Dong Sign

Learn the HTML entity for the dong sign (U+20AB).

Dong Sign tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

8 people found this page helpful