Why does ChatGPT text copy with weird backgrounds and spacing?
You copied a good response from ChatGPT, pasted it into an email, Word document, or CMS, and the result looked wrong. Instead of clean text, you got a gray background, inconsistent line spacing, and mismatched fonts.
This happens to everyone who uses AI tools regularly. Here is why, and how to fix it.
The reason: hidden HTML and CSS
When you copy text directly from the ChatGPT interface, you are not just copying words. You are copying the entire HTML structure and CSS styling that your browser applies to that text.
This hidden formatting includes:
- Background colors (the source of the gray boxes)
- Font families and font sizes
- Markdown styling tags (code blocks, bolding)
- Line-height values that clash with your document
When you paste this into a rich-text editor (like Gmail or Microsoft Word), the editor tries to render those copied styles. The result is a mess.
The problem of zero-width spaces
Beyond styling, AI models sometimes output zero-width spaces or non-breaking spaces ( ). These are invisible characters that affect how text wraps. If a zero-width space appears in the wrong spot, your text might refuse to wrap correctly, or it might cause syntax errors if you are pasting code.
How to fix ChatGPT spacing and backgrounds
You have a few options:
1. Paste as plain text
The quickest manual fix is the "Paste as Plain Text" shortcut.
- Mac:
Cmd + Shift + V - Windows:
Ctrl + Shift + V
This strips all the HTML styling, including the gray background. But it also removes all your bolding, italics, and bullet point structure, leaving you with a wall of text you have to reformat by hand.
2. Use an AI text formatter (the better option)
If you want to keep your structure (paragraphs, lists) but remove the weird backgrounds, hidden HTML, and invisible characters, use a dedicated cleaner.
Our free ChatGPT Text Cleaner does exactly this. Paste your AI output and it:
- Strips the HTML and gray backgrounds
- Removes invisible characters and zero-width spaces
- Fixes the spacing so it is uniform
- Keeps your paragraphs and lists intact
The characters hiding in your clipboard
"Weird spacing" is rarely one problem. When we analyzed what actually comes along when you copy from an AI chat window, the same culprits showed up again and again:
- Zero-width space (U+200B): takes up no visible space but breaks text wrapping, string comparisons, and code. Chat interfaces inject these to control line breaks.
- Non-breaking space (U+00A0): looks identical to a normal space, but Word and email clients treat it differently, producing lines that refuse to wrap where you expect.
- Soft hyphen (U+00AD): invisible until your text reflows, then a hyphen appears mid-word out of nowhere.
- Byte order mark (U+FEFF): usually rides at the start of copied text and quietly breaks forms, CMS fields, and scripts.
- Markdown leftovers:
**asterisks**,##headings, and---dividers that only make sense inside the chat window.
None of these are visible while you proofread — which is exactly why the paste looks fine until it suddenly doesn't. Our cleaner strips every one of them automatically and tells you how many it found.
Fixes by destination
The symptoms differ depending on where you paste, so here is the quick reference:
Microsoft Word. Gray background and mismatched fonts. Quick fix: Home → Clear All Formatting after pasting. Better: clean the text first so the paste lands in your document's own style, with bold preserved.
Gmail. Pasted AI text often keeps its own line-height, so your email has oddly tall lines. Gmail's built-in "Remove formatting" (the Tx button) fixes the styling but destroys your bold and bullets in the process.
Outlook. The worst offender: gray boxes, double spacing, and a font that ignores your signature settings. Outlook's paste options ("Keep Text Only") strip everything. Cleaning the text before pasting is the only way to keep emphasis and lose the junk.
Google Docs. Usually handles the styling better, but the invisible characters come through untouched — and then get exported to wherever the doc goes next.
WordPress and CMS fields. Rich-text editors preserve the hidden HTML enthusiastically. If your published post has strange spacing that the editor doesn't show, invisible characters are almost always the cause.
Can you prevent it at the prompt level?
Partially. Adding instructions like "respond in plain text without markdown formatting" to your prompt reduces the symbols, and ChatGPT's custom instructions can make that stick. But two problems remain: the models drift back into markdown on long answers, and prompt instructions do nothing about the invisible characters the chat interface adds when you copy. Prevention helps; a cleaning step catches everything.
Frequently asked questions
Why does ChatGPT text paste with a gray background? The chat window styles its responses with CSS background colors. Copying grabs that styling along with the words, and rich-text editors like Word and Outlook faithfully reproduce it. Paste through a cleaner (or as plain text) and the background disappears.
Does "paste as plain text" fix everything? It removes the styling (backgrounds, fonts, line heights) but not always the invisible Unicode characters, and it definitely removes the formatting you wanted to keep — bold, italics, and list structure all get flattened.
Is this specific to ChatGPT? No. Claude, Gemini, Copilot, and Perplexity all render answers as styled HTML with markdown underneath, so copying from any of them produces the same mess. The fix is identical regardless of which assistant wrote the text.
Next time you get messy output from an LLM, skip the 10 minutes of manual cleanup. Run it through the formatter and get back to work.