CLEAN COPIED TEXT

Remove Line Breaks

Join unwanted line breaks in copied text while keeping paragraphs, lists and code intact. Preview the result and copy clean text.

Remove Line BreaksProcessed on your device
Clear your input to load an example.
0 words · 0 charactersOriginal kept
CLEANED TEXT

Let your paragraphs flow.

Paste text or try the example to begin.

Your result appears here
✓ Free to use✓ Original text preserved✓ No uploads

Put the paragraphs back together.

Text copied from PDFs and narrow columns can carry a hard return at the end of every line. Join those wrapped lines while keeping the paragraph breaks you want. The input remains untouched so you can compare every change.

How to use Remove Line Breaks

  1. Paste your text, or load the example into an empty workspace.
  2. Choose the cleanup options and inspect any findings or warnings.
  3. Compare the original and result, then copy or download.

What to expect

Blank lines mark paragraphs by default. Common Markdown lists, headings, fenced code and indented code keep their line boundaries. Turn off these protections only when flattening that structure is intentional. Dehyphenation is optional: it can also join a genuine compound word, so review the result.

Works with up to 250,000 characters. Input remains in this page’s memory until you clear, reload or leave it. Word counts use whitespace-separated words and are approximate for languages without spaces.

Examples you can check

These built-in examples use the settings described below. Visible Unicode markers appear only in these explanations.

Wrapped PDF paragraphs

Blank lines preserve paragraph boundaries. Missing paragraph boundaries cannot be inferred reliably.

Input

A paragraph copied from a PDF
can wrap at every printed line.

Keep the next paragraph
separate from the first.

Expected text output

A paragraph copied from a PDF can wrap at every printed line.

Keep the next paragraph separate from the first.
Try this example in the tool →

Optional hyphen repair

This is an intentional counterexample: document is repaired but well-known loses a meaningful hyphen. Review joined words; the option is off by default.

Input

A docu-
ment contains a well-
known example.

Expected text output

A document contains a wellknown example.
Try this example in the tool →

An address is not a paragraph

An address or poem can need every line break. Default line joining cannot identify this intent; keep the original or edit only prose excerpts.

Input

Alex Example
12 Sample Street
Sydney

Expected text output

Alex Example 12 Sample Street Sydney
Try this example in the tool →

Explore all text-cleanup test cases · How we test these tools

Another way to tidy.

All tools ↗