Why pasted text has broken lines
PDFs, emails and some websites store text as separate lines with a break at the end of each one. When you copy it into a document, form or chat, every line ends early, sentences are cut in half and the text looks jagged. This tool joins those lines back together.
Options
- Keep paragraphs: a blank line (two line breaks) is treated as a new paragraph and kept, while single breaks inside a paragraph are joined. Choose Remove all for one continuous block of text.
- Replace breaks with: a space (normal), nothing, a comma or a custom separator, which is handy for turning a list into one line.
- Rejoin hyphenated words: “docu-” at the end of one line and “ment” on the next become “document”.
- Remove extra spaces: turns runs of spaces and tabs into a single space and trims each line.
Example
Text copied from a PDF:
The quick brown fox jumps over the lazy dog. It was a sunny after- noon in the park.
After cleaning:
The quick brown fox jumps over the lazy dog. It was a sunny afternoon in the park.
Private
The text is cleaned in your browser as you type. Nothing is uploaded, so it’s safe for emails, contracts and other private documents.
Frequently asked questions
How do I remove line breaks from text?
Paste the text into the box. Line breaks are removed instantly; click Copy to use the cleaned text.
Can I keep the paragraphs?
Yes. With Keep paragraphs selected, blank lines between paragraphs stay and only the breaks inside paragraphs are joined.
Why does text copied from a PDF have line breaks?
PDFs store each line of text separately, so copying adds a line break at the end of every line. This tool joins them back together.
Can I turn a list into one line separated by commas?
Yes. Choose Remove all and set Replace breaks with to a comma.
Is my text saved or uploaded?
No. Everything happens in your browser and nothing is stored or sent anywhere.
Last updated October 2026 · More text tools