Writing Tools
Text Cleaner
Clean up messy text in one click. Remove extra spaces, broken line breaks from PDFs, blank lines, duplicate lines, HTML tags and emoji, or sort a list, then copy the clean result.
Clean Your Text
Paste your text, tick the clean-up options you need and press Clean Text. Your original text stays in the top box so you can try different options.
How to Use the Text Cleaner
- Paste your text into the top box.
- Tick the clean-up options you need. The most common ones are already selected.
- Press Clean Text. The result appears in the bottom box with a summary of how many characters and lines were removed.
- Press Copy Result and paste the clean text into your document, website, spreadsheet or message.
What Each Option Does
| Option | What it does |
|---|---|
| Remove extra spaces | Replaces double spaces and tabs with a single space. |
| Trim each line | Removes spaces at the start and end of every line. |
| Remove empty lines | Deletes blank lines. When unticked, three or more blank lines are reduced to one. |
| Fix PDF line breaks | Joins lines that were broken in the middle of a sentence and rejoins words split with a hyphen at the end of a line, while keeping paragraph breaks. |
| Remove all line breaks | Turns the whole text into one continuous paragraph. |
| Remove duplicate lines | Keeps only the first copy of each line, ignoring capital letters and extra spaces. |
| Strip HTML tags | Removes tags such as <p> and <div> and keeps the readable text. |
| Straighten smart quotes | Converts curly quotes, long dashes and the ellipsis character into plain keyboard characters. |
| Remove emoji | Deletes emoji and flag symbols. |
| Remove invisible characters | Removes zero-width spaces and similar hidden characters and converts non-breaking spaces into normal spaces. |
| Sort lines A–Z | Sorts lines alphabetically, with numbers in natural order (2 before 10). |
| Remove line numbers / bullets | Removes "1.", "2)", "a)", "-", "•" and similar list markers from the start of lines. |
Fixing Text Copied From a PDF
When you copy text from a PDF, every line usually ends with a hard line break, so paragraphs fall apart when pasted into Word, Google Docs or an email. Words split across two lines may also keep their hyphen, such as "infor-mation". Tick Fix PDF line breaks to join these lines back into normal paragraphs. Lines that end with a full stop, question mark, exclamation mark, colon or semicolon are kept as separate lines, so paragraphs stay apart. To keep a blank line between paragraphs as well, untick Remove empty lines.
Cleaning Lists and Data
The text cleaner is also handy for lists of emails, product names, keywords or phone numbers. Combine Trim each line, Remove empty lines, Remove duplicate lines and Sort lines A–Z to turn a messy list into a clean, unique, alphabetical one ready to paste into Excel or Google Sheets.
Why Remove Invisible Characters?
Text copied from websites, chat apps and AI tools can contain characters you cannot see, such as zero-width spaces and non-breaking spaces. They can break formulas in spreadsheets, cause "user not found" errors when pasting usernames or email addresses, make two identical-looking words fail to match, and mess up code. Removing them makes the text behave as expected.
Privacy
All cleaning is done in your browser. Your text is never uploaded or stored, so it is safe to clean private documents and customer lists.
Frequently Asked Questions
How do I remove extra spaces from text?
Paste your text, keep "Remove extra spaces" and "Trim each line" ticked and press Clean Text. Double spaces, tabs and spaces at the start and end of lines are removed.
How do I remove line breaks from copied PDF text?
Tick "Fix PDF line breaks" to rejoin sentences while keeping paragraphs, or tick "Remove all line breaks" to turn everything into one paragraph.
Can I remove duplicate lines from a list?
Yes. Tick "Remove duplicate lines". The first occurrence of each line is kept and later copies are removed, ignoring differences in capital letters.
Will the text cleaner change my words?
No. It only changes spacing, line breaks, quotes, symbols and the options you select. Spelling and wording stay exactly the same.
Can I clean HTML code into plain text?
Yes. Tick "Strip HTML tags" to remove tags, scripts and styles and keep only the readable text, with line breaks kept after paragraphs and headings.
Is my text private?
Yes. The cleaning happens in your browser and nothing is sent to a server.