How to use Remove Line Breaks
- 1Paste your text into the top box, or click Paste.
- 2Pick a mode: Keep paragraphs, Remove all line breaks, Replace with (for example a comma), or Remove empty lines only.
- 3Leave Rejoin words split with a hyphen on to fix words like infor- mation that were broken at the end of a line.
- 4Copy the result or download it as a .txt file. It updates instantly when you change the text or options.
Fixing text copied from PDFs
When you copy from a PDF, every line of the page usually ends with a hard line break, and long words can be split with a hyphen. Pasting that into an email or document gives ragged lines. Keep paragraphs joins the lines inside each paragraph while keeping the blank lines between paragraphs; when there are none, a short line that ends a sentence also ends the paragraph. The hyphen option rejoins split words such as infor- mation, but keeps the hyphen in compounds such as well-known, judged from how the word is written elsewhere in your text and from common compound parts (well-, self-, -known, -based).
Other handy modes
- Replace with turns a list into one line: put
,between items to make a comma-separated list for a spreadsheet, SQL query or email. Use\nor\tfor a new line or tab. - Remove all line breaks creates a single line, useful for form fields and code strings.
- Remove empty lines only deletes blank lines but keeps each line as it is.
Collapse extra spaces replaces runs of spaces and tabs with one space.
Private by design
All processing happens in your browser as you type. Your text is not uploaded or stored, so it is fine for emails, contracts and other private documents.
When the source has no blank lines between paragraphs
Keep paragraphs always keeps a break at a blank line. Text copied from many PDFs has none: a new paragraph simply starts on the next line. So the tool also ends a paragraph at a line that finishes a sentence (. ! ? or :) and stops well short of the longest line around it, which is what the last line of a printed paragraph looks like. We pasted this:
The results show a clear trend in well-known markets and in infor-mation services.A second paragraph starts here withoutany blank line before it.
and got two paragraphs back: "The results show a clear trend in well-known markets and in information services." and "A second paragraph starts here without any blank line before it."
The guess misses a paragraph whose last line happens to run almost the full width, and it never splits a block of fewer than three lines. Where that happens, press Enter twice in the input where the paragraph should start; the result updates as you type.
Hyphens at a line end are judged word by word. If the text uses the word elsewhere, the tool follows it (information, or well-known). Otherwise it keeps the hyphen when the first part is a common compound word such as well-, self- or long-, or the second part is a common compound ending such as -known, -based or -free, and joins everything else (infor- mation becomes information). Check rarer compounds, or turn the hyphen option off for text full of them.
Line breaks from different sources
Text copied from a PDF has a hard break at the end of every printed line, often with hyphenated words, and plain-text email is similar, because many mail programs wrap plain-text lines at around 72 to 78 characters; for both, use Keep paragraphs. Copying a column from Excel or Google Sheets gives one value per line, so use Replace with and a comma, or a semicolon for software that expects it.
Subtitles and lyrics are different, because their short lines are intentional; use Remove empty lines only to tighten spacing without joining lines. Text from Windows and old Mac systems needs nothing special: CRLF and CR line endings are converted, so the counts are right whatever system the text came from.
Checking the result before you paste it
Next to the result label the tool reports how many line breaks it removed. Use that number as a quick check. Our five-line PDF sample above reported 2 removed: the output kept one blank line (2 breaks) between its two paragraphs. Had it reported 4, every break would have gone and the two paragraphs would have become one.
With Keep paragraphs, the output always has 2 line breaks per paragraph boundary, so a text that should end up as 6 paragraphs has 10 breaks left. If far fewer remain, the tool missed some paragraph starts, so add blank lines there; if far more remain, it probably had blank lines between every line, which happens with some PDF exports. In that case run Remove empty lines only first, copy the result, paste it back into the input, then add blank lines where paragraphs really start.
Frequently asked questions
How do I remove line breaks but keep paragraphs?
Choose Keep paragraphs. Lines inside a paragraph are joined with a space and blank lines between paragraphs stay. If the text has no blank lines, a short line that ends a sentence is treated as the end of a paragraph.
How do I turn a list into a comma-separated line?
Choose Replace with and type a comma and a space. Each line becomes an item separated by commas.
Why are words split with hyphens after copying from a PDF?
The PDF breaks long words at the end of a line. With Rejoin words split with a hyphen turned on, they are put back together.
Is my text sent anywhere?
No. Everything runs in your browser and nothing is saved.
Why did my paragraphs get joined into one?
Keep paragraphs keeps a break at every blank line, and also ends a paragraph at a short line that finishes a sentence. A paragraph whose last line runs nearly full width can still be joined to the next one: press Enter twice in the input where it should start and the result updates.
Will well-known become wellknown?
Usually not. When a line ends with a hyphen, the tool keeps it if the text uses the hyphenated word elsewhere, or if the parts look like a common compound (well-, self-, long-; -known, -based, -free). Other words are joined, so infor- mation becomes information. Check rare compounds by hand, or turn the option off.
How do I turn a spreadsheet column into a comma-separated list?
Copy the column, paste it here, choose Replace with and type a comma and a space. Empty cells are skipped, so the list has no double commas.
Can I keep a bulleted list on separate lines?
Keep paragraphs joins every line inside a paragraph, list items included. Put a blank line between list items, or clean the list separately with Remove empty lines only, which keeps each line as it is.


