HTML Entity for Music Flat Sign (♭)

Beginner
5 min read
Updated: Sep 2026
1 example
Unicode U+266D

What Is the Music Flat Sign Entity?

Music Flat Sign (♭) is the accidental at Unicode U+266D that lowers a pitch by one semitone. HTML5 provides ♭. Example: B♭ for B-flat.

Remember
Character     ♭
Unicode       U+266D
Named entity  ♭
Hex entity    ♭
Decimal       ♭
CSS escape    \266D

Named, hex, decimal, CSS, and a typed character all produce the same glyph: ♭.

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Named entity♭HTML markup (preferred)
Direct character♭UTF-8 HTML text
Hex entity♭HTML markup
Decimal entity♭HTML markup
CSS escape\266DStylesheet content

When to Use Which

SituationUse
Flat accidental / key name♭
Need an entity in HTML source♭, ♭, or ♭
Generated text via ::before / ::aftercontent: "\266D"
Natural accidental (♮)See Music Natural Sign — ♮
Sharp accidental (♯)See Music Sharp Sign — ♯

Live Preview

Flat in key names and beside natural and sharp.

Example B♭ major
Large glyph ♭
Named entity ♭ → ♭
vs ♮ / ♯ ♭  |  ♮  |  ♯
With entities Named: ♭ | Hex: ♭ | Decimal: ♭

Complete HTML Example

One page that shows the Music Flat Sign with named, hex, decimal, and CSS forms. Use View Output or open the live editor.

Named + Hex + Decimal + CSS

Four ways to produce ♭ in a single document.

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Music Flat Sign (♭)</title>
  <style>
    #point::after {
      content: "\266D";
    }
  </style>
</head>
<body>
  <p>Using Named Entity: &flat;</p>
  <p>Using Hex Code: &#x266D;</p>
  <p>Using HTML Code: &#9837;</p>
  <p id="point">Using CSS Entity: </p>
  <p>Key: B&flat; major</p>
</body>
</html>
Try It Yourself

How It Works

1. Named: &flat; is the clearest HTML form and renders ♭.

2. Hex: U+266D → &#x266D; in HTML. Same result as the named entity.

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

4. CSS: use \266D in content (not an HTML entity). #point::after appends that ♭ after the paragraph text.

Pitfalls & Tips

Common mistakes when working with the Music Flat Sign.

Prefer

Use &flat;

The named form is clearer than numeric references and is defined in HTML5.

vs b

Not the letter b

Letter b is ASCII. Prefer &flat; for proper music accidentals in typography.

vs ♯

Not sharp

&sharp; raises pitch. &flat; lowers pitch. Do not swap them.

CSS vs HTML

Do not mix escapes

\266D belongs in CSS. &flat; / &#x266D; / &#9837; belong in HTML.

Encoding

Declare UTF-8

If you type ♭ directly, keep <meta charset="UTF-8"> so the file is not misread.

Semicolon

End references

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

Browser Support

Music Flat Sign (U+266D) and its entity forms (&flat;, &#x266D;, &#9837;, CSS \\266D) are supported in all mainstream browsers with a Unicode-capable font.

✓ Universal support

Music Flat Sign (♭)

Encode with named, hex, decimal, or CSS escape — or type ♭ directly in UTF-8 HTML.

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+266D / &flat; Full support

Bottom line: Prefer &flat; in music HTML. Use \\266D only inside CSS content.

Key Takeaways

  • Unicode: Music Flat Sign is U+266D (decimal 9837).
  • HTML: prefer &flat;.
  • CSS: use \266D inside content for generated text.
  • Accidentals: pair with &natural; and &sharp;.

One line: U+266D → prefer &flat; (also &#x266D; / CSS \266D).

Frequently Asked Questions

Use &flat; (named), &#x266D; (hex), &#9837; (decimal), or the CSS escape \266D in the content property. All render ♭. Prefer &flat; in music HTML.
U+266D (MUSIC FLAT SIGN). Hex 266D, decimal 9837. It belongs to the Miscellaneous Symbols block.
Yes. HTML5 defines &flat; for ♭.
Use it in chord charts, key names, sheet-music text, and music education — for example B♭ major or E♭.
HTML entities (&flat;, &#9837;, or &#x266D;) go in markup. The CSS escape \266D is used in stylesheets (usually in the content property of ::before/::after). Both render ♭.
No. Flat is &flat; (♭, U+266D). Letter b is not a music accidental. Sharp is &sharp; (♯, U+266F). Natural is &natural; (♮, U+266E).

Did you know?

Music Flat Sign is Unicode U+266D (decimal 9837) — in Miscellaneous Symbols. HTML5 provides &flat;. It lowers a pitch by a semitone (e.g. B♭). Pair it with Natural &natural; (♮) and Sharp &sharp; (♯).

Next: Music Natural Sign

Continue with the Music Natural Sign (♮) entity tutorial.

Music Natural Sign 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