How to Identify the Ghost Character in Unicode

Find the exact Unicode code point, name and encodings of the ghost emoji, and verify the result with a code point inspector or a short script without altering your text.

The ghost symbol 👻 looks like a single picture, but in text it is a Unicode character with a fixed identity: a code point, an official name and specific byte sequences in each encoding. If you need to search for it, escape it in code, compare it across systems or confirm that a pasted character really is the ghost and not a look-alike image or a different emoji, identify it by its code point rather than its appearance. This guide shows what a Unicode inspection tool does with the character and how to check its output yourself.

The ghost character at a glance

Property | Value
Character | 👻
Code point | U+1F47B
Official Unicode name | GHOST
Decimal value | 128123
UTF-8 bytes | F0 9F 91 BB
UTF-16 code units | D83D DC7B
HTML numeric reference | 👻 or 👻

A code point is the number Unicode assigns to a character, written as U+ followed by hexadecimal digits. U+1F47B is above U+FFFF, so it lies outside the Basic Multilingual Plane. That detail matters in practice: UTF-8 stores it as four bytes, and UTF-16 stores it as two code units known as a surrogate pair.

What a code point inspector does for your text

A Unicode inspector, sometimes called a code point viewer or character identifier, takes text you paste in and breaks it into individual characters. For each one it typically reports the code point, the official name and often the block, category and encoded bytes. It is a read-only operation: inspecting text describes it without changing it, so the original string stays exactly as it was.

The scope is the characters themselves, not how they look. The ghost glyph can be drawn differently by each operating system, browser or font, but the code point U+1F47B is the same everywhere. If a character looks like a ghost but the inspector reports a different code point, or reports no character at all because it is an embedded image, you are not dealing with the Unicode ghost.

Step by step: identify the ghost character

  • Copy only the symbol you want to check, without surrounding words, so the output is easy to read.
  • Paste it into a code point inspector or a Unicode lookup tool.
  • Read the code point. For the ghost it should be U+1F47B and the name should be GHOST.
  • Check how many code points were reported. A single ghost is one code point; extra entries mean extra characters came along, such as a space, a line break or a variation selector.
  • If you need the character in code or markup, take the escape form for your target language from the table below rather than retyping the symbol.

About the extra entries: some sources append U+FE0F VARIATION SELECTOR-16, an invisible character that requests emoji-style display. It does not change which character the ghost is, but it does make the string one code point longer, which can break exact-match searches or length checks. Treat it as a separate character and decide deliberately whether to keep or remove it.

Writing the ghost as an escape sequence

Context | Escape form
HTML | 👻
CSS content property | \1F47B
JavaScript (ES2015 and later) | \u{1F47B}
JavaScript (surrogate pair) | \uD83D\uDC7B
Python | \U0001F47B
JSON | \uD83D\uDC7B

Escapes are useful when a file, terminal or editor might mangle the raw emoji, or when you want the code point to stay visible to anyone reading the source.

Verify the result with a short script

If you prefer not to rely on a web tool, a few lines of code confirm the identity. The snippets below are illustrative examples; the comments show the output these standard functions are expected to produce, not output captured for this article.

# Python 3
import unicodedata

ch = "👻"
print(hex(ord(ch)))            # expected: 0x1f47b
print(unicodedata.name(ch))    # expected: GHOST
print(ch.encode("utf-8").hex(" "))  # expected: f0 9f 91 bb
// JavaScript
const ch = "👻";
console.log(ch.codePointAt(0).toString(16)); // expected: 1f47b
console.log(ch.length);                      // expected: 2 (UTF-16 code units)
console.log([...ch].length);                 // expected: 1 (code points)

The JavaScript example shows a common surprise: the length property counts UTF-16 code units, so a single ghost reports a length of 2. Counting with the spread operator counts code points instead. If a character counter or a truncation routine treats the ghost as two characters, this is the reason, and cutting the string between the two units would leave a broken character.

If you meant invisible "ghost" characters

Searches for "ghost Unicode" sometimes refer to invisible characters, such as zero-width spaces, rather than the ghost emoji. The same inspection approach applies: paste the text into a code point inspector and look for entries you cannot see on screen. This guide focuses on the ghost symbol U+1F47B; identifying and safely removing invisible characters is a separate task.

Limits of this guide

The code point, name and encodings above are fixed Unicode properties. No evidence was supplied about specific inspection tools, so this guide does not compare products or claim that any particular tool displays these exact fields. How the ghost is drawn, and whether an older system shows it at all, depends on the fonts and software in use and was not tested here.