CraftTools

Remove Line Breaks

Guide: How to Clean Up Text Copied From PDFs and Websites

0 line breaks

Replace each line break with

Nothing you enter or choose here leaves your device. This tool runs in your browser.

How to use

  1. 1Paste your text into the box.
  2. 2Choose what replaces each line break, such as a space.
  3. 3Copy the cleaned result.

Frequently asked questions

Is my text sent anywhere?

No. Everything runs in your browser, so your text never leaves your device.

How do I fix text copied from a PDF?

Paste it, keep the replacement on a space, and tick Treat several breaks in a row as one. Broken lines then join into normal sentences.

Can I keep my paragraphs?

Yes. Tick Keep paragraphs and only the line breaks inside each paragraph are removed. Blank lines between paragraphs stay.

Can I join lines with a comma?

Yes. Choose A comma, or My own text for any separator you like, such as a pipe or a semicolon.

Does it remove the spaces at the start and end?

Yes. The result is trimmed, and double spaces become one space unless you turn that off.

Read the guide

Learn how this works and how to get the most from it.

Writing & text

How to Clean Up Text Copied From PDFs and Websites

Fix broken line breaks, double spaces and stray characters in copied text, then sort, number and tidy it in a few clicks.

2 min read

Find and Replace

Find and replace text online, with regex, case and whole-word options.

Sort & Dedupe Lines

Sort lines A-Z, reverse them, remove duplicates and trim whitespace.

Word Counter

Count words, characters, sentences and paragraphs as you type.

Case Converter

Switch text to UPPER, Title, camelCase, snake_case and more.