~ / text / remove-line-breaks

↵ Remove Line Breaks

Fix text that breaks in the middle of every sentence after you copy it from a PDF. Join lines with a space, a comma or nothing — while keeping real paragraphs intact.

options
Replace line breaks with
Options
output

How to remove line breaks

  1. Paste text copied from a PDF, an email, a chat or a spreadsheet column.
  2. Choose whether line breaks become a space, nothing, or a separator such as a comma.
  3. Leave Keep paragraphs on to preserve real paragraph breaks, then copy the result into your document, email or translator.

Why does text from a PDF break into short lines?

A PDF doesn't store paragraphs — it stores characters at fixed positions on a page. When you copy, every visual line ending turns into a real line break, so pasting into Word, Google Docs or an email leaves each sentence chopped into pieces. Translators like Google Translate and DeepL treat each line break as the end of a sentence, which noticeably hurts translation quality.

This tool removes the line breaks inside sentences and keeps the blank lines that mark real paragraphs. If the original PDF had no blank lines between paragraphs, those breaks can't be detected — add them back by hand where needed.

Options at a glance

OptionInputOutput
A spacebroken in the⏎middlebroken in the middle
Nothing (join)https://exam⏎ple.comhttps://example.com
Separator (comma)apple⏎banana⏎cherryapple, banana, cherry
Rejoin hyphenated wordsinfor-⏎mationinformation
Keep list linesIntro⏎- item 1⏎- item 2Line breaks before list items stay

Cleaning up emails and chat messages

Plain-text email clients often hard-wrap lines at 70–80 characters and prefix quoted text with >. "A space" + "Keep paragraphs" fixes those in one pass. Going the other way, if you received a list one item per line in Slack or Teams and want to share it on one line, use "A separator" with a comma or slash. The number of lines and removed line breaks appears under the output.

Some PDFs also insert extra spaces inside words. After removing line breaks, run the result through Remove Extra Spaces. Your text stays in your browser and is never uploaded.

FAQ

How do I fix line breaks when copying from a PDF?
Paste the text here with "A space" and "Keep paragraphs" selected. Line breaks inside sentences are replaced with spaces while blank lines between paragraphs stay, so the text flows normally in Word, Google Docs or a translator.
How do I turn a column of values into a comma-separated list?
Copy the column from Excel or Google Sheets, paste it here, choose "A separator" and set it to ", ". Turning off "Keep paragraphs" is safest if the column has empty cells.
All my paragraph breaks disappeared. Why?
The original text had no blank lines between paragraphs, so there is nothing to tell paragraphs apart. Add blank lines between paragraphs in the input and convert again, or insert them in the result.
Can I replace each line break with two line breaks instead?
This tool is for removing line breaks. To double them, use a find-and-replace with regular expressions (replace \n with \n\n) — the regex tester can do that.
Does it remove line breaks in Word or Google Docs directly?
No — copy the text out of your document, clean it here, and paste it back. In Word you can also use Find & Replace with ^p, but that removes paragraph breaks too unless you use a two-step replacement.

Related tools