Skip to content

Remove line breaks

Join lines that were broken mid-sentence, for example in text copied from a PDF, while keeping paragraphs. You can also wrap text at a set width or put each sentence on its own line.

  • Free, no limits
  • No sign-up
Everything happens in your browser; your data is never uploaded.
  • ✓ Free
  • ✓ No sign-up
  • ✓ Nothing uploaded

Next step

What to do next

How to use it

  1. Paste the text with unwanted line breaks.
  2. Choose an action: remove breaks, wrap at a width, or one sentence per line.
  3. Adjust the options for paragraphs and hyphenation.
  4. Copy or download the result.
Try it now

Why PDF text has broken lines

When you copy text out of a PDF, an email or an old document, you often get a line break at the end of every visual line:

This text was cop-
ied from a PDF, so
every line ends with a line break.

Paste that into a document or a web form and it stays chopped into short lines. Remove line breaks joins the lines back into flowing sentences:

This text was copied from a PDF, so every line ends with a line break.

Two options make the result clean:

  • Keep paragraphs (on by default). A blank line between blocks is treated as a real paragraph break and kept, while single line breaks inside a paragraph become spaces. Turn it off to merge everything into one long paragraph.
  • Join hyphenated line ends (on by default). When a word was split with a hyphen at the end of a line and continues with a lowercase letter on the next one, the pieces are joined: cop- + ied → copied. Hyphens followed by a capital letter are left alone, because those are usually real compound words or names.

Extra spaces left at the joins are collapsed into one.

Wrap text at a set width

The opposite job: Wrap at a set width inserts line breaks so no line is longer than a given number of characters (default 60, anything from 10 to 500). Words are kept whole and moved to the next line when they don't fit. Turn on Break long words if very long strings such as URLs must also be cut to the width.

Typical uses:

  • Plain-text emails and newsletters, where around 70 characters per line is a classic convention.
  • Commit messages and code comments that must stay under 72 or 80 characters.
  • Text for terminals, receipts, labels and displays with a fixed width.
  • Preparing subtitles or captions with a maximum line length.

One sentence per line

Each sentence on its own line splits text after every sentence-ending punctuation mark (. ! ? …) followed by a space and a capital letter or number. It's useful for:

  • Proofreading: long sentences stand out immediately.
  • Translation and subtitling, where you work sentence by sentence.
  • Preparing text for a spreadsheet, one sentence per row.
  • Counting sentences or comparing two versions line by line with text compare.

Abbreviations such as Dr. Smith or U.S. Army can trigger an extra split, so give the result a quick look.

Tips for clean results

  • If a PDF also leaves blank lines between every line, run remove empty lines first with Keep paragraphs on, then remove line breaks.
  • Double spaces and tabs left over from column layouts can be cleaned with remove extra spaces.
  • Text from multi-column PDFs sometimes mixes lines from the two columns. No automatic tool can untangle that reliably; copy one column at a time instead.
  • Bulleted lists are joined into a single paragraph when Keep paragraphs can't see blank lines between items. Add blank lines between items you want to keep separate.

All processing happens in your browser, so confidential documents stay on your computer.

Frequently asked questions

How do I remove line breaks from text copied from a PDF?

Paste the text, keep “Remove line breaks” selected with “Keep paragraphs” and “Join hyphenated line ends” on. Copy the result.

Will it keep my paragraphs?

Yes, if they are separated by a blank line and “Keep paragraphs” is on. Single line breaks inside a paragraph become spaces.

How does it handle words split with a hyphen?

When a line ends with a hyphen and the next line starts with a lowercase letter, the two parts are joined into one word.

Can I add line breaks instead?

Yes. Choose “Wrap at a set width” and enter the maximum line length in characters.

Is my text uploaded?

No. Everything runs locally in your browser.

Last updated: November 12, 2026

Recommended

Similar tools

If Remove line breaks helped, you may need these too.

See all in category →

People also use