Text Cleaner: Remove Extra Spaces and More
Paste messy text and the cleaner can remove extra spaces, trim spaces from the start and end, delete tabs, turn curly smart quotes into straight ones, strip emoji and remove any character outside basic ASCII. Tick only the options you need, then copy clean text for code, spreadsheets, forms or plain email.
Text copied from word processors, PDFs and web pages carries invisible baggage: double spaces, tabs, curly quotes and odd characters that break code, CSV files and search boxes. Each option fixes one kind of mess, so you stay in control of what changes.
How to remove extra spaces and clean text
- Paste the text into the box.
- Tick the cleanups you want, such as collapse spaces or smart quotes to straight.
- Check the result.
- Copy the cleaned text.
What each option does
Trim removes spaces at the start and end. Collapse spaces turns any run of spaces into one, which fixes double spaces after full stops. Remove tabs deletes tab characters, common in text copied from spreadsheets.
Smart quotes to straight changes curly quotes and apostrophes into the plain ' and " that code, CSV files and many forms expect. Strip emoji removes emoji. Strip non-ASCII keeps only basic English letters, digits and punctuation, which also removes accented letters such as é, so use it with care on names.
Hidden characters that cause trouble
Some characters look like a normal space but are not: the no-break space (U+00A0) that word processors insert, or the zero width space (U+200B) that shows nothing at all. They can stop a search from matching or make two identical-looking values different. Both sit outside ASCII, so strip non-ASCII removes them.
Frequently asked questions
How do I remove extra spaces between words?
Tick collapse spaces. Every run of two or more spaces becomes a single space.
How do I remove tabs from text?
Tick remove tabs and copy the result.
What are smart quotes?
Curly quotation marks and apostrophes that word processors add automatically. They look nicer in print but often break code and data files.
Will strip non-ASCII delete accented letters?
Yes. Letters such as é, ü and ñ are outside ASCII and are removed, along with emoji and symbols.