Skip to main content

Symbol & Emoji Library

Music Symbols

Notes, clefs and musical notation marks.

Short answer

Notes, clefs and accidentals as single characters. The everyday notes and the flat, natural and sharp signs render almost everywhere; the full notation block is specialised and frequently missing outside music software.

Music Symbols — title card for the symbol & emoji library article on UltraTextGen.

Where these characters come from

The common notes and accidentals sit in Miscellaneous Symbols; the fuller notation set lives in its own Musical Symbols block, encoded so scores could be represented as text.

How reliably they render

The everyday notes and flat, natural and sharp signs are widely available. The full notation block is specialised and frequently missing outside dedicated music software.

Questions

Can I write sheet music in Unicode?
Not really. The Musical Symbols block encodes the individual glyphs, but music notation needs precise two-dimensional placement on a staff, which characters in a line of text cannot provide.
Which music characters are safe to use?
The common notes and the flat, natural and sharp signs from Miscellaneous Symbols are widely supported. The dedicated notation block is specialised and often missing outside music software.

The sharp sign is not a hash

Three characters get confused here constantly. The musical sharp ♯ (U+266F) has two vertical strokes drawn straight and two horizontals that slant upwards. The number sign # (U+0023) is the reverse: slanted verticals, level horizontals. The similarity is coincidence rather than shared ancestry — the sharp evolved from a squared-off b used in medieval notation to cancel a flat, while the number sign descends from a shorthand for the Latin libra. In casual prose nobody notices, but in writing about music the wrong one is conspicuous, and the two sort and search as entirely different characters.

Why you cannot build notation out of these

The notes in Miscellaneous Symbols are complete pictures rather than components: ♪ is one indivisible glyph, not a head plus a stem plus a flag. Unicode encoded them that way because they were meant for use in ordinary sentences — a paragraph that mentions a quaver — rather than for typesetting music. The dedicated Musical Symbols block does separate the parts, but those characters assume software that can position them vertically on a staff. A line of text has one baseline and no vertical placement, which is the reason no amount of clever character choice will produce a readable score.

Code points and HTML entities

CharCode pointHTMLCSS
♩U+2669♩\2669
♪U+266A♪\266A
♫U+266B♫\266B
♬U+266C♬\266C
♭U+266D♭\266D
♮U+266E♮\266E
♯U+266F♯\266F
𝄞U+1D11E𝄞\1D11E
𝄢U+1D122𝄢\1D122
𝄡U+1D121𝄡\1D121
𝄪U+1D12A𝄪\1D12A
𝄫U+1D12B𝄫\1D12B
🎵U+1F3B5🎵\1F3B5
🎶U+1F3B6🎶\1F3B6
🎼U+1F3BC🎼\1F3BC
🎹U+1F3B9🎹\1F3B9
🎸U+1F3B8🎸\1F3B8
🎺U+1F3BA🎺\1F3BA
🎻U+1F3BB🎻\1F3BB
🥁U+1F941🥁\1F941

Sources

More in Symbol & Emoji Library