Text cleaner: remove line breaks, duplicates, empty lines and spaces

Paste text and clean it with a few clicks: join broken lines, drop duplicate or empty lines, trim spaces and strip invisible characters.

Loading the tool…

Runs in your browser. Your files are never uploaded.

How it works

Paste your text on the left and tick what should go. The cleaned text appears on the right as you type, ready to copy or save as a .txt file.

Join lines merges lines into paragraphs with a space; blank lines are kept as paragraph breaks unless you also remove empty lines. Remove duplicate lines keeps the first occurrence, which also works for a column pasted from Excel or Sheets. Invisible characters covers zero-width spaces, byte-order marks, soft hyphens and non-breaking spaces that sneak in when copying from web pages and PDFs.

Questions

How do I remove line breaks but keep paragraphs?

Tick “Join lines” and leave “Remove empty lines” unticked. Blank lines stay as paragraph separators.

Can I remove duplicates from an Excel column?

Copy the column, paste it here, tick “Remove duplicate lines”, copy the result back. For tables with several columns use Data → Remove Duplicates in Excel.

Is my text sent anywhere?

No. It is processed by your browser and gone when you close the tab.