formersi
U+266F♯

U+266F · Miscellaneous Symbols

Music sharp sign ♯: how to type it

Copy ♯ with one click. It has no Alt code or Option-key shortcut; Word’s Alt + X and the codes below work everywhere.

  • WindowsNo Alt code. Use Word’s Alt + X, Character Map, or copy it here.
  • MacCtrl+⌘ Cmd+Space Character Viewer, then search
  • Word266FthenAlt+X
  • iPhoneNo long-press for it. Copy it here.
  • HTML♯ or ♯
Code point
U+266F
decimal 9839
Windows
None
not in code page 437/1252
Mac
None
use the Character Viewer
Added
Unicode 1.1
Math symbol

Every way to type ♯

Only methods that exist on that system are shown as shortcuts.

Windows no Alt code

There is no Alt code for this character. Open Character Map (charmap), tick Advanced view, search “music sharp sign”, then Select and Copy. Or use Word’s Alt + X below.

Mac Character Viewer

Ctrl+⌘ Cmd+Space

No Option-key shortcut exists on the U.S. layout. In the Character Viewer, search “music sharp sign” and double-click it.

Microsoft Word Alt + X

266FthenAlt+X

Type 266F, then press Alt + X (Word for Windows).

Google Docs menu

Insert › Special characters, then search “music sharp sign”, or paste it from here.

iPhone and iPad copy

Not on a long-press of the default keyboard. Copy it here, or add a Text Replacement (Settings › General › Keyboard › Text Replacement).

Android symbol pages

Gboard keeps many common symbols on its symbol pages (tap ?123, then =\<). If it is not there, copy it here, or save it in Gboard’s Personal dictionary with a shortcut.

Linux Unicode input

Ctrl+Shift+Uthen266fthenEnter

GNOME and most GTK apps (IBus).

Chromebook Unicode input

Ctrl+Shift+Uthen266fthenEnter

Type the code after the underlined u appears.

How ♯ is stored in UTF-8

3 bytes (24 bits) for 1 code point

length and continuation bitsbits of the code point
Computed from U+266F with the UTF-8 rules of RFC 3629. Same bytes as text: see “Codes” below.

Codes

For HTML, CSS, JavaScript, JSON, Python and URLs.

HTML entity&sharp;
UnicodeU+266F
HTML decimal&#9839;
HTML hex&#x266F;
CSS content\266F
JavaScript\u266F
JSON\u266f
Python\u266f
UTF-8 bytesE2 99 AF
UTF-16266F
URL encoded%E2%99%AF
Python name\N{MUSIC SHARP SIGN}
LaTeX\sharp

From the Unicode Standard

Names, aliases and notes from the Unicode 13.0 names list.

  • Unicode name MUSIC SHARP SIGN
  • Category Math symbol (Sm)
  • Block Miscellaneous Symbols
  • Also called z notation infix bag count

Related symbols

Look-alikes named in the Unicode notes first, then neighbours in the same block.

SymbolNameCodeAlt code
#Number signU+0023–
♰West syriac crossU+2670–
♮Music natural signU+266E–
♱East syriac crossU+2671–
♭Music flat signU+266D–
♲Universal recycling symbolU+2672–

Questions

Is there an Alt code for ♯?

No. Music sharp sign (U+266F) is not in code page 437 or 1252, so Alt + numpad codes cannot type it. In Word type 266F and press Alt + X, or copy it from this page.

How do I type ♯ on a Mac?

Character Viewer: press Ctrl + Cmd + Space and search its name, because no Option-key shortcut exists.

What is the HTML code for ♯?

Use &sharp; or &#9839; (decimal) or &#x266F; (hex).

Sources: Unicode Character Database 13.0 and Unicode emoji 13.0 (Unicode, Inc.); Alt codes computed from code pages 437 and 1252; Mac keys from the Apple U.S. keyboard layout. How this page is made.