Clean up broken lines in seconds
Text copied from PDFs, old emails, terminal output, subtitles or narrow website columns often comes with a line break at the end of every line. Pasted into a document, a form or a chat, it looks ragged and is hard to edit. This tool removes those unwanted line breaks for you. Keep your paragraphs intact, merge everything into one line, or replace the breaks with commas or any separator you like — instantly and without uploading anything.
Features
- Keep paragraphs: joins lines within each paragraph while keeping blank-line paragraph breaks.
- Remove all: turns the whole text into a single line.
- Replace with a separator: converts a list into a comma-, semicolon- or tab-separated line.
- Collapse extra spaces left over from indentation and alignment.
- CJK-aware joining: no stray spaces between Chinese or Japanese characters.
- Copy or download the cleaned text.
Before and after
Text copied from a PDF:
Line breaks in PDFs are stored at the end of
every line, so copied paragraphs end up broken
into short pieces.
The second paragraph stays separate.
With Keep paragraphs:
Line breaks in PDFs are stored at the end of every line, so copied paragraphs end up broken into short pieces.
The second paragraph stays separate.
When to use each mode
| Situation | Mode |
|---|---|
| Text copied from a PDF or e-book | Keep paragraphs |
| Address or title split over several lines | Remove all |
| Column copied from a spreadsheet → one line | Replace with , |
| List of emails for a "To" field | Replace with ; |
Values for a SQL IN (...) clause |
Replace with , |
Related tools
Remove repeated lines with Remove Duplicate Lines, put lines in alphabetical order with Sort Lines, fix capitalization with the Case Converter, or count words with the Word Counter.