Text Cleanup
Text Cleanup: Remove Line Breaks and Extra Spaces
Tidy up text copied from PDFs, emails or spreadsheets. Tick the options you need and they are all applied at once. The result updates as you type, and your text never leaves this page.
- The options are applied in this order: remove line numbers → tabs and full-width spaces → spaces at the start and end of lines → runs of spaces → line breaks → blank lines → wrapping → add line numbers.
- When line breaks are removed, a space is inserted between English words, but not between Japanese characters.
- “Remove line numbers” removes a number at the start of a line followed by “:”, “.”, “)”, “|” or a tab.
- Width for wrapping counts full-width characters (Japanese) as 1 and half-width characters (letters and numbers) as 0.5. English words are not split where possible.
About this tool
Clean up text copied from PDFs, emails or web pages. Remove line breaks inside paragraphs while keeping the paragraphs, reduce runs of spaces and blank lines, convert full-width spaces and tabs to normal spaces, wrap lines at a set width, and add or remove line numbers, all in one pass. Your text is processed in your browser and never sent.
How to use
- Paste your text into Text.
- Choose the options you need under Line breaks, Blank lines, Spaces, Wrapping and Line numbers.
- The Result appears instantly, with its character and line counts.
- Click Copy result. Use Use result as text to clean it up further.
Useful for
- Removing line breaks from text copied out of a PDF
- Removing extra spaces and blank lines from copied emails or web pages
- Wrapping text at a fixed width
- Adding or removing line numbers in text or code
FAQ
How do I remove line breaks from PDF text?
Under Line breaks, choose Remove inside paragraphs (keep paragraphs). Line breaks inside paragraphs are removed and paragraphs separated by blank lines are kept.
Will English words run together?
No. A space is inserted between English words when line breaks are removed. No space is added between Japanese characters.
Which line numbers can be removed?
Numbers at the start of a line followed by :, ., ), | or a tab. A number followed only by a space is not removed.
Is my text saved?
No. Everything happens in your browser.
Updates to this tool
All updatesReleased 19 new tools, including find and replace, date and business-day calculators, a tsubo/m² converter, image cropping, transparent PNGs, .htaccess redirects, robots.txt and a timer, for 44 tools in total
Other free tools
All 183 free tools- Character CounterCount characters, lines and words, and compare with limits for search results and social media.
- Japanese Proofreading CheckerCheck Japanese text for spelling variations, keigo errors, long sentences and common misuse.
- Full-width / Half-width ConverterConvert Japanese full-width and half-width letters, numbers, kana and spaces.
- Text DiffCompare two texts and highlight what was added or removed.
- List Cleaner (Dedupe and Sort)Remove duplicates and blank lines from a list and sort it.
- Bulk Find and ReplaceReplace text with several find-and-replace rules at once, with case, regex and whole-word options.
- Hiragana / Katakana ConverterConvert hiragana and katakana, or half-width and full-width kana, with voicing marks handled correctly.
- Furigana GeneratorAdd furigana to kanji automatically. Ruby, brackets, hiragana, katakana or romaji.