Fix Copied Line Breaks

Paste text copied from a PDF or document.

Quick start

  1. Add the copied text to the tool.
  2. Select Clean text.
  3. Use the cleaned text in your document.

Example

Select Try an example to load a short, made-up pickup notice with sentences cut off mid-line. Clean text joins all three breaks, puts “confirmation” back together, and keeps the heading, the blank line and the two numbered items.

The input box with a pickup notice: a heading, a blank line, and a paragraph and numbered items broken mid-sentence
BeforeThe pasted notice, with sentences cut off mid-line
The result box with the heading, one joined paragraph and two numbered items on their own lines
AfterThe cleaned text: sentences joined, numbered items on separate lines

Every paste from a PDF leaves my sentences chopped into short lines

The tool joins forced line breaks, keeps paragraph gaps, and leaves numbered and circled-number choices on their own lines.

A paragraph copied from a PDF rarely arrives as a paragraph. A PDF breaks the line wherever the printed line ended, so a sentence that ran across two printed lines comes back as two lines. Paste it into a document, an email or a product description and the sentence stays broken. This tool joins the lines that belong together and keeps paragraph gaps and list lines where they are.

  • Paste the copied text.
  • Select Clean text. The default options keep paragraph breaks and list lines. Open Options if the result looks wrong.
  • Review the cleaned text, then copy it into your document editor.

The break lands in the middle of a sentence

Paste the text and press Clean text. Lines that form one sentence are joined, and the blank lines between paragraphs stay. Lines that start with a bullet (•, -), a number (1., 1)) or a circled number stay on their own lines, and English words split by a line-end hyphen are put back together (exam-ple → example).

You can also upload an XLSX, XLS, CSV, TSV or TXT file up to 10 MB, with tables up to 50,000 rows. Text is limited to 2,000,000 characters. Everything runs in your browser. Take the result out with Copy result or Download text file.

Some lines are the meaning

Not every line break is damage. In code, a table pasted as text, or a poem, each line carries meaning, and joining the lines wrecks it. Keep code and poems out of this tool, and check bullet lists and tables line by line after cleaning.

LineWhat the tool does
A sentence split across printed linesJoins it
A blank line between paragraphsKeeps it
A list line starting with •, -, 1. or ①Keeps it on its own line
A line of codeJoins it into prose, so don't use the tool for code
A row of a tableMay join it, so check each row
A line of verseJoins lines that don't end with sentence punctuation

If the problem is merged cells in a spreadsheet, use Unmerge & Fill Cells instead.

When the fix belongs in the editor

When only a few breaks need fixing, do it in your editor. In Word, Find and Replace has a Special menu for paragraph marks and other special characters (Find and replace text in Word). Google Docs has Find and replace too (Search and use find and replace), but its help page says regular-expression replacements such as \n only work in Google Sheets.

Some PDFs don't let you copy text at all because of the author's security settings, according to Adobe's Acrobat Reader help.

What comes out, and what to check before pasting

Paste an invoice that starts with INVOICE 1048, then Order date: 11/27/2026, an address and two paragraphs separated by a blank line. INVOICE 1048 stays at the top, and the date and the address each come out on one line. The blank line between the paragraphs stays with the default options.

Paste a few lines of function code and they come back joined as one stretch of prose.

A wrapped shipping policy with two short headings and two bullet lines comes out like this:

Shipping policy Orders placed before noon ship the same business day. Orders placed after noon are prepared on the next business day.

Returns Keep the packing slip with the item. Email support@example.invalid for a return label.

The two bullet lines follow unchanged. The headings Shipping policy and Returns were joined to the first sentence below them because no blank line followed them. Put a blank line under each heading before cleaning, or add the break back afterwards.

An empty file loads (Loaded empty-source.txt · encoding UTF-8), but the result step still says Add text in step 1 and clean it first.

Before pasting the result into the next document, check that headings are still on their own lines and list lines are still separate. If a line that should have stayed separate got joined, put the break back in your editor. Keywords & text lists more tools for cleaning up text.

Files and personal information

Files and anything you enter are not sent to a server. They are processed only in the browser you are using now, and closing the window clears what you entered.