U+266F

Sharp

Sharp is a monochrome text character from the Unicode Miscellaneous Symbols block, listed here under Music. Copy it with one click, or use the hex, octal, decimal and HTML entity codes below to embed it in web pages, code, and documents. It is often searched for as "music".

Quick facts

Unicode
U+266F
Decimal
9839
Hex
0x266F
Octal
0o23157

Unicode identity

FormatValueCopy
Code pointOfficial Unicode notationU+266F
Official nameUnicodeData.txt, Unicode 18.0.0MUSIC SHARP SIGN
Unicode 1.0 nameLegacy aliasSHARP
DecimalBase 109839
HexadecimalBase 160x266F
OctalBase 80o23157
BinaryBase 20010011001101111
General categorySymbol, mathSm
Unicode blockU+2600–U+26FFMiscellaneous Symbols
PlaneBasic Multilingual Plane (BMP, Plane 0)

HTML & CSS

FormatValueCopy
HTML entity (decimal)♯
HTML entity (hex)♯
HTML entity (named)♯
CSS content escapeUse inside content: "…"\266F
URL encodedPercent-encoded UTF-8%E2%99%AF

Programming languages

FormatValueCopy
JavaScript / TypeScript\u266F
JSONUTF-16 surrogate pairs\u266F
Python\u266F
Java / C# / Kotlin\u266F

Byte encodings

FormatValueCopy
UTF-83 bytesE2 99 AF
UTF-16 (BE)266F
UTF-32 (BE)0000266F

How to type Sharp

  • Windows

    Hold Alt and type +266F with the hex numeric keypad option enabled, or type 266F then press Alt+X in Word and most Office apps.

  • macOS

    Enable the Unicode Hex Input keyboard, hold Option, and type 266F. Or open Character Viewer (Control+Command+Space) and search "Sharp".

  • Linux

    Press Ctrl+Shift+U, type 266f, then press Space or Enter in GTK apps. IBus and most terminals support the same sequence.

  • HTML, CSS & code

    Paste the character directly, or use the escapes above: ♯ in HTML, \266F in CSS, and \u266F in JavaScript.

Official Unicode reference

Character name
MUSIC SHARP SIGN
Unicode 1.0 name
SHARP
Block
Miscellaneous Symbols (U+2600–U+26FF)
General category
Sm — Symbol, math

Data from the Unicode Character Database, version 18.0.0. See the official code chart for the Miscellaneous Symbols block: U2600.pdf (PDF, unicode.org).

Frequently asked questions

How do I copy the Sharp symbol?

Click the Copy button at the top of this page, or select ♯ and press Ctrl+C (Cmd+C on Mac). It is plain Unicode text, so it pastes into documents, chats, code, and design tools.

What is the Unicode code point for Sharp?

Sharp is U+266F (decimal 9839, hexadecimal 0x266F, octal 0o23157). It lives in the Miscellaneous Symbols block (U+2600–U+26FF) of the Basic Multilingual Plane (BMP, Plane 0).

What is the official Unicode name of Sharp?

The Unicode Standard (version 18.0.0) names this character "MUSIC SHARP SIGN"; its Unicode 1.0 name was "SHARP". Its General_Category is Sm (Symbol, math).

What is the HTML code for Sharp?

Use ♯ or ♯, or the named entity ♯. In CSS, use content: "\266F".

How do I type Sharp in code?

JavaScript: "\u266F". Python: "\u266F". JSON and Java: "\u266F". The UTF-8 byte sequence is E2 99 AF.

Is Sharp an emoji?

No. Sharp is a text symbol and renders as a monochrome glyph in the current font. Some platforms may offer an emoji variant when U+FE0F is appended.

View all music