Skip to the tools

EveryKitText

All kits

Clean text

Text pasted out of a PDF or an email arrives full of broken lines and doubled spaces. Turn on the fixes you want and the cleaned version appears beside it.

Each switch is separate, so you can take the one thing you need and leave the rest alone.

What to fix

0 words, 0 characters

Questions

Is my text sent anywhere?
No. Every count and every conversion happens in this page as you type. There is no server here that could receive what you paste, and you can check it in your browser's network tab: typing produces no requests at all.
In what order are the fixes applied?
Spaces are collapsed first, so two lines that differ only by trailing whitespace count as the same line. Duplicates are removed next, while there are still lines to compare. Line breaks are removed last, because afterwards there are no lines left. That order is what makes the switches compose sensibly in any combination.
Are blank lines treated as duplicates?
No. Blank lines are structure rather than content, so they survive even with duplicate removal switched on. Otherwise every paragraph break after the first would disappear.
Does it change anything I have not asked it to?
No. With every switch off the text comes out byte for byte as it went in, which is worth knowing before you paste something you care about.

The other tools here