← All symbols & tools

Copy2Paste / Text tools

Text cleaner: remove line breaks and extra spaces

Clean text copied from PDFs, emails or webpages. Remove line breaks, preserve paragraphs, trim spaces, compare the original and copy or download the result.

01 · Choose how to clean

Blank lines separate paragraphs. Use a space for English or no separator when appropriate for Chinese. Hyphenated words are kept as written.

Up to 20,000 characters; some emoji count as more than one. Cleaning runs in your browser. 0 / 20,000

Display characters: 0 → 0Line breaks removed: 0Extra spaces removed: 0

Enter text to compare the result.

Remove wrapped lines and preserve paragraphs

Text copied from a PDF can include a line break after every visible line. Choose “Join wrapped lines, preserve paragraphs” to merge those lines while keeping paragraphs separated by blank lines. You can also remove every line break or keep the line structure and clean only whitespace. Windows CRLF, Unix LF and older CR line endings are handled consistently.

Choose the separator for your text

English usually needs one space between joined lines so words do not run together. Continuous Chinese text may need no separator, while a list can use a custom separator. The cleaner does not guess word boundaries or remove end-of-line hyphens. Check the source if a PDF splits a word across lines.

Compare before replacing

The original and cleaned text stay visible together, and cleaning does not overwrite your input. Copy and TXT download use the current result. You can undo the last replacement or clear action. In paragraph mode, the blank-line option collapses repeated blank lines while retaining one blank line between paragraphs.