Text / Clean-up
Remove Line Breaks
Remove the line breaks from text copied from PDFs or emails, keeping paragraphs if you like, rejoining hyphenated words, and tidying repeated spaces.
Remove Line Breaks: In paragraph mode, blank lines mark paragraphs, and the lines inside each paragraph are joined with spaces. Words split by a hyphen at the end of a line are rejoined when a lower-case letter follows, so 'bro-' and 'ken' become 'broken', while a capitalised next word keeps its hyphen. Windows, Mac, and Unix line endings are all recognised. Runs 100% locally in your browser with zero server file uploads.
- Category
- Text tools
- Runs
- In your browser
- Cost
- Free · no sign-up
- Availability
- Ready to use
Runs entirely in your browser
Result
Removing without spaces suits languages written without spaces, such as Chinese and Japanese. A hyphen is only removed when a lower-case letter ends one line and another starts the next, so a capitalised word such as a name keeps its hyphen.
Cleaning text for reuse
After removing line breaks, check for page numbers, headers, and footers that came along from the PDF, and for columns that were read in the wrong order. Double spaces left between sentences can be collapsed with the extra space remover.
To work line by line instead, use sort lines or remove duplicate lines.
Line endings
Windows ends lines with a carriage return and a line feed (CR LF), while macOS and Linux use a line feed alone (LF), and very old Macs used a carriage return (CR). Text moved between systems can mix them, which is why some editors show stray symbols or double spacing; all three are treated as line breaks here.
How to use it
- Paste the text with unwanted line breaks.
- Choose whether to keep paragraphs, join everything into one line, or join without spaces.
- Copy the cleaned text.
Privacy & limitations
The text is processed in your browser and never uploaded.
Related tools
Frequently asked questions
Why does text from a PDF have so many line breaks?
PDFs store text line by line as it was laid out on the page, so copying it keeps a break at the end of every printed line.
Will it join real hyphenated words?
Only when the hyphen falls at the end of a line and the next line starts with a lower-case letter; check compound words such as well-known that happened to break there.
What about Chinese or Japanese text?
Choose Remove without spaces, since those languages do not put spaces between words.
Free tool · runs in your browser · no account required