Remove extra spaces, strip blank lines, replace tabs, fix non-breaking spaces and normalize any messy text โ instantly.
Presets:
Replace non-breaking spaces
Convert (U+00A0) to regular spaces
Normalize line endings
Convert CRLF (Windows) to LF (Unix)
Fix spaces before punctuation
Remove spaces before . , ; : ! ?
Chars in: 0
Chars out: 0
Removed: 0
Lines: 0
Blank lines removed: 0
Input0 chars
Cleaned Output0 chars
Why does text get messy whitespace?
Copying from PDFs, Word documents, web pages, and emails commonly introduces extra spaces between words, non-breaking spaces that look normal but behave differently, Windows-style line endings (CRLF), and double or triple blank lines. This tool fixes all of them in one click.
The preset buttons apply the most common combinations: Full Clean applies everything. Fix PDF Paste collapses spaces and removes blank lines โ the two most common PDF artefacts. Fix Code handles tabs and indentation. Minify collapses the entire text to a single line.
๐ PDF copy-paste
PDFs frequently inject extra spaces between words and non-breaking spaces. Use the PDF preset to fix both instantly.
โ๏ธ Email cleanup
Email threads pasted into docs often have inconsistent spacing and CRLF endings. Normalize everything in one click.
๐ป Code formatting
Replace tabs with spaces (or vice versa) and trim trailing whitespace before committing code to a repository.
๐ Blog & content
Clean up text from CMS exports or Word documents before publishing to avoid invisible formatting artefacts.
Frequently asked questions
How do I remove extra spaces from text?
Paste your text, enable "Collapse multiple spaces" and click Clean. All runs of two or more consecutive spaces are reduced to a single space, preserving intentional single spaces.
How do I remove blank lines?
Enable "Remove blank lines" and click Clean. All completely empty lines and lines containing only whitespace are removed from the output. Use "Collapse blank lines" instead to keep one blank line between paragraphs.
Can I convert tabs to spaces?
Yes โ enable "Tabs โ spaces" and set the tab width in the input box (default is 4). Each tab character is replaced with that number of spaces.
Does this tool fix copy-paste spacing issues from PDFs?
Yes. Use the "Fix PDF Paste" preset which collapses multiple spaces and replaces non-breaking spaces โ the two most common problems from PDF copy-paste. The character count shows exactly how many characters were removed.
What are non-breaking spaces and how do I remove them?
Non-breaking spaces (Unicode U+00A0) look identical to regular spaces but behave differently in HTML rendering and text processing tools. Enable "Replace non-breaking spaces" to convert them all to standard spaces.