HTML Entity for Yen Sign (¥)

What You'll Learn
How to display the Yen sign (¥) in HTML using hexadecimal, decimal, named entity, and CSS escape methods. This character is U+00A5 (YEN SIGN) in the Latin-1 Supplement block—the standard currency symbol for Japanese yen (JPY) and Chinese yuan (CNY).
Render it with ¥, ¥, ¥, or CSS escape \00A5. Do not confuse ¥ with the yen kanji (円, U+5186) or fullwidth yen (¥, U+FFE5). Pair prices with aria-label or visible currency text for accessibility.
⚡ Quick Reference — Yen Sign
U+00A5Latin-1 Supplement
¥Hexadecimal reference
¥Decimal reference
¥Most readable option
Name Value
──────────── ──────────
Unicode U+00A5
Hex code ¥
HTML code ¥
Named entity ¥
CSS code \00A5
Meaning Yen / yuan currency symbol
Related U+5186 = Yen character (円)
U+FFE5 = Fullwidth yen (¥)
Block Latin-1 Supplement (U+0080–U+00FF)Complete HTML Example
A simple example showing the Yen sign (¥) using hexadecimal code, decimal HTML code, named entity, and a CSS content escape:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<style>
#price:before{
content: "\00A5";
}
</style>
</head>
<body>
<p>Yen Sign (hex): ¥1,000</p>
<p>Yen Sign (decimal): ¥1,000</p>
<p>Yen Sign (named): ¥1,000</p>
<p id="price">1,000</p>
</body>
</html>🌐 Browser Support
The Yen sign entity is universally supported in all modern browsers:
👀 Live Preview
See the Yen sign rendered live in price and comparison contexts:
🧠 How It Works
Hexadecimal Code
¥ uses the Unicode hexadecimal value A5 to display the Yen sign. The x prefix indicates hexadecimal format.
Decimal HTML Code
¥ uses the decimal Unicode value 165 to display the same character. This is one of the most commonly used methods.
CSS Entity
\00A5 is used in CSS stylesheets, particularly in the content property of pseudo-elements like ::before and ::after.
Named Entity
¥ is the standard named HTML entity for U+00A5—the easiest to read in source markup and the most self-descriptive option.
Same visual result
All four methods produce the glyph: ¥. Unicode U+00A5 is YEN SIGN in the Latin-1 Supplement block. For the Japanese kanji form, see Yen Character (円, U+5186).
Use Cases
The Yen sign (¥) is commonly used in:
Display prices in Japanese yen or Chinese yuan (e.g. ¥1,000).
Invoices, reports, and accounting documents with currency symbols.
Exchange-rate tools and multi-currency price displays.
Balances, transactions, and financial data in JPY or CNY.
Japanese and Chinese market pricing on international storefronts.
Budgeting tools, loan calculators, and payment widgets.
Multi-currency websites supporting yen or yuan transactions.
💡 Best Practices
Do
- Prefer
¥for readable source markup - Pair ¥ with proper number formatting (e.g. ¥1,000)
- Use ¥ for compact international UI; use 円 for native Japanese kanji prices
- Add
aria-labelor visible currency code (JPY/CNY) for screen readers - Pick one entity style (named, hex, or decimal) per project for consistency
Don’t
- Confuse ¥ (yen sign) with 円 (kanji) or ¥ (fullwidth yen)
- Put CSS escape
\00A5in HTML text nodes - Assume
¥always means the same legal tender in every locale - Mix entity styles randomly in one file
- Use a raw ¥ character without UTF-8 encoding declared
Key Takeaways
Four HTML references all render ¥
¥ ¥ ¥For CSS stylesheets, use the escape in the content property
\00A5Unicode U+00A5 — YEN SIGN (Latin-1 Supplement)
Standard symbol for JPY and CNY; 円 is the Japanese kanji alternative
Previous: Yen Character (円) Next: Yen Yuan Variant One (圆)
❓ Frequently Asked Questions
¥ (hex), ¥ (decimal), ¥ (named), or \00A5 in CSS content. All produce ¥.U+00A5 (YEN SIGN). Latin-1 Supplement block. Hex A5, decimal 165. Used for Japanese yen and Chinese yuan.¥, ¥, or ¥) go directly in markup. The CSS escape \00A5 is used in stylesheets, typically in the content property of pseudo-elements. Same visual result, different layers of the stack.¥ is the standard named HTML entity for U+00A5. It is equivalent to ¥ and ¥ in modern browsers and is the most readable option.Explore More HTML Entities!
Discover 1500+ HTML character references — currency symbols, CJK characters, and more.
8 people found this page helpful
