textcleanups

Remove line breaks

Paste text that breaks in the wrong places and get it back as flowing paragraphs.

Options
Replace each line break with

Your text stays in your browser. Nothing is uploaded or saved.

All text tools

Or fix everything at once with the all-in-one text cleaner.

AI-written text

ChatGPT text cleaner
Remove hidden characters, odd spaces and Markdown from AI answers.
Remove em dashes
Replace every — with a comma, period or hyphen.
Remove Markdown
Turn Markdown into plain text: no **, #, links or tables.
AI phrase finder
Highlight overused AI words and phrases.

Lines

Remove line breaks
Turn text broken across many lines back into clean paragraphs.
Remove duplicate lines
Keep the first copy of every line and delete the repeats.
Remove empty lines
Delete blank lines, or cut long gaps down to one.
Sort lines
Sort a list A to Z, Z to A, by length, reversed or shuffled.
Add line numbers
Number every line, your way.
Remove line numbers
Strip numbers and bullets from the start of lines.
Comma separator
Turn a list into comma-separated text, and back.

Spaces and characters

Remove extra spaces
Collapse double spaces, trim lines and replace tabs.
Remove special characters
Strip symbols and keep only letters, numbers and punctuation you choose.
Remove emojis
Delete every emoji, including skin tones, flags and combined emoji.
Remove accents
Turn é into e, ü into u and ß into ss.
Convert smart quotes
Turn curly quotes, long dashes and ellipses into plain text.

Formatting and counting

Case converter
Switch text to sentence case, Title Case, UPPERCASE, camelCase and more.
Find and replace
Replace words or patterns across your text, with regex support.
Strip HTML tags
Turn HTML into clean, readable plain text.
Word counter
Count words, characters, sentences and reading time as you type.
Text diff checker
Compare two texts and see what changed.
Word frequency counter
See which words you use most.
Reverse text
Flip text backwards, by letter, word or line.

Why copied text breaks in the wrong places

PDFs don't store paragraphs. They store lines of text placed at exact positions on a page. When you copy from one, each visual line comes with a hard line break at its end, so a single paragraph arrives as a dozen short lines. Email clients that wrap plain text at a fixed width, and some websites, do the same thing.

Fixing it by hand means clicking at the end of every line and pressing Delete, then adding a space. This tool does it for the whole text at once.

How to remove line breaks

  1. Paste your text into the box on the left.
  2. Leave Keep paragraph breaks on if your text has blank lines between paragraphs and you want to keep them.
  3. Copy the result from the box on the right, or download it as a .txt file.

What the options do

Keep paragraph breaks

A blank line usually means a real paragraph break. With this option on, single line breaks are joined, but a blank line between paragraphs stays. Turn it off to put everything on one line.

Rejoin words split with a hyphen

Justified PDF text often splits long words across lines, like informa- and tion. With this on, a hyphen at the very end of a line followed by a lowercase letter is treated as a split word and removed. Real hyphenated words in the middle of a line, such as well-known, aren't touched.

Replace with a space or nothing

Most text needs a space where each line break was. Choose Nothing when you're joining items that shouldn't be separated, such as a long URL or code that was wrapped across lines.

Common uses

  • Pasting a quote from a research paper or report into your own writing
  • Cleaning up text from scanned documents after OCR
  • Fixing plain-text emails that wrap every 72 characters
  • Preparing text for a form field, spreadsheet cell or social post that expects one line

Questions

Will this remove the spaces between words?

No. Each line break is replaced with a single space by default, and any spaces left at the start or end of a line are tidied so you don't get double spaces.

How do I remove line breaks in Word instead?

In Word, open Find and Replace, search for ^p and replace it with a space. That also removes your paragraph breaks, which is why this tool's Keep paragraph breaks option is usually easier.

Is my text uploaded anywhere?

No. The tool runs entirely in your browser. Your text never leaves your device, so it's safe for confidential documents.

Can I put everything on one single line?

Yes. Turn off Keep paragraph breaks and every line break, including blank lines, is removed.