โ†ฉ๏ธ

Remove Line Breaks

Remove line breaks and extra spaces from text copied from PDFs and emails, while keeping paragraphs if you want.

Built and maintained by Abdur Rehman ยท Free, no sign-up

Loading Remove Line Breaksโ€ฆ
๐Ÿ”’PrivateRuns in your browser โ€” nothing is uploaded.
โšกFastInstant results, no waiting in queues.
๐Ÿ’ธFreeNo sign-up, no watermark, no limits.
๐Ÿ“ฑAnywhereWorks on phone, tablet and desktop.
</> Embed this tool on your website โ€” free

Paste this code into any web page or blog post (WordPress: use a โ€œCustom HTMLโ€ block). It's free for personal, school and business sites โ€” just keep the credit link.

How to use the Remove Line Breaks

  1. Paste your text
  2. Choose to keep paragraphs or not
  3. Copy the cleaned text

Fix text copied from PDFs and emails

Text copied from a PDF or an email often breaks in the middle of sentences. Paste it here and choose Remove, but keep paragraphs (the usual choice), Remove all line breaks, or Replace with comma to turn a column of items into a comma-separated list. Options also join hyphenated words split across lines (โ€œsen-
tencesโ€ โ†’ โ€œsentencesโ€) and remove extra spaces. Nothing is uploaded.

In Word

Press Ctrl + H, search for ^p (paragraph mark) or ^l (manual line break), and replace with a space. Be careful: ^p also removes your real paragraph breaks, which is why โ€œkeep paragraphsโ€ here is easier.

In Excel

  • Find and Replace โ€” Ctrl + H, click in โ€œFind whatโ€ and press Ctrl + J (an invisible line break), then replace with a space.
  • Formulas โ€” =SUBSTITUTE(A1,CHAR(10)," "), or =CLEAN(A1) to strip them entirely.

In Google Docs and Notepad++

  • Google Docs โ€” paste the text here first, then paste the clean version into your document.
  • Notepad++ โ€” select the lines and press Ctrl + J (Join Lines), or use Ctrl + H in Extended mode to replace \r\n with a space.

โœ๏ธ Keep exploring Text Tools

See all Text Tools