Remove Extra Spaces
Text pasted from a PDF, an email or a web page arrives with double spaces, tabs and a line break at the end of every printed line. Choose your repairs and get clean, flowing text back.
Clean your text
In short
Tick the repairs, press Clean. The report tells you how many characters of pure whitespace came out — pasted text routinely sheds 10–20% of its bulk here.
Where messy whitespace comes from
Almost nobody types double spaces and ragged breaks on purpose (the two-spaces-after-a-period habit of the typewriter generation aside). Messy whitespace is an artefact of moving text between systems: PDFs store positioned fragments and rebuild paragraphs badly; emails wrap at fixed widths; web pages indent with tabs that paste as voids; spreadsheets pad cells. Each transfer adds its own damage, and documents that have been through three systems show all of it at once. The repairs are correspondingly mechanical — which is good news, because mechanical problems have complete solutions. The one repair that needs judgement is joining lines: it assumes a blank line marks a paragraph, which is true of most pasted prose and false of poetry, addresses and lists. Leave it off for those; the tool keeps the options separate so the aggressive cleanup (spaces, tabs, trimming) never has to drag the structural one with it.
How to use this tool
- Paste the messy text.
- Leave the first three repairs on for almost everything; add Join lines for PDF-pasted prose; add blank-line control for straggly documents.
- Press Clean the text and compare the character counts.
- Copy the clean text — and count words afterwards if a limit applies.
Privacy: cleaning happens in your browser; nothing is uploaded. Note: only whitespace is altered — never words or punctuation.
Frequently asked questions
What does this tool clean?
Four kinds of whitespace damage: runs of multiple spaces collapsed to one; tabs converted or removed; leading and trailing spaces trimmed from every line; and — the big one for pasted PDFs — single line breaks within a paragraph joined into flowing text while real paragraph breaks (blank lines) are preserved. You choose which repairs to apply.
Why does text copied from PDFs come out broken?
Because a PDF stores text as positioned fragments, not as paragraphs. Copying reconstructs it approximately: a line break where the printed line ended, extra spaces where columns were spaced out, sometimes whole words split. The 'join lines within paragraphs' option here reverses the commonest damage by treating a single line break as a space and a blank line as the true paragraph boundary.
Will this change my words or punctuation?
No. Only whitespace characters are touched — spaces, tabs and line breaks. Letters, numbers and punctuation pass through untouched, which is what makes the tool safe on anything from an essay to a list of codes.
Should I remove all line breaks?
Only if you truly want one flowing block — for pasting into a form field or a subtitle tool, for instance. For documents, keep paragraph breaks: they are structure, not mess. The options are separate precisely so you can collapse spaces aggressively while treating line breaks gently.
Is my text uploaded?
No. Cleaning happens in your browser; nothing is transmitted or stored.