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.

Line breaks
Blank lines
Spaces
Wrapping
Line numbers

  • 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

  1. Paste your text into Text.
  2. Choose the options you need under Line breaks, Blank lines, Spaces, Wrapping and Line numbers.
  3. The Result appears instantly, with its character and line counts.
  4. 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.

Contact