Remove Line Breaks — Line Break Remover

Paste text with broken lines — from a PDF, an email or a terminal — and join it back into clean paragraphs. Keep paragraph breaks if you want, rejoin words split by hyphens and remove double spaces.

Runs in your browserUpdated
Mode

Your data never leaves your computer. All processing happens 100% locally in your browser.

How to use the Remove Line Breaks

  1. Paste the text with unwanted line breaks.
  2. Choose whether to keep paragraph breaks, remove every break, or only remove empty lines.
  3. Copy the cleaned text — it updates as you change options.

Why text from PDFs breaks into short lines

PDFs store text line by line as it appears on the page, so copying a paragraph gives you a hard line break at the end of every printed line — and words split across lines keep their hyphen (“informa-tion”). Emails wrapped at 72 characters and terminal output behave the same way.

Keep paragraphs or join everything

Keep paragraphs joins lines inside a paragraph but keeps the blank line between paragraphs, so the structure survives. Remove all breaks turns everything into one line — useful for pasting into a single-line field, a spreadsheet cell or a JSON string. Remove empty lines only keeps every line but deletes the blank ones.

Fixing hyphenation

With Rejoin hyphenated words on, a hyphen at the end of a line followed by a lowercase word is removed and the word joined: “docu-↵ment” becomes “document”. Real compound words that happen to fall at a line end (like “well-↵known”) may lose their hyphen, so skim the result.

Tools that pair well with the Remove Line Breaks

  • Alphabetize List — Paste a list and put it in alphabetical order instantly — A to Z or Z to A, with smart number sorting, optional duplicate removal and support for lists separated by commas.
  • Remove Duplicate Lines — Paste a list to remove duplicate lines instantly.
  • Word Counter — Paste or type your text to count words and characters live — plus reading and speaking time, keyword density and length checks for SEO titles, meta descriptions and social posts.
  • Character Counter — Count every character as you type — with and without spaces, letters, numbers, punctuation, emoji and bytes — and see instantly whether your text fits the limits of X, SMS, Google and social platforms.

Frequently asked questions

How do I remove line breaks but keep paragraphs?
Use “Keep paragraphs” mode. Single line breaks become spaces; blank lines between paragraphs are kept.
How do I put all lines into one line?
Choose “Remove all breaks” and replace breaks with a space (or nothing, or a comma). Every line is joined into a single line.
Does it work with Windows line endings?
Yes. Windows (CRLF), Unix (LF) and old Mac (CR) line endings are all recognised.
Is my text uploaded?
No. The text is processed entirely in your browser.
Can I install Remove Line Breaks as a web app and use it offline?
Yes. Remove Line Breaks is an installable web app (PWA) — installed from your browser, not downloaded from an app store. Click Install app at the top of this page in Chrome or Edge (Windows, macOS, Linux, ChromeOS) or on Android, use Share → Add to Home Screen on iPhone and iPad, or File → Add to Dock in Safari 17+ on a Mac. It then opens in its own window with its own icon, and because it runs entirely in your browser it keeps working offline. Firefox on desktop can’t install web apps. How installing works.

Related tools