HTML Entity for Yen Character (円)

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

What You'll Learn

How to display the Yen character (円) in HTML using hexadecimal, decimal, and CSS escape methods. This character is U+5186 (CJK UNIFIED IDEOGRAPH-5186) in the CJK Unified Ideographs block—the native Japanese kanji form of the yen currency.

Render it with 円, 円, or CSS escape \5186. There is no named HTML entity. Do not confuse 円 with the yen sign (¥, U+00A5, ¥) or fullwidth yen (¥, U+FFE5). Use lang="ja" on Japanese price content when appropriate.

⚡ Quick Reference — Yen Character

Unicode U+5186

CJK Unified Ideographs

Hex Code 円

Hexadecimal reference

HTML Code 円

Decimal reference

Named Entity

Use numeric codes only

Reference Table
Name           Value
────────────   ──────────
Unicode        U+5186
Hex code       円
HTML code      円
Named entity   (none)
CSS code       \5186
Meaning        Japanese kanji “yen” (currency unit)
Related        U+00A5 = Yen sign (¥, ¥)
               U+FFE5 = Fullwidth yen (¥)
Block          CJK Unified Ideographs (U+4E00–U+9FFF)
1

Complete HTML Example

A simple example showing the Yen character (円) using hexadecimal code, decimal HTML code, and a CSS content escape:

html
<!DOCTYPE html>
<html lang="ja">
<head>
 <meta charset="utf-8">
 <style>
  #price:after{
   content: "\5186";
  }
 </style>
</head>
<body>
<p>Yen Character (hex): &#x5186;</p>
<p>Yen Character (decimal): &#20870;</p>
<p id="price">Price: 1,000 </p>
</body>
</html>
Try It Yourself

🌐 Browser Support

U+5186 is widely supported when the page uses UTF-8 and a font with CJK glyphs:

Chrome1+
Firefox1+
Safari1+
Edge12+
Opera4+
Android4.4+
iOS Safari1+

👀 Live Preview

See the Yen character (円) in a Japanese price context and beside related yen symbols:

Price1,000 円
Large glyph
Yen variants円 kanji   ¥ sign   ¥ fullwidth
Numeric refs&#x5186; &#20870; \5186

🧠 How It Works

1

Hexadecimal Code

&#x5186; uses the Unicode hexadecimal value 5186 to display the Yen character. The x prefix indicates hexadecimal format.

HTML markup
2

Decimal HTML Code

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

HTML markup
3

CSS Entity

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

CSS stylesheet
=

Same visual result

All three methods produce the glyph: . Unicode U+5186 is the Japanese kanji for yen in the CJK Unified Ideographs block. For the currency symbol, see Yen Sign (¥, U+00A5).

Use Cases

The Yen character (円) is commonly used in:

🇯🇵 Japanese websites

Display prices in native kanji format (e.g. 1,000円).

📄 Financial documents

Invoices, reports, and accounting documents in Japanese.

🛒 E-commerce

Product listings and checkout for Japanese market audiences.

🏦 Banking apps

Balances, transactions, and financial data in Japanese UI.

💰 Localization

Japanese-language sections where kanji 円 is culturally preferred.

🌐 Multi-currency sites

International pages with Japanese price labels alongside other currencies.

♿ Accessibility

Use lang="ja" and clear price text; pair with aria-label when needed.

💡 Best Practices

Do

  • Use lang="ja" and UTF-8 (<meta charset="utf-8">) for Japanese content
  • Pair 円 with proper number formatting (e.g. 1,000円)
  • Use 円 for native Japanese prices; use ¥ for symbol-focused or international UI
  • Choose fonts that include CJK Unified Ideographs glyphs (e.g. Noto Sans JP)
  • Pick one numeric style (hex or decimal) per project for consistency

Don’t

  • Confuse 円 (kanji yen) with ¥ (yen sign) or ¥ (fullwidth yen)
  • Put CSS escape \5186 in HTML text nodes
  • Assume every font renders CJK kanji clearly without testing
  • Mix entity styles randomly in one file
  • Expect a named HTML entity for U+5186—use numeric references instead

Key Takeaways

1

Three ways to render 円 in HTML and CSS

&#x5186; &#20870;
2

For CSS stylesheets, use the escape in the content property

\5186
3

Unicode U+5186 — Japanese kanji for yen (円)

4

Kanji form for Japanese prices; ¥ is the currency symbol alternative

5

Previous: XOR (⊻)   Next: Yen Sign (¥)

❓ Frequently Asked Questions

Use &#x5186; (hex), &#20870; (decimal), or \5186 in CSS content. There is no named HTML entity. In UTF-8 you can also type 円 directly.
U+5186 (CJK UNIFIED IDEOGRAPH-5186). CJK Unified Ideographs block. Hex 5186, decimal 20870. The Japanese kanji for the yen currency.
For Japanese-language websites, native kanji prices, financial documents, e-commerce for Japanese markets, banking applications, and content where 円 is preferred over the yen sign ¥.
HTML numeric references (&#20870; or &#x5186;) go directly in markup. The CSS escape \5186 is used in stylesheets, typically in the content property of pseudo-elements. Same visual result, different layers of the stack.
Named HTML entities are reserved for commonly used ASCII, Latin-1, and widely recognized symbols. CJK characters like 円 use numeric codes. Use &#20870; or &#x5186; in HTML, or \5186 in CSS.

Explore More HTML Entities!

Discover 1500+ HTML character references — currency symbols, CJK characters, 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