Remove line breaks
Text copied from a PDF or email often breaks in the middle of every sentence. Paste it here to join the lines back into normal paragraphs. You can keep the gaps between paragraphs, remove every line break, or join lines with a comma or any separator to make a list. Words split with a hyphen at the end of a line are joined back together too.
How to use the remove line breaks
- Paste your text.
- Choose what to do: keep paragraphs, remove all line breaks, join with a separator, or only remove empty lines.
- Leave Join words split with a hyphen and Remove extra spaces ticked for PDF text.
- Copy or download the result.
How it works
PDFs store text as separate lines, so copying from a PDF adds a line break at the end of every printed line.
- Keep paragraphs treats a blank line as the end of a paragraph. Inside each paragraph, line breaks become spaces.
- Remove all line breaks turns everything into one long block of text.
- Join with a separator turns a list with one item per line into a single line, such as "apples, bananas, mangoes".
- Only remove empty lines keeps your lines but deletes blank ones.
Hyphenated words: when a line ends with a hyphen and the next line starts with a small letter, as in "exam-" and "ple", the two parts are joined into "example". Hyphens before a capital letter, like "Jammu-" + "Kashmir", are left alone.
To change words in the text afterwards, use find and replace.
Example
Copied from a PDF:
The quick brown fox jumps over the lazy dog. It is a well-known exam- ple sentence.
Result: "The quick brown fox jumps over the lazy dog. It is a well-known example sentence."
Frequently asked questions
How do I remove line breaks from text copied from a PDF?
Paste the text here and choose Remove line breaks but keep paragraphs. The broken lines are joined into proper paragraphs, and hyphenated words are fixed.
How do I turn a list into a comma-separated line?
Choose Join lines with a separator and type a comma and a space as the separator. Each line becomes one item in the list.
Will it remove the spaces between paragraphs?
Not with Keep paragraphs: blank lines stay as paragraph breaks. Choose Remove all line breaks if you want one block of text.
Is my text saved anywhere?
No. Everything happens in your browser.
Last updated: 29 October 2026