Remove Line Breaks
Text
Text copied from a PDF, email or terminal often arrives with a line break at the end of every line, so it won't reflow when you paste it. This tool joins those lines back together: pick what to join them with (a space, nothing, or a custom separator), keep blank-line paragraph breaks intact, collapse runs of spaces, and trim whitespace from each line. The result is clean, single-paragraph (or properly paragraphed) text ready to paste anywhere. Everything runs locally in your browser — nothing is uploaded.
Lines: 0 → 0 · 0
How to use
- Paste the text with unwanted line breaks.
- Choose what to join lines with, and toggle keep-paragraphs, collapse-spaces and trim as needed.
- Copy the cleaned-up result from the output box.
Frequently asked questions
- What does 'keep paragraphs' do?
- Blank lines are treated as paragraph breaks. Lines within a paragraph are joined together, but the paragraph breaks themselves are preserved as blank lines, so structure isn't lost.
- Why join with a space instead of nothing?
- Most wrapped prose needs a space where the line broke (otherwise words run together). Use 'Nothing' for things like a long token or URL that was split across lines.
- Does it change line endings (CRLF vs LF)?
- It removes the breaks entirely while joining. If you only need to convert between Windows and Unix line endings, use a line-endings converter instead.
- Is my text uploaded anywhere?
- No. All processing happens in your browser; the text never leaves your device.
Related tools
Markdown Table to CSV Converter
Convert a GitHub-flavored Markdown table into CSV, TSV or semicolon-separated rows, in your browser.
Markdown Table Generator
Paste CSV, TSV, or pipe-delimited data and get a properly aligned GitHub-flavored Markdown table.
Text Diff Viewer
Compare two pieces of text and see line-by-line or word-by-word additions and removals.
Lorem Ipsum Generator
Generate placeholder text by paragraphs, sentences, or words.
Case Converter
Convert text between UPPER, lower, Title, camelCase, snake_case and more.
Character & Word Counter
Count characters, words, sentences, lines, and bytes in real time.