How to Identify the Hashtag Sign (#) in Unicode

Find out which Unicode code point your hashtag sign really is, how to tell U+0023 apart from look-alikes such as the fullwidth #, and how to check it.

The hashtag symbol looks simple, but several different Unicode characters can appear as a "#" on screen. If a search, filter, regular expression or hashtag parser fails to match a sign that looks correct, the text probably contains a look-alike character rather than the standard one. This guide explains what Unicode inspection does, which code points you are likely to find, and how to confirm which one is in your text without accidentally changing it.

What Unicode inspection does for your text

A Unicode inspector takes a piece of text as input and reports each character's code point as output. A code point is the unique number Unicode assigns to a character, written as "U+" followed by hexadecimal digits, for example U+0023. Many inspectors also show the official character name and the bytes used to store the character in an encoding such as UTF-8.

Inspection is read-only. It identifies characters but does not change your text. That matters here because two signs that look identical can behave differently in code, search and hashtag detection, so you first need to know exactly what you have before deciding whether to change anything.

The standard hashtag character: U+0023 NUMBER SIGN

Unicode has no separate character called "hashtag." The sign used for hashtags is U+0023, whose official Unicode name is NUMBER SIGN. It is the same character typed with the # key on a standard US keyboard and is part of the original ASCII range. In UTF-8 it is stored as the single byte 0x23. In HTML it can be written as the numeric reference # or the named reference #.

Characters that look like a hashtag but are not U+0023

The following characters are defined in the Unicode standard and can be mistaken for the number sign. The UTF-8 bytes are listed so you can recognize them in a hex view.

Character | Code point | Unicode name | UTF-8 bytes | Typical source
| U+0023 | NUMBER SIGN | 23 | Standard keyboard input
# | U+FF03 | FULLWIDTH NUMBER SIGN | EF BC 83 | East Asian input methods and fullwidth text
﹟ | U+FE5F | SMALL NUMBER SIGN | EF B9 9F | Small form variants, mostly legacy compatibility
♯ | U+266F | MUSIC SHARP SIGN | E2 99 AF | Music notation, sometimes typed as a substitute
#️⃣ | U+0023 U+FE0F U+20E3 | Keycap number sign (emoji sequence) | 23 EF B8 8F E2 83 A3 | Emoji pickers

The keycap emoji is not a single character. It is a sequence of three code points: the ordinary number sign U+0023, the invisible VARIATION SELECTOR-16 (U+FE0F), which requests emoji-style display, and U+20E3 COMBINING ENCLOSING KEYCAP, which draws the key outline. Because the sequence starts with U+0023, a naive search for "#" may match it even though it displays as an emoji.

Step-by-step: identify the sign in your text

  • 1. Copy only the suspicious sign, or the shortest piece of text that contains it, so the result is easy to read.
  • 2. Paste it into a Unicode inspector or run one of the code snippets below. Avoid tools that automatically clean or normalize input, because they may report a converted character instead of the original.
  • 3. Read the code point for every character in the result, not just the visible one. Invisible characters such as U+FE0F show up only in this list.
  • 4. Compare the result with the table above. U+0023 is the standard number sign; any other value means you have a look-alike or an emoji sequence.
  • 5. If you plan to replace the character, inspect the text again afterward to confirm that only the intended sign changed.

Checking code points with a short script

If you prefer not to use a dedicated tool, most programming languages can list code points directly. The snippets below are illustrative examples rather than verified output from a specific environment. For the standard sign, each should report U+0023.

Example in Python:

text = "#"
for ch in text:
    print(f"U+{ord(ch):04X}")

Example in JavaScript:

const text = "#";
for (const ch of text) {
  console.log("U+" + ch.codePointAt(0).toString(16).toUpperCase().padStart(4, "0"));
}

Both loops iterate by code point, so if you paste the keycap emoji instead of a plain "#", you should get three lines (U+0023, U+FE0F, U+20E3) rather than one. Python's standard unicodedata module can also print the official name of each character with unicodedata.name(ch).

Converting look-alikes without damaging other content

Unicode compatibility normalization (NFKC or NFKD) maps the fullwidth number sign U+FF03 and the small number sign U+FE5F to the standard U+0023. It does not convert the music sharp sign U+266F, which is a separate character with no such mapping. Normalization also applies to the whole string, so it can change other fullwidth letters, digits, ligatures and similar characters that may be meaningful in your text.

If only the hash sign should change, a targeted find-and-replace on the specific code points you identified is safer than normalizing everything. Before replacing anything inside emoji, remember that the keycap sequence already uses U+0023, so it usually needs no conversion.

What this guide does not cover

No source evidence was available about specific inspection tools, their features, or how individual social networks or apps detect hashtags. The code points, names and byte values above come from the Unicode standard and general encoding rules. Whether a particular platform treats U+FF03 or the keycap emoji as a valid hashtag marker is not documented here and should be tested on that platform directly.