Remove Line Breaks
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
Line Formatter — Add Prefix, Suffix & Join
Wrap each line with a prefix and suffix and join them with any separator, in your browser.
HTML to Plain Text
Strip HTML tags from a snippet and get just the text — keeps block-level newlines, drops `<script>` and `<style>`, decodes entities.
PDF Merger
Drop two or more PDFs, reorder them with the arrow buttons, and download a single merged PDF — all in your browser, no upload.
Markdown → Plain Text
Strip all Markdown formatting and keep readable plain text — useful for previews, summaries, email, character counts.
Text Diff Viewer
Compare two pieces of text and see line-by-line or word-by-word additions and removals.
Text Repeater
Repeat a word, line or block of text any number of times — joined by a new line, space, comma, nothing, or your own separator.