Clean up text

Count words, remove duplicate lines and tidy up text.

0 words · 0 characters · 0 lines

Processed on your device. No file uploads. No account needed.

How to clean up text in your browser

Paste text, count it, and clean it: trim stray spaces, drop empty lines, remove duplicate lines, change case. Nothing is uploaded, so notes and drafts stay on your device.

1Paste your text

The word, character and line counts update as you type or paste.

2Apply a cleanup

Trim lines, remove empty lines, remove duplicate lines, or change the case.

3Copy or download the result

Use Undo if a cleanup was not what you wanted, then copy or save a plain text file.

Clean up text: common questions

Which cleanups can I combine?

Each action works on the text as it stands, so you can run several in a row: remove empty lines, trim, then drop duplicates. The Undo button steps back through them.

How are words and characters counted?

Words are counted by splitting on whitespace, and characters by Unicode code point, so an emoji counts as one character rather than two.

What does removing duplicate lines keep?

It keeps the first occurrence of each line and drops the later ones, and the remaining lines stay in their original order.

Is the pasted text sent anywhere?

No. The text stays inside the page, is never uploaded to a server, and leaving the page discards it.