How to clean text
- Paste the messy text, for example from a PDF, an email or a website.
- Tick the fixes you need. The result updates immediately.
- Use Find and Replace for any word or symbol, then copy or download the clean text.
What each option does
- Join broken lines: text copied from PDFs often has a line break at the end of every line. This joins lines but keeps real paragraphs (separated by an empty line).
- Multiple spaces → one: removes double spaces left by justified text or old typing habits.
- Remove duplicate lines: keeps the first copy of each line, useful for lists of emails, keywords or names.
- Remove HTML tags: keeps only the readable text from copied code.
- Smart quotes → straight: turns “ ” ‘ ’ into " and ', which code and some forms need.
- Remove Arabic diacritics: strips tashkeel (َ ُ ِ ّ ْ) and the tatweel stretch (ـ), which helps searching and matching Arabic text.
- Invisible characters: removes zero-width spaces and non-breaking spaces that break formulas and searches.
Example
A list of 500 email addresses copied from several spreadsheets: tick “Trim spaces”, “Remove empty lines” and “Remove duplicate lines”, then sort A → Z. In one click you get a clean list with every address once.
Tips
Use “Use as new input” to apply several rounds of cleaning, and download the result as a .txt file for spreadsheets or code. For writing advice, read how to write clearer sentences.
Frequently asked questions
Is the duplicate check case-sensitive?
Yes, “Apple” and “apple” are different lines. Convert the text to lowercase first with our case converter if needed.
Can I use regular expressions?
Find and Replace searches for the exact text you type, which is safer for most people. Special characters like . or * are treated literally.
How much text can it handle?
Several megabytes, a whole book, on a modern computer.
Is my text uploaded?
No, everything runs in your browser.
Sources: The Unicode Standard, chapters on Arabic (diacritics, U+064B–U+065F; tatweel U+0640) and format characters (U+200B–U+200D, U+FEFF).
Guides
More free text tools
Last reviewed: 2026-11-02. Results are calculated in your browser and may differ slightly from other apps. See our disclaimer.