HTML Entity for Black Smiling Face (☻)

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

What Is Black Smiling Face?

Black smiling face (☻) is Unicode U+263B in the Miscellaneous Symbols block. It is a filled (inverse) smiley — useful for retro mood cues and decorative markers. HTML has no standard named entity — use numeric or CSS forms (or type the character in UTF-8).

Remember
Character     ☻
Unicode       U+263B
Hex entity    ☻
Decimal       ☻
Named entity  (none)
CSS escape    \263B
Not the same  ☺ U+263A (white smiling face)

All of these produce the same glyph: ☻. Prefer typing ☻ in UTF-8 when you can; use ☻ / ☻ or CSS for generated content.

Quick Reference

One table for every form you will actually use.

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

When to Use Which

SituationUse
Filled (black) smiley☻ or type ☻
Outline (white) smiley☺ (U+263A)
Need an entity in HTML source☻ or ☻
Icon via CSScontent: "\263B" on ::before

Live Preview

Black smiling face in study contexts.

Inline cue ☻ Happy day
Large glyph ☻
vs. white smiley ☺ white  ·  ☻ black
Accessible label smiling face Good mood
With entities Hex: ☻ | Decimal: ☻

Complete HTML Example

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

Hex + Decimal + CSS + Typed

Four ways to produce ☻ in a single document (no named entity).

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Black Smiling Face (☻) in HTML</title>
  <style>
    #point::after {
      content: "\263B";
    }
  </style>
</head>
<body>
  <p>Black smiling face using Hex Code: &#x263B;</p>
  <p>Black smiling face using HTML Code: &#9787;</p>
  <p id="point">Black smiling face using CSS Entity: </p>
  <p>Typed directly: ☻</p>
</body>
</html>
Try It Yourself

How It Works

1. Hex: U+263B → &#x263B; in HTML. The browser turns it into ☻.

2. Decimal: same code point as 9787 → &#9787;. Same result as hex.

3. CSS: use \263B in content (not an HTML entity). #point::after appends that ☻ after the paragraph text.

4. Typed ☻: fine in UTF-8 source. All four lines show the same glyph.

Pitfalls & Tips

Common mistakes when working with black smiling face (☻).

Named

No &name; form

U+263B has no standard named entity — use &#x263B; or &#9787;.

☺

Not the white smiley

For the outline form use ☺ (U+263A).

a11y

Say the mood

Screen readers may not announce “smiley.” Pair the glyph with visible or visually hidden text such as Happy.

Fonts

Check symbol coverage

Some UI fonts omit U+263B. Prefer fonts with solid Miscellaneous Symbols / smiley support.

CSS vs HTML

Do not mix escapes

\263B belongs in CSS. &#x263B; / &#9787; belong in HTML.

Semicolon

End references

Always finish with ; — write &#x263B;, not &#x263B.

Browser Support

Black smiling face (U+263B) and its entity forms (&#x263B;, &#9787;, CSS \\263B) are supported in all mainstream browsers. Glyph quality depends on font support for Miscellaneous Symbols.

✓ Universal support

Black Smiling Face (☻)

Type ☻, or encode with hex, decimal, or CSS escape — same glyph 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+263B / entities Full support

Bottom line: Prefer a typed ☻ or &#x263B; for markers. Use decimal when generating markup, and \\263B only inside CSS content.

Key Takeaways

  • Unicode: black smiling face is U+263B (decimal 9787).
  • HTML: use &#x263B; or &#9787; (no named entity).
  • CSS: use \263B inside content for generated icons.
  • Watch out: ☻ ≠ ☺ (black ≠ white smiling face).

One line: U+263B → &#x263B; / &#9787; / CSS \263B.

Frequently Asked Questions

Use &#x263B; (hex), &#9787; (decimal), or the CSS escape \263B in the content property. All render ☻. You can also paste ☻ directly if your file is UTF-8. There is no standard named entity.
U+263B (hex 263B, decimal 9787). Unicode names it BLACK SMILING FACE. It belongs to the Miscellaneous Symbols block.
No. HTML5 / WHATWG does not define a named character reference for U+263B. Prefer &#x263B;, &#9787;, or a typed ☻ in UTF-8.
☻ (U+263B) is the filled (black) smiling face. ☺ (U+263A) is white smiling face. They are different code points.
HTML entities (&#9787; or &#x263B;) go in markup. The CSS escape \263B is used in stylesheets (usually in the content property of ::before/::after). Both render ☻.
Use ☻ for retro smileys, mood cues, and decorative markers. Prefer clear text or ARIA labels when the meaning must be obvious to screen readers.

Did you know?

Black smiling face is Unicode U+263B (decimal 9787) in the Miscellaneous Symbols block — official name BLACK SMILING FACE. There is no standard named HTML entity. It is not white smiling face (U+263A ☺).

Next: Black Spade Suit

Learn the HTML entity for the black spade suit (♠).

Next 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