Last updated: October 2026
Remove line breaks online free — fix broken text in one click
Short answer: paste your text into the box above and click Remove line breaks — every line ending is joined with a space, turning broken lines into one flowing paragraph. No signup, nothing leaves your browser.
When you'd use this
Copy text out of a PDF and you'll get a hard line break at every line wrap — pasting that into Word or an email looks like a mess. The same happens with text copied from spreadsheet cells, code editors, chat transcripts and ebooks. This tool strips those breaks in one click, so the text flows as normal paragraphs again.
Four modes for different jobs
Join lines with a space is the classic fix — everything becomes one paragraph. Keep paragraphs joins single line breaks but preserves blank-line paragraph separations, which is what you want for articles and documents. Join with nothing removes breaks without adding spaces (useful for cleaning up broken URLs or codes). Bullet mode turns each line into a dash bullet point — handy for turning pasted lists into Markdown.
Word wrap is not line breaks
The confusion that sends people here: text that looks like one paragraph in your editor but pastes as broken lines everywhere else. That's word wrap — your editor visually folding long lines — versus real line-break characters (\n on Mac/Linux, \r\n on Windows; see the newline article for the full history). This tool only removes actual line-break characters, which is exactly what you want: it fixes text copied from PDFs, terminals and emails where every visual line became a hard break, without touching anything else.
One caution: "remove all line breaks" also removes the blank lines between paragraphs. If your text has paragraphs worth keeping, use the Keep paragraphs mode instead. And once your text is one clean block, our remove duplicate lines and text case converter finish the cleanup job.
Frequently asked questions
How do I remove line breaks from text?
Paste your text into the box above and click Remove line breaks. Every line ending is joined with a space, turning broken lines into one flowing paragraph.
Can I keep paragraph breaks but remove single line breaks?
Yes — choose the "Keep paragraphs" mode. Single line breaks are joined with a space while blank-line paragraph separations are preserved.
Does it work with text copied from PDFs?
That's the most common use. PDFs and ebooks insert hard line breaks at every line wrap; this tool strips them so the text pastes cleanly into Word, Google Docs or emails.
Does it handle Windows and Mac line endings?
Yes. Windows uses CRLF (\r\n), Unix and modern macOS use LF (\n), and very old Mac files use CR (\r) — all three are normalized before processing, so even text copied from mixed sources works fine.
Does it clean up extra spaces too?
Yes. Runs of multiple spaces or tabs are collapsed into a single space and each line is trimmed, so output never has double spaces or trailing whitespace left behind by the removed breaks.
Can I replace line breaks with commas instead?
There is no custom-separator option — the modes join with a space, with nothing, or keep paragraphs. For a quick comma-separated list, use bullet mode and then replace the leading "- " markers, or join with nothing and insert separators manually.
Can I use this to make one-line JSON or CSV data?
Yes — "Join lines with nothing" turns multi-line snippets into a single unbroken string, which is what you need before pasting JSON or CSV fragments into code, terminals or database fields. Choose "Join lines with a space" if words must stay readable.
What happens to double-spaced text?
The space and nothing modes collapse any run of line breaks into one join, so double-spaced text becomes evenly spaced. Use "Keep paragraphs" when blank lines mark real paragraph separations you want to preserve.
Is my text private?
Completely. Processing runs entirely in your browser — nothing is uploaded, stored or tracked.