HTML Entity for Cent Sign (¢)

Beginner
⏱️ 5 min read
📚 Updated: Jun 2026
🎯 1 Code Example
Unicode U+00A2

What You'll Learn

How to display the Cent Sign (¢) in HTML using numeric references, the named entity, and CSS escapes. This character is U+00A2 (CENT SIGN) in the Latin-1 Supplement block (U+0080–U+00FF). It represents one cent (1/100 of a dollar or other currency unit) and is widely used in US pricing (e.g. 99¢).

You can use the named entity ¢, hex ¢, decimal ¢, or CSS \A2. Do not confuse ¢ with the Ghanaian cedi sign U+20B5 (₵) or the combining cedilla U+0327.

⚡ Quick Reference — Cent Sign

Unicode U+00A2

Latin-1 Supplement block

Hex Code ¢

Hexadecimal reference

HTML Code ¢

Decimal reference

Named Entity ¢

Standard HTML entity

Reference Table
Name           Value
────────────   ──────────
Unicode        U+00A2
Hex code       ¢
HTML code      ¢
Named entity   ¢
CSS code       \A2
1

Complete HTML Example

This example demonstrates the Cent Sign (¢) using hexadecimal code, decimal HTML code, the named entity, and a CSS content escape:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point:after{
   content: "\A2";
  }
 </style>
</head>
<body>
<p>Cent Sign using Hexadecimal: &#x00A2;</p>
<p>Cent Sign using HTML Code: &#162;</p>
<p>Cent Sign using HTML Entity: &cent;</p>
<p id="point">Cent Sign using CSS Entity: </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

The Cent Sign entity is universally supported in all modern browsers:

Chrome 1+
Firefox 1+
Safari 1+
Edge 12+
Opera 4+
Android 4.4+
iOS Safari 1+

👀 Live Preview

See the Cent Sign in pricing and financial contexts:

Product price 99¢
Coupon text Save 25¢ per item
Large glyph ¢
vs Cedi Sign Cent: ¢ (U+00A2)   Cedi: ₵ (U+20B5)
Monospace refs &#x00A2; &#162; &cent; \A2

🧠 How It Works

1

Hexadecimal Code

&#x00A2; uses the Unicode hexadecimal value 00A2 to display the Cent Sign.

HTML markup
2

Decimal HTML Code

&#162; uses the decimal Unicode value 162 to display the same character.

HTML markup
3

Named HTML Entity

&cent; is the standard named entity—the most readable option when writing HTML by hand.

HTML markup
4

CSS Entity

\A2 is used in CSS stylesheets, particularly in the content property of pseudo-elements like ::before and ::after.

CSS stylesheet
=

Same visual result

All four methods produce the Cent Sign glyph: ¢. Unicode U+00A2 sits in the Latin-1 Supplement block (U+0080–U+00FF).

Use Cases

The Cent Sign (¢) commonly appears in:

🛒 E-commerce

Product prices in cents (e.g. 99¢, 50¢ off).

💰 Financial content

Reports, invoices, and amounts displayed in cents.

🎫 Coupons & promos

Promotional text like “Save 25¢” or “10¢ per unit.”

📊 Currency formatting

Dollar-and-cent displays (e.g. $1.99 or 199¢).

📚 Education

Teaching currency, math, or economics with cent amounts.

🧾 Receipts & tickets

Digital receipts, vending machines, and fare displays.

♿ Accessibility

Pair with “cents” in accessible text when the symbol stands alone.

💡 Best Practices

Do

  • Prefer &cent; for readable HTML source code
  • Use consistent entity style throughout a document
  • Follow your style guide for spacing (99¢ vs 99 ¢)
  • Use lang="en-US" on US pricing pages when appropriate
  • Provide accessible text (“cents”) when the symbol is critical

Don’t

  • Confuse ¢ (cent, U+00A2) with ₵ (cedi, U+20B5) or U+0327 (combining cedilla)
  • Put CSS escape \A2 inside HTML text nodes
  • Use the cent sign where a full dollar amount is clearer ($0.99)
  • Assume all locales use ¢ for fractional currency
  • Mix entity styles randomly in one file

Key Takeaways

1

Named entity is the easiest option

&cent;
2

Numeric references also render ¢

&#x00A2; &#162;
3

For CSS stylesheets, use the escape in the content property

\A2
4

U+00A2 CENT SIGN — Latin-1 Supplement

5

Four methods, one glyph — all widely supported

❓ Frequently Asked Questions

Use &cent; (named entity), &#x00A2; (hex), &#162; (decimal), or \A2 in CSS content. All produce ¢.
U+00A2 (CENT SIGN). Latin-1 Supplement block (U+0080–U+00FF). Hex 00A2, decimal 162. Represents one cent (1/100 of a currency unit).
For pricing (e.g. 99¢), e-commerce product pages, coupons and discounts, financial content, receipts, and educational material about currency.
HTML entities (&cent;, &#162;, or &#x00A2;) go directly in markup. The CSS escape \A2 is used in stylesheets, typically in the content property of pseudo-elements. Same visual result, different layers of the stack.
Yes. &cent; is the named HTML entity for U+00A2. You can also use &#162; (decimal) or &#x00A2; (hex).

Explore More HTML Entities!

Discover 1500+ HTML character references — currency symbols, diacritics, arrows, math operators, and more.

All HTML Entities →

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