Object Replacement Character (U+FFFC): What It Is and How to Recognize It

Learn what the Unicode object replacement character U+FFFC means, how it differs from U+FFFD, and how to detect, verify and handle it in plain text safely.

If a pasted or exported text contains a strange box labeled OBJ, an empty square, or an invisible gap that breaks search and comparisons, you may be looking at the Unicode object replacement character. This guide explains what the character does, how to tell it apart from similar characters, and how to find and handle it without damaging the rest of your text.

What the object replacement character does in your text

The object replacement character is the Unicode code point U+FFFC, officially named OBJECT REPLACEMENT CHARACTER. It belongs to the Specials block, a small range near the end of the Basic Multilingual Plane (the first 65,536 code points of Unicode). Its job is to act as a placeholder: it marks the spot where a non-text object, such as an image, a file attachment or an embedded element, sat inside a piece of text.

The input it represents is rich content that plain text cannot hold. The output is a single character that records only the position of that object. The character carries no information about the object itself: not its type, size, file name or content. If the object data is not stored separately by the application, the plain text alone cannot tell you what was there.

In practice, U+FFFC usually appears when text is copied or exported from an environment that supports embedded objects, such as rich text editors, note-taking apps or messaging apps, into a place that only accepts plain text. For example, Apple's text frameworks use this character to mark text attachments inside attributed strings. Whether a particular app produces it depends on that app's implementation; no app-specific behavior has been verified for this guide.

Why you may not be able to see it

How U+FFFC appears on screen depends on the font and the software displaying it. Some fonts draw it as a dashed box containing the letters OBJ, some show a generic empty box, and some render nothing visible at all. Because of this, looking at the text is not a reliable way to confirm the character is present. Inspecting code points or bytes is the dependable method.

U+FFFC versus U+FFFD: two different replacement characters

The object replacement character is often confused with its neighbor, the replacement character U+FFFD. They signal different problems, so identifying the right one tells you where to look for the cause.

Property | U+FFFC | U+FFFD
Official name | OBJECT REPLACEMENT CHARACTER | REPLACEMENT CHARACTER
Typical appearance | Box with OBJ, empty box, or nothing | Black diamond with a white question mark
What it signals | An embedded object was here | Data could not be decoded or represented
Common cause | Copying rich content with images or attachments into plain text | Wrong text encoding, corrupted bytes, or unsupported characters
UTF-8 bytes | EF BF BC | EF BF BD

In short: U+FFFC points to missing objects, while U+FFFD points to an encoding or data-corruption problem. Fixing an encoding setting will not remove U+FFFC, and the original object will not be restored by changing fonts.

Identifiers to search for

The same character can be written in several notations depending on the tool you use. Any of these refers to U+FFFC:

Context | Notation
Unicode code point | U+FFFC
Decimal value | 65532
UTF-8 bytes | EF BF BC
UTF-16 code unit | FFFC
HTML numeric entity |  or 
Python or JavaScript string escape | \uFFFC
PCRE-style regular expression | \x{FFFC}

How to recognize the object replacement character step by step

  • 1. Note the symptom: a visible OBJ box, an unexplained square, or a position where cursor movement, search or string length behaves unexpectedly.
  • 2. Rule out U+FFFD: if the symbol is a diamond with a question mark, you are dealing with a decoding problem instead.
  • 3. Inspect the code point: paste the suspicious spot into a Unicode inspector, or use a short script that prints the code point and name of each character.
  • 4. Confirm the value: the character is U+FFFC if the code point is FFFC, the name is OBJECT REPLACEMENT CHARACTER, or the UTF-8 bytes are EF BF BC.
  • 5. Count all occurrences: search the whole text for the character, not just the spot you noticed.
  • 6. Trace the source: check the original document or app to see which image or attachment each occurrence stood for, before deciding what to do with it.

Example: checking a string in Python

The following illustrative snippet scans a string and reports each object replacement character with its position, code point and Unicode name. It has not been run as part of preparing this guide.

import unicodedata

text = "Report summary \ufffc see chart above"
for index, char in enumerate(text):
    if char == "\ufffc":
        print(index, f"U+{ord(char):04X}", unicodedata.name(char))

For this sample string, the script is expected to print the index 15 followed by U+FFFC and OBJECT REPLACEMENT CHARACTER, since the placeholder comes right after the 15 characters of "Report summary " including the trailing space.

Example: finding positions in JavaScript

const text = "Caption: \uFFFC";
const positions = [...text.matchAll(/\uFFFC/g)].map(m => m.index);
console.log(positions);

This illustrative example collects the index of every U+FFFC in the string. Because U+FFFC lies in the Basic Multilingual Plane, it occupies a single UTF-16 code unit, so the reported index matches the character position in JavaScript strings.

Example: searching files from the command line

grep -n -P '\x{FFFC}' notes.txt
grep -n $'\xEF\xBF\xBC' notes.txt

The first command relies on grep's Perl-compatible regex mode and a UTF-8 locale; not every grep build supports the -P option. The second searches for the raw UTF-8 byte sequence using bash's $'...' quoting and does not depend on regex Unicode support. Both are illustrative and assume the file is UTF-8 encoded. If you inspect the file in a hex viewer instead, look for the bytes ef bf bc, keeping in mind that the sequence can wrap across output lines.

Handling it without losing meaningful content

Each U+FFFC marks a real location where something used to be, so removing it blindly can erase useful context. Choose an approach based on what the text will be used for:

  • Keep it: if the text will return to an app that still holds the object data, the placeholder may be needed to reattach the object in the right place.
  • Replace it with a visible label: in plain-text output meant for people, a marker such as [image] or [attachment] preserves the fact that something was there.
  • Remove it: when the objects are irrelevant, for example in search indexing or word counts, deleting the character is reasonable.
  • Recover the object: if the missing content matters, go back to the source document or app; the placeholder itself cannot be converted back into the original image or file.
cleaned = text.replace("\ufffc", "[object]")

Target U+FFFC specifically, as in the illustrative line above, rather than stripping all non-ASCII or all symbol characters. Broad filters can delete accented letters, emoji, punctuation and other meaningful characters. After any replacement, rerun your search for U+FFFC to confirm that zero occurrences remain and compare the text length before and after to make sure only the intended characters changed.

Gaps and limitations

This guide is based on the general definition of U+FFFC in the Unicode Standard and common text-processing practice. No specific measurements, tool comparisons or app-by-app tests were available, so exactly which applications insert the character, how particular fonts render it, and how individual editors handle it on paste have not been verified here. Test your own tools with a known sample before relying on them for large clean-up jobs.