textscrubr
Home / Blog / Copy & paste

Why Pasted Text Has Weird Boxes or Spaces (and How to Fix It)

Copy & paste2 min readUpdated 2026-06-23
Weird boxes, question marks, or odd gaps in pasted text are usually invisible Unicode characters: zero-width spaces, non-breaking spaces, and direction marks that the app cannot display. To fix it, run the text through a cleaner that strips invisible characters and normalizes spaces.

You paste some text and see little rectangles, question-mark diamonds, or gaps that will not behave. Those are not random glitches. They are real characters your app cannot display. Here is the explanation and the fix.

What the boxes and gaps actually are

When an app cannot render a character, it shows a placeholder: a box (sometimes with the character's code inside), a question mark in a diamond, or just an unexpected gap. The usual suspects:

These pile into your clipboard when you copy from web pages, PDFs, word processors, and AI tools.

Why it happens more with AI and web text

Styled sources insert these characters for layout and formatting. ChatGPT output, copied web content, and PDF text are common sources. The characters are invisible where you copied them, so you do not notice until you paste somewhere that cannot render them.

How to fix it

  1. Paste as plain text first (Ctrl/Cmd + Shift + V). This removes styling but may leave the invisible characters.
  2. Run it through a cleaner to remove the invisible characters and normalize the odd spaces. This is the step that actually removes the boxes, because the characters causing them live inside the text.

textscrubr does the second step in your browser and shows you a count of exactly what it removed, so you can confirm the boxes are gone and see what was hiding there.

How to prevent it

If you paste from the same sources often, clean the text before it lands in the document, email, or code where the boxes show up. It turns a recurring mystery into a one-step habit.

Quick diagnosis

If the gap or box appears in one app but not another, it is almost certainly an invisible character that the second app happens to render and the first does not. Cleaning the text removes it everywhere, so it renders consistently no matter where it goes.

Scrub this text in one click

textscrubr strips the hidden characters, em dashes, and double spaces, and keeps your lists, headings, and code exactly where you put them. Free, and it runs entirely in your browser.

Clean my text free →

Frequently asked questions

Why does pasted text show little boxes or question marks?

Because the app cannot display a character in the text, usually an invisible Unicode character like a zero-width space, so it shows a placeholder box or question mark instead.

What causes weird gaps in pasted text?

Non-breaking spaces and other exotic space characters that look like normal spaces but behave differently. They create gaps you cannot fix until you normalize them to regular spaces.

How do I remove the weird characters from pasted text?

Paste as plain text to drop styling, then run it through a cleaner that strips invisible characters and normalizes spaces, since those characters live inside the text itself.