Remove line breaks
Remove Line Breaks from Text Online
Join wrapped text with spaces while optionally keeping paragraphs separated by blank lines.
Review removed duplicates
| Removed line | Kept line | Removed original text |
|---|
How it works
Windows and Mac line endings are normalized. Single line breaks are replaced by spaces. With Keep paragraphs enabled, blank-line-separated blocks stay separate.
When to use it
Repair text copied from a PDF or email when each visual line became a new line. Review headings and lists before copying the result.
Good to know
This does not read PDF files or perform OCR. It cannot infer columns or recover missing words. Hyphens and punctuation are preserved.
Up to 500,000 characters and 25,000 lines per input. UTF-8 text files up to 2 MB. Review outputs before using them.
CSV protection adds an apostrophe to fields starting with formula-like characters or tab/line-break controls. It changes those values. Protection varies by spreadsheet and may be lost after saving and reopening. Import untrusted data and identifiers as text. Copy or TXT preserves the original values.
Repair text copied from a PDF or email
Copy the text from your document and paste it into the input. Select Keep paragraphs if blank lines mark paragraph boundaries, then choose Repair line breaks. Single line breaks become spaces, making wrapped prose easier to reuse in a document or email.
Turn Keep paragraphs off if you need one continuous block. Review the result carefully when the source includes headings, bullet lists, tables or columns: the tool cannot infer the document structure.
Example: wrapped lines and paragraph gaps
The two lines Text copied from a PDF and can wrap in the wrong place. become one sentence separated by a space. A following paragraph remains separate if the input contains a blank line and Keep paragraphs is enabled.
This tool works on pasted text, not PDF files. It does not perform OCR, reconstruct columns, recover missing words or remove end-of-line hyphens. Line-edge whitespace is trimmed during joining. Keep a copy of the source when spacing or layout carries meaning.
Finish the cleanup
If the joined text still contains repeated spaces or tabs, use Remove extra spaces. If your input is a list that should become a quoted comma-separated row, choose List to delimited text instead.
Frequently asked questions
How do I remove line breaks without losing paragraphs?
Paste your text, leave Keep paragraphs selected, and click Repair line breaks. Single line breaks are joined with spaces while blocks separated by blank lines remain separate.
Can I remove all line breaks and make one paragraph?
Yes. Turn off Keep paragraphs before processing. Review the result, especially if the original text contains headings, numbered lists, or other intentional breaks.
Does the tool work with text copied from a PDF?
Yes, if you can copy the text from the PDF and paste it here. This tool does not open PDF files, perform OCR, or reconstruct tables and columns.
More about line break cleanup
What is the difference between a line break and a paragraph break?
A line break starts a new line; a paragraph break typically separates blocks of text. The Keep paragraphs option uses blank lines as paragraph boundaries, so inspect the source formatting before processing.
Will it remove hyphens or fix misspelled words?
No. It joins lines but preserves punctuation and does not spell-check. If words are split by end-of-line hyphens, review and correct them separately.
Is my pasted text uploaded to a server?
The text-processing feature runs in your browser. For details about site analytics and cookies, see the privacy policy and cookie information.
Need to clean repeated spaces after joining? Try Remove Extra Spaces.
