Remove Line Breaks
Flatten wrapped text into one line, a comma list, or clean paragraphs — instantly, and never uploaded.
Your files never leave your device.
How to use it
- Paste your text — wrapped paragraphs from a PDF, a column from a spreadsheet, a list copied from a web page.
- Choose the join mode: Space for flowing prose, Comma for lists, Nothing for direct concatenation, or Keep paragraphs to flatten single breaks while preserving blank-line separations.
- Click Remove line breaks and copy the result.
The four modes, explained
- Space — every line break becomes one space. The classic fix for text copied out of PDFs, where every visual line ends in a hard break and sentences get chopped mid-word-flow.
- Comma — turns a column of items into
one, two, three. Perfect for pasting a spreadsheet column into an email or a query. - Nothing — lines are concatenated directly. Use it when breaks are splitting tokens, URLs or codes.
- Keep paragraphs — single line breaks flatten, but blank lines survive as paragraph separators. The right mode for wrapped prose that has real paragraph structure worth keeping.
Empty lines are dropped in the first three modes; in Keep-paragraphs mode they carry the structure. Trim each line (on by default) strips leading and trailing whitespace per line so you don't get doubled spaces at the seams.
The PDF copy problem
The single most common reason people need this tool: text copied out of a PDF carries a hard line break at the end of every visual line. Paste that into an email or a doc and it looks like broken poetry. Drop it here in Space mode and it becomes normal flowing prose again, with paragraphs intact if you choose Keep-paragraphs mode. Ten seconds, every time, versus minutes of manual backspacing.
When you need it
- PDF copies — text pasted from PDFs arrives hard-wrapped; flatten it before pasting into a doc or CMS.
- Spreadsheet columns — a column of emails or IDs becomes a comma list in one click.
- Meta descriptions and titles — writers draft them across lines; they need to be one line for the CMS field.
- Code and configs — collapse multi-line strings or strip accidental breaks from pasted commands.
Frequently asked questions
Is my text uploaded anywhere?
No. Processing happens entirely in your browser. Nothing is sent to a server, logged or stored.
What's the difference between the join modes?
Space joins lines into one flowing line; Comma makes a comma-separated list; Nothing concatenates lines directly; Keep paragraphs flattens single line breaks but preserves blank-line paragraph breaks.
Does it remove empty lines too?
In Space, Comma and Nothing modes, empty lines are dropped. In Keep paragraphs mode, blank lines survive as paragraph separators. Enable Trim each line to also strip leading/trailing spaces per line.
Does it work offline?
Yes. Once the page has loaded, the tool works without an internet connection.