HTML Entity for Yen Sign (¥)

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

What Is Yen Sign?

Yen Sign (¥) is the Latin-1 Supplement character at Unicode U+00A5 (YEN SIGN). It is the standard currency symbol for Japanese yen (and historically Chinese yuan).

Remember
Character     ¥
Unicode       U+00A5
Named entity  ¥
Hex entity    ¥
Decimal       ¥
CSS escape    \00A5
Not the same  円 · ¥

Prefer ¥ in HTML markup. Numeric forms and typing ¥ in UTF-8 also work. Related: yen character (kanji 円).

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Named entity¥HTML markup (preferred)
Hex entity¥HTML markup
Decimal entity¥HTML markup
CSS escape\00A5Stylesheet content
Direct character¥UTF-8 HTML text

When to Use Which

SituationUse
Latin currency symbol (¥1,000)¥ or type ¥
Japanese yen kanji (円)円 (U+5186)
Fullwidth yen (¥)¥ (U+FFE5)
ISO currency code in textJPY / CNY (letters, not this glyph)
Generated text via ::before / ::aftercontent: "\00A5"

Live Preview

Yen Sign in common price contexts.

Large glyph ¥
Price sample ¥1,000
Named entity ¥ → ¥
Compared ¥  |  円  |  ¥
With entities Named: ¥ | Hex: ¥ | Decimal: ¥

Complete HTML Example

One page that shows this symbol with named, hex, decimal, and CSS. Use View Output or open the live editor.

Named + Hex + Decimal + CSS

Four ways to produce ¥, plus a short price sample.

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Yen Sign (¥)</title>
  <style>
    #price::after {
      content: "\00A5";
    }
  </style>
</head>
<body>
  <p>Using Named Entity: &yen;</p>
  <p>Using Hex Code: &#xA5;</p>
  <p>Using HTML Code: &#165;</p>
  <p id="price">Using CSS Entity: </p>
  <p><code>&yen;1,000</code></p>
</body>
</html>
Try It Yourself

How It Works

1. Named: &yen; is the clearest HTML form for U+00A5.

2. Hex: U+00A5 → &#xA5; in HTML (leading zeros optional). Same glyph as the named entity.

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

4. CSS: use \00A5 in content (not an HTML entity). #price::after appends that ¥ after the paragraph text.

5. Sample: &yen;1,000 shows a typical price with the Latin yen symbol.

Pitfalls & Tips

Common mistakes when working with U+00A5.

vs 円

Sign ≠ kanji

&#x5186; (円, U+5186) is the Japanese kanji. &yen; (¥) is the Latin currency symbol.

vs ¥

Not fullwidth yen

Fullwidth yen ¥ is U+FFE5 (&#xFFE5;) — a different character for East Asian typography.

Yuan

Same glyph, two uses

Unicode maps one symbol to both yen and yuan historically. Clarify with JPY / CNY or nearby words when needed.

CSS vs HTML

Do not mix escapes

\00A5 belongs in CSS strings. &yen; / &#xA5; / &#165; belong in HTML.

A11y

Add currency context

Pair the glyph with a visible amount or ISO code (for example &yen;1,000 or “JPY”) when it stands alone.

Semicolon

End references

Always finish with ; — write &yen;, not &yen.

Browser Support

Yen Sign (U+00A5) and its entity forms (&yen;, &#xA5;, &#165;, CSS \\00A5) are supported in all mainstream browsers.

✓ Universal support

Yen 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 IE 9+
Yes
U+00A5 / &yen; Full support

Bottom line: Prefer &yen; in HTML. Use \\00A5 only inside CSS content. Do not confuse with yen kanji (U+5186) or fullwidth yen (U+FFE5).

Key Takeaways

  • Unicode: this symbol is U+00A5 (decimal 165) — glyph ¥.
  • HTML: prefer &yen; — or use &#xA5; / &#165;.
  • CSS: use \00A5 inside content for generated text.
  • Watch out: &yen; ≠ 円 (円) ≠ ¥ (¥).

One line: U+00A5 → &yen; / &#xA5; / &#165; / CSS \00A5.

Frequently Asked Questions

Use &yen; (named), &#xA5; (hex), &#165; (decimal), type ¥ directly in UTF-8, or the CSS escape \00A5 in content. Prefer &yen; in normal HTML.
U+00A5 (YEN SIGN). Hex A5, decimal 165. It belongs to Latin-1 Supplement (U+0080–U+00FF).
Yes. Use &yen;. Numeric forms &#165; and &#xA5; also work.
No. ¥ is YEN SIGN (U+00A5, &yen;). 円 is the yen kanji (U+5186). ¥ is FULLWIDTH YEN SIGN (U+FFE5). Related currency forms, different code points.
Use it for the Latin currency symbol for Japanese yen (and historically yuan) on international or English pages — for example ¥1,000.
HTML entities (&yen;, &#165;, or &#xA5;) go in markup. The CSS escape \00A5 goes in stylesheet strings (usually content on ::before/::after).

Did you know?

Yen Sign (¥) is Unicode U+00A5 (decimal 165) — official name YEN SIGN in Latin-1 Supplement. HTML5 provides &yen;. Prefer it for readable source. Used for Japanese yen (JPY) and historically for Chinese yuan (CNY). Do not confuse it with yen kanji 円 (U+5186) or fullwidth yen ¥ (U+FFE5).

Next: Yen Yuan Character Variant One

Learn the HTML entity for yen/yuan character variant one (圆, U+5706).

Continue tutorial →

CODETOFUN NEWS

Stay Ahead in Tech

Get the latest IT news, programming updates, and technology trends directly on your phone.

Your daily dose of tech, straight to your feed.

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