
Why Pasted Text Has Double Spaces and How to Clean It
You copy a paragraph from a PDF, a web page, or an email, paste it into a document, and the text arrives with gaps in odd places. Sometimes every sentence has two spaces after the full stop. Sometimes there are spaces before commas, or a run of spaces where a table used to be. The words are right; the spacing is not.
The Punctuation Fixer removes doubled spaces and repeated punctuation in one pass. It helps to know why the damage happened, because the same source will produce it again.
Quick answer
Pasted text carries the invisible characters of its source: non-breaking spaces, tabs, line breaks, and sometimes a second space typed after every sentence. Paste as plain text to strip most formatting, then remove leading and trailing spaces, collapse runs of spaces, and fix spaces before punctuation. Read the result once, because a spacing tool cannot repair a missing word.
Where the extra spaces come from
The first source is habit. Many people were taught to put two spaces after a full stop, and that habit survives in documents written years ago. The second is layout. A PDF stores text at positions on a page, not as flowing paragraphs, so a wide gap between words may be recorded as several spaces or as a tab.
The third source is the web. HTML collapses runs of spaces when it renders a page, so a copy can bring hidden markup, non-breaking spaces, or line breaks that were only there to position an image. The fourth is a table. When a table is copied as text, the columns often become tabs or long runs of spaces, and the paragraph structure is lost.
Paste as plain text first
Most editors offer Paste as plain text, usually with Ctrl+Shift+V on Windows or Cmd+Shift+V on a Mac. That removes fonts, colours, links, and most hidden formatting. It does not remove every non-breaking space, but it removes enough that the remaining cleanup is simple.
If the destination is a web form, paste into a plain text editor first, then copy from there. A plain text editor shows the characters as they are and gives you a clean source. It also prevents a rich text paste from bringing a font or a background colour that you cannot see until the page is published.
Clean the text in the right order
Remove leading and trailing spaces from each line, then collapse runs of two or more spaces to one. After that, remove spaces before punctuation marks such as commas, full stops, colons, and semicolons. Finally, ensure one space after punctuation where a space belongs.
Do not collapse every line break. A line break may separate a heading from a paragraph, a list item from the next, or an address line from the city. If you remove all of them, the text becomes a wall. The Punctuation Fixer is designed for the spacing and repeated punctuation, not for restructuring a document; keep the paragraph breaks you need.
Check what the cleanup cannot see
A spacing tool cannot tell that a sentence is missing a full stop, that a hyphen has become a dash, or that a list has lost its numbers. Those are edits, not spacing. Read the cleaned text against the original, especially if it contains figures, citations, or code.
Code, quoted material, and legal text deserve extra care. Indentation in code is meaningful, and a quoted passage should keep its original spacing. Clean only the parts you are allowed to change. For the general repair method, read How to Fix Double Spaces and Repeated Punctuation. If the problem is punctuation rather than spacing, see Comma Splices, Run-ons, and Fragments.
Common questions
Why does copied text arrive with extra spaces?
The source stores spacing that the destination does not interpret the same way. A PDF records text positions, HTML may contain non-breaking spaces or line breaks, and older documents may use two spaces after every full stop. Pasting as plain text removes some of that formatting but not all of it.
Does removing double spaces change the meaning?
It should not, because a run of spaces carries no meaning in ordinary prose. It can matter in code, poetry, quoted material, and legal text, where spacing may be deliberate. Clean those passages by hand or leave them alone, and keep a copy of the original until you have checked the result.
Is the Punctuation Fixer private?
The Punctuation Fixer runs in your browser, so the text you paste is not uploaded by the tool. It still makes sense to remove passwords and personal details before pasting anything into a web page. If the text is confidential, check the page notice before you use it.
