Text cleaner
Paste text copied from a PDF, an email or Word and get a clean version: broken lines joined, double spaces, typographic quotes, invisible characters and more. The result updates as you type.
Your data stays on your computer. Files are processed in your browser and are never uploaded.
0 characters · 0 lines
Clean text
Paste some text to see the result.
How to use it
- Paste the text into the box: the result appears right away and updates as you type.
- Turn the options on or off: join lines, remove double spaces, fix quotes and dashes, strip HTML tags and list bullets.
- See how many characters and lines were removed, then copy the result or save it as a .txt file.
- With "Use the result as input" you put it back in the box to apply more cleaning steps in sequence.
Frequently asked questions
Why does text copied from a PDF have so many line breaks?
A PDF breaks at the end of each line on the page, not at the end of the sentence. "Join lines" turns those breaks into spaces and leaves blank lines alone, since they separate paragraphs. If some words are split with a hyphen, turn on the rebuild option too.
Can rebuilding hyphenated words go wrong?
Yes, in one case: a genuinely hyphenated compound broken at the end of a line ("socio-" + "economic") loses its hyphen. That is why it only rejoins when the next line starts with a lowercase letter and why it is off by default: always check the result.
What are invisible characters?
Characters you cannot see but that are there: zero-width space, a BOM at the start of a file, soft hyphen, direction marks and the non-breaking space (the one that prevents a line break). They break searches, comparisons and imports, for example an email address that "looks" right. The tool removes them or turns them into normal spaces.
Do composite emoji get damaged?
No: the zero-width joiner that glues emoji together (families, composite flags, professions) is left untouched.
Is the text sent anywhere?
No, cleaning happens in your browser. The share link includes the text only if it is short (up to 20,000 characters) and in the part after the # of the address, which never reaches the server.
Privacy
Everything happens in your browser: no data is sent or saved.