HTML Entity for Music Flat Sign (♭)

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

What You'll Learn

How to display the Music Flat Sign (♭) in HTML using named, hexadecimal, decimal, and CSS escape methods. This character is U+266D (MUSIC FLAT SIGN) in the Miscellaneous Symbols block (U+2600–U+26FF)—the standard symbol for lowering a note by one semitone in Western music notation.

Render it with the named entity ♭, ♭, ♭, or CSS escape \266D. Use it in chord names (e.g. B♭), scale charts, and music theory content. Pair with Music Natural Sign (♮, ♮) and sharp sign (♯, ♯) in the accidentals family.

⚡ Quick Reference — Music Flat Sign

Unicode U+266D

Miscellaneous Symbols

Hex Code ♭

Hexadecimal reference

HTML Code ♭

Decimal reference

Named Entity ♭

Most readable in music markup

Reference Table
Name           Value
────────────   ──────────
Unicode        U+266D
Hex code       ♭
HTML code      ♭
Named entity   ♭
CSS code       \266D
Meaning        Lower note by one semitone (flat)
Related        U+266E = natural (♮, ♮)
               U+266F = sharp (♯, ♯)
1

Complete HTML Example

This example demonstrates the Music Flat Sign (♭) using hexadecimal code, decimal HTML code, the named entity, and a CSS content escape:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point:after{
   content: "\266D";
  }
 </style>
</head>
<body>
<p>Music Flat Sign using Hexadecimal: &#x266D;</p>
<p>Music Flat Sign using HTML Code: &#9837;</p>
<p>Music Flat Sign using Named Entity: &flat;</p>
<p id="point">Music Flat Sign using CSS Entity: </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

U+266D is widely supported wherever Unicode Miscellaneous Symbols render correctly:

Chrome 1+
Firefox 1+
Safari 1+
Edge 12+
Opera 4+
Android 4.4+
iOS Safari 1+

👀 Live Preview

See the Music Flat Sign (♭) in music notation contexts:

Chord name B♭ major
Accidentals ♭ ♮ ♯
Large glyph
Scale F♭   G♭   A♭
Entity refs &flat; &#x266D; &#9837; \266D

🧠 How It Works

1

Named Entity

&flat; is the HTML named entity for the Music Flat Sign—often preferred in readable chord and scale markup.

HTML markup
2

Hexadecimal Code

&#x266D; uses the Unicode hexadecimal value 266D. The x prefix indicates hexadecimal format.

HTML markup
3

Decimal HTML Code

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

HTML markup
4

CSS Entity

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

CSS stylesheet
=

Same visual result

All four methods produce: . Unicode U+266D in Miscellaneous Symbols. Related: Music Natural Sign (♮, &natural;).

Use Cases

The Music Flat Sign (♭) is commonly used in:

🎵 Sheet music

Digital scores and web-based music viewers.

🎸 Chord charts

Chord names like B♭, E♭, and A♭ in guitar and piano charts.

🎓 Music education

Theory lessons, scale diagrams, and interval explanations.

💻 Music apps

Tuners, metronomes, and practice tools with key signatures.

📰 Lyrics & blogs

Song posts and musician blogs with proper accidentals.

🌐 Reference guides

Unicode charts and HTML entity documentation.

💡 Best Practices

Do

  • Use &flat; for readable chord and scale markup
  • Pair with ♮ and ♯ when showing all three accidentals
  • Use serif or music fonts for clearer glyph rendering
  • Add aria-label (e.g. “B flat”) for screen readers
  • Serve pages with UTF-8 (<meta charset="utf-8">)

Don’t

  • Substitute a lowercase b for ♭ in formal notation
  • Confuse &flat; (♭) with other flat-like symbols
  • Put CSS escape \266D in HTML text nodes
  • Mix entity styles randomly in one file
  • Rely on the symbol alone without accessible description

Key Takeaways

1

Three HTML references plus CSS all render ♭

&#x266D; &#9837; &flat;
2

For CSS stylesheets, use the escape in the content property

\266D
3

Unicode U+266D — MUSIC FLAT SIGN

4

&flat; is the standard named entity

5

Related: Natural (♮) and sharp (♯)

❓ Frequently Asked Questions

Use &flat; (named), &#x266D; (hex), &#9837; (decimal), or \266D in CSS content. All produce ♭.
U+266D (MUSIC FLAT SIGN). Miscellaneous Symbols block (U+2600–U+26FF). Hex 266D, decimal 9837. Named entity: &flat;.
When marking a note lowered by one semitone in chord names, scales, sheet music, and music theory content on the web.
♭ (U+266D, &flat;) is the proper music flat symbol. A lowercase letter b is a different character and is not correct for formal music notation.
HTML entities (&#9837;, &#x266D;, or &flat;) go directly in markup. The CSS escape \266D is used in stylesheets, typically in the content property of pseudo-elements. Same visual result, different layers of the stack.

Explore More HTML Entities!

Discover 1500+ HTML character references — music symbols, math operators, 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