Remove Line Breaks – Join Lines Online
NEWRemove line breaks from text copied from PDFs or emails: join lines with a space, comma or custom text, keep paragraphs and clean up spaces. Free, in-browser.
Runs 100% in your browser — your input is never uploaded or stored on our servers.
| Count | Before | After |
|---|---|---|
| Characters | 180 | 175 |
| Words | 34 | 34 |
| Lines | 6 | 1 |
| Line breaks | 5 | 0 |
Quick Examples
Typical inputs and the results this tool produces.
Overview
Text copied from a PDF, an email or a narrow column often arrives with a hard line break at the end of every line, which breaks sentences in half when you paste it elsewhere. This tool removes line breaks and joins the lines back into flowing text.
Choose what replaces each break: a space for prose, nothing for split codes, a comma to turn a column of values into a comma-separated list, or any custom text such as OR for search queries. Keep paragraph breaks preserves blank-line gaps so only the breaks inside paragraphs disappear.
Extra cleanup trims spaces at line edges, collapses repeated spaces and drops empty lines, and a before-and-after table shows characters, words, lines and line breaks. The text is processed in your browser and never uploaded.
Why use this tool?
- Fix broken sentences pasted from PDFs
- Turn a column into a comma-separated list
- Keep paragraphs while removing line wraps
- Collapse double spaces automatically
- Private: runs entirely in your browser
Features
Choose a separator
Replace breaks with a space, nothing, comma and space, or any custom text.
Keep paragraphs
Blank lines between paragraphs are kept as a single paragraph break.
Trim lines
Strip spaces and tabs from the start and end of each line before joining.
Collapse spaces
Runs of spaces or tabs become one space.
Drop empty lines
Empty lines are removed so you do not get doubled separators.
Before / after counts
Compare characters, words, lines and line breaks at a glance.
How to Use
Paste the text
Put the text into the Text with line breaks box.
Pick the replacement
Choose what to Replace line breaks with, or enter a Custom separator.
Set cleanup options
Tick Keep paragraph breaks, Remove empty lines, Trim spaces or Collapse multiple spaces.
Copy the result
Press Copy above the Result box and check the counts table.