Remove Line Breaks
Paste text that breaks in the middle of every sentence, for example from a PDF or an email, and get clean paragraphs back.
RESULT
Text copied from a PDF often breaks in the middle of a sentence, because every line of the page ends with a hard line break. This tool joins those lines back together. Blank lines between paragraphs can stay, so the text keeps its paragraphs while the lines inside them are joined.
When this is useful
- Text from PDFs: articles, papers and contracts copied from a PDF arrive with a line break at the end of every printed line.
- Old emails: plain-text emails are often wrapped at around 72 characters, which leaves short ragged lines when you reuse the text.
- Lists: turn a column of names or values, one per line, into a single line separated by commas or spaces.
What Tidy spaces does
PDFs often pad text with extra spaces to justify lines. With Tidy spaces on, spaces at the start and end of each line are removed and runs of spaces or tabs become a single space. Turn it off when spacing matters, for example in code or aligned tables.
Windows, Mac and Linux line endings
Line breaks are written differently on Windows (CR LF), old Macs (CR) and everywhere else (LF). The tool understands all three, so text from any system is cleaned up the same way.
How to remove line breaks from text
- 1
Paste your text
Copy the text from a PDF, email or website and paste it into the input pane. The result updates as you type.
- 2
Choose what to keep
Keep paragraphs to leave blank lines between paragraphs alone, or pick One paragraph to join everything. Line breaks become a space unless you choose something else.
- 3
Copy the result
Copy the cleaned-up text to your clipboard or download it as a .txt file.
Frequently asked questions
Why does text copied from a PDF have line breaks everywhere?
A PDF stores where each line sits on the page, not where sentences and paragraphs run. When you copy from it, every line on the page comes with a hard line break at its end, even in the middle of a sentence.
Will my paragraphs be lost?
Not with Keep paragraphs, the default. Lines that follow each other are joined, and a blank line between two blocks of text stays as a paragraph break. Choose One paragraph if you want everything on a single line.
What does Fix hyphens do?
Words split over two lines, like "exam-" and "ple", are joined back into "example" when the next line starts with a lower-case letter. Hyphens before a capital letter are kept, so names and words such as "Anglo-Saxon" stay intact.
Can I put commas between the lines instead of spaces?
Yes. Choose custom under Replace with and type the text you want, such as a comma and a space. That turns a list with one item per line into a comma-separated list.
Is my text sent anywhere?
No. The tool runs in your browser, and the text you paste never leaves your device.