How to remove the OBJ box from a WordPress title or post
The "OBJ" in a dotted box is an invisible Unicode character, the object replacement character, that came in with pasted or dictated text. Delete it in the editor, check the title and the SEO fields, and paste as plain text from then on.
- By
- WP Ministry
- Published
- Tested on
- WordPress 7.1.3, PHP 8.3.35
In short
- The box is one stray character, U+FFFC, stored in your text. Nothing on the site is broken.
- It usually arrives with text pasted or dictated from another app.
- In the editor it is invisible. It sits where the cursor needs an extra key press to move on.
- Check the title, the excerpt and the SEO title and description, not only the body.
- For many posts at once, use WP-CLI's search-replace, with a backup and a dry run first.
The "OBJ" in a dotted box is a real character with a name: the object replacement character, U+FFFC in Unicode. The Unicode Standard describes it as a placeholder in text for an object, something that is not text, such as a picture set among the words. The text keeps the placeholder and the app keeps the object somewhere else.
It usually reaches WordPress in text pasted from another app, such as a word processor, a notes app or an email, or in text entered by dictation. The object stays behind and the placeholder comes along.
Unicode's own chart draws the character as the letters OBJ in a dashed box, and some fonts do the same. Others draw nothing. That is why the box can show in a browser tab, a search result or a shared link and be invisible in the editor.
Nothing on the site is broken. One stray character is stored in the text, and removing it is the whole fix.
Remove it from one post
Step 1: Find it
Open the post and click in the title, a few letters before the place where the box shows. Press the right arrow key once at a time and watch the cursor. Where one press does not move it, the cursor has stepped over the invisible character.
Step 2: Delete it
Press Backspace once, straight after that press. If you are not sure you caught it, delete the words on either side of the spot and type them again by hand.
Step 3: Check the other fields
Look at the excerpt, and at the SEO title and description if an SEO plugin adds those fields to the editor. Retype any that hold the box.
Step 4: Save, then look where you first saw it
Update the post and reload the page. A search result changes only after the search engine has visited the page again.
The page's address does not need changing. WordPress leaves this character out when it makes a slug from a title.
Remove it from many posts at once
If the box is in dozens of titles, WP-CLI can remove every copy in one pass. It needs SSH access, and a backup of the database first, because the command cannot be undone. wp db export ~/before-obj.sql writes one to your home folder. If you have a staging copy of the site, run the command there first.
Copy this command from the page instead of typing it. The first pair of quotes holds the character itself, which may look like a box or like nothing at all in your terminal. The second pair is empty, so each copy is replaced with nothing.
wp search-replace '' '' --report-changed-only --dry-run--dry-run reports the tables and columns that hold the character and how many replacements it would make, and saves nothing. If it finds none although the box is on the site, the character may not have survived the copy. Copy the command again.
When the report looks right, run the same command without --dry-run:
wp search-replace '' '' --report-changed-onlyThe command searches the tables WordPress itself registers, which hold titles, content, excerpts and the fields stored with each post. Add --all-tables-with-prefix to include tables that plugins have added. Then empty the site's cache.
Stop it coming back
- Paste as plain text. Use your browser's command for pasting without formatting, in its Edit menu or the menu that opens on a right-click. It leaves out formatting and embedded items, which is usually what the character stood for. Look over the pasted text all the same.
- Copy only the words. When you select text in the other app, leave out any picture, icon or attachment beside it.
- Read dictated text before you publish.
Common questions
Is the box a sign that the site was hacked?
No. The character came in with text that was pasted or dictated. It changes how that text looks and nothing else.
I removed it, but the search result still shows the box. Why?
A search engine shows its stored copy of the page until it visits again. Check the SEO title and description fields too, because a search result is often built from those and not from the post's own title.
Can I remove it from many posts without WP-CLI?
Yes, with a search and replace plugin. Choose one that says it handles serialized data and offers a dry run, paste the character, copied from the command above, into its search field and leave the replacement empty. Take a backup first.
- Error fix"Page with redirect" in Search Console: what it means on a WordPress site, and which ones to fix
- ResourceWooCommerce checkout is down: a runbook
- Error fix"Alternate page with proper canonical tag" in Search Console: what it means on a WordPress site
- Error fix"Blocked by robots.txt" in Search Console: when it is fine, and how to find the rule on WordPress
- Error fix"Blocked due to other 4xx issue" in Search Console: what it means on WordPress and what to do
- Error fix"Crawled - currently not indexed" on a WordPress site: what to leave and what to check

