HTML Entity for Farsi Symbol (☫)

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

What Is Farsi Symbol?

Farsi symbol (☫) is the Unicode character at U+262B in Miscellaneous Symbols. Official name: FARSI SYMBOL (also associated with the symbol of Iran). Use it when you need this specific emblem glyph — not for everyday Persian text.

Remember
Character     ☫
Unicode       U+262B
Hex entity    ☫
Decimal       ☫
CSS escape    \262B
Named entity  (none)
Not the same  ☮ (peace) · ☯ (yin yang) · Persian letters

Prefer ☫ or ☫ in HTML (no named form). You can also type ☫ in a UTF-8 document.

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Named entityNone—
Hex entity☫HTML markup (preferred)
Decimal entity☫HTML markup
Direct character☫HTML text (UTF-8)
CSS escape\262BStylesheet content

When to Use Which

SituationUse
This Farsi / Iran emblem glyph☫ or type ☫
Persian / Farsi body textType Persian letters in UTF-8 — not U+262B
Peace emblemPeace symbol (☮)
Yin-yang emblemYin yang (☯)
Generated text via ::before / ::aftercontent: "\262B"

Live Preview

Symbol rendered alone, in sample text, and compared with nearby Misc Symbols.

Glyph ☫
Large glyph ☫
Sample Symbol: ☫
Compared ☫   ☮   ☯
With entities Hex: ☫ | Decimal: ☫

Complete HTML Example

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

Hex + Decimal + CSS + Typed

Four ways to display ☫ in HTML and CSS.

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Farsi Symbol (U+262B) in HTML</title>
  <style>
    #point::after {
      content: "\262B";
    }
  </style>
</head>
<body>
  <p>Built with Hex: &#x262B;</p>
  <p>Built with Decimal: &#9771;</p>
  <p id="point">Built with CSS: </p>
  <p>Typed: ☫</p>
  <p>Symbol: &#x262B;</p>
</body>
</html>
Try It Yourself

How It Works

1. Hex: &#x262B; inserts code point U+262B → ☫.

2. Decimal: same code point as 9771 → &#9771;. Same visual as hex.

3. CSS: use \262B in content (not an HTML entity). #point::after appends ☫.

4. Typed: paste ☫ in a UTF-8 document when you need the emblem itself.

Pitfalls & Tips

Common mistakes when working with Farsi symbol.

Name

No named entity

There is no HTML5 named entity for U+262B. Use &#x262B; or &#9771;. Do not invent &farsi;.

Text

Not Persian letters

Writing Farsi/Persian content means typing Arabic script characters in UTF-8. U+262B is a single emblem, not an alphabet.

☮

Not the peace symbol

U+262E (☮) is a different Miscellaneous Symbol — do not substitute it for Farsi symbol.

☯

Not yin yang

U+262F (☯) is the next code point after U+262B’s neighbors — a different glyph and meaning.

Font

Font coverage

Miscellaneous Symbols glyphs may be missing in some fonts. Prefer a font with symbol coverage, or use an image/SVG if the glyph must always render.

CSS vs HTML

Do not mix escapes

\262B belongs in CSS strings. &#x262B; / &#9771; belong in HTML.

a11y

Add accessible text

Screen readers may not announce ☫ clearly. Prefer nearby prose (for example “Farsi symbol”) when the emblem carries meaning.

Semicolon

End references

Always finish entities with ; — write &#x262B;, not &#x262B.

Browser Support

Farsi symbol (U+262B) and its entity forms (&#x262B;, &#9771;, CSS \\262B) are supported in all mainstream browsers. Visible glyphs depend on Miscellaneous Symbols font coverage.

✓ Universal support

Farsi Symbol (&#x262B;)

Encode with 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+262B Full support

Bottom line: Prefer &#x262B; in HTML (no named form). Use &#9771; when decimal form is required, and \\262B only inside CSS content.

Key Takeaways

  • Unicode: Farsi symbol is U+262B (decimal 9771) — glyph ☫.
  • HTML: no named entity — use &#x262B; / &#9771; / type ☫.
  • CSS: use \262B inside content for generated text.
  • Meaning: ☫ ≠ peace ☮ ≠ yin yang ☯ ≠ Persian letters.

One line: U+262B → &#x262B; / &#9771; / CSS \262B (no named form).

Frequently Asked Questions

Use &#x262B; (hex), &#9771; (decimal), type ☫ directly in UTF-8, or the CSS escape \262B in content. There is no named HTML entity for U+262B.
U+262B (FARSI SYMBOL). Hex 262B, decimal 9771. It belongs to the Miscellaneous Symbols block (U+2600–U+26FF).
No. HTML5 does not define a named entity for U+262B. Prefer &#x262B; or &#9771;.
Use it when you specifically need the Farsi / symbol-of-Iran miscellaneous glyph. For Persian body text, type Arabic/Persian letters in UTF-8 instead of this symbol.
HTML numeric entities (&#9771; or &#x262B;) go in markup. The CSS escape \262B goes in stylesheet strings (usually content on ::before/::after).
No. U+262B is ☫ (Farsi symbol). Peace symbol is U+262E (☮). Yin yang is U+262F (☯). They are neighboring Miscellaneous Symbols, not the same character.

Did you know?

Farsi symbol is Unicode U+262B (decimal 9771) — glyph ☫ (FARSI SYMBOL) in Miscellaneous Symbols. There is no HTML5 named entity; use &#x262B; or &#9771;. Do not confuse it with peace symbol (☮), yin yang (☯), or ordinary Persian/Arabic letters typed in UTF-8.

Next: Female Sign

Learn the HTML entity for female sign (U+2640).

Female 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