FREE · TEXT TOOLS
Text Cleaner.
Clean pasted text: collapse repeated spaces, trim line edges, remove invisible characters and non-breaking spaces, delete empty lines or rejoin wrapped lines into paragraphs, without changing words.
Loading the calculator…
Steps to use Text Cleaner
Paste text, choose Clean text, then copy the cleaned result.
How Text Cleaner processes your input
Clean pasted text: collapse repeated spaces, trim line edges, remove invisible characters and non-breaking spaces, delete empty lines or rejoin wrapped lines into paragraphs, without changing words. Up to 1,000,000 characters. Words and punctuation are kept; dashes and Markdown are not changed (use the AI Text Cleaner for that). Hyphenated line breaks are joined with a space, not repaired.
Text Cleaner: worked example
Hello world, this text was pasted from a PDF. → Hello world, this text was pasted from a PDF.
What the cleaner fixes
- Repeated spaces and tabs inside lines become one space, and spaces at the start and end of each line are removed.
- Invisible characters are deleted: zero-width spaces, byte-order marks, soft hyphens and direction marks that break searches, forms and code.
- Non-breaking and other special spaces become normal spaces.
- Optionally, curly quotes and apostrophes are straightened.
Words and punctuation are never rewritten, and a table shows how many changes of each kind were made.
Choose what happens to line breaks
| Option | Use it for |
|---|---|
| Keep line breaks | Notes and lists: keeps your lines, with at most one blank line between paragraphs |
| Remove empty lines | Lists copied with gaps between items |
| Join wrapped lines into paragraphs | Text copied from a PDF or an email, where every line ends early |
| Put everything on one line | Form fields, spreadsheet cells and titles |
Example: Hello world becomes Hello world. To also replace em dashes or remove Markdown symbols, use the AI Text Cleaner; to find hidden characters without removing them, use the Hidden Character Detector.
Questions about Text Cleaner
How do I remove line breaks from text copied from a PDF?
Choose “Join wrapped lines into paragraphs”. Lines inside a paragraph are joined with spaces and blank lines between paragraphs are kept.
Will it change my wording or punctuation?
No. Only spaces, hidden characters, line breaks and, if you choose it, curly quotes change. Words hyphenated across a line break are joined with a space, not repaired.
Is my text uploaded?
No. The text is cleaned in your browser and is not sent to a server.
Is Text Cleaner free, and do I need an account?
Yes. This tool is free to use in your browser without an account. Processing takes place on your device.
What are the limits and what should I check?
Up to 1,000,000 characters. Words and punctuation are kept; dashes and Markdown are not changed (use the AI Text Cleaner for that). Hyphenated line breaks are joined with a space, not repaired. Review the result before using it in your work.
Is my input sent to a server?
Your input is processed in your browser and is not uploaded by this tool. Files and pasted text are cleared when the page is refreshed. Normal website requests are still required to load the page and its libraries. Read the privacy explanation.