Whitespace & Invisible Character Cleaner
Trim lines, collapse repeated spaces, remove blank lines and strip invisible zero width and nonbreaking spaces from copied text.
Runs on your device
Result
Results appear here as you type.
What it does
Text copied from PDFs, websites and chat apps often hides nonbreaking spaces and zero width characters that break code, CSV imports and search. This cleaner removes them.
How to use it
- Paste the text.
- Tick the cleanup rules you want.
- Copy the cleaned text.
Example
The example fills in realistic values and runs the tool. Select Try an example above to see it.
When it helps
- Fixing "invisible" errors in pasted code.
- Tidying text copied from PDFs.
- Preparing data for import.
Questions
What are zero width characters?
Characters such as U+200B that take up no space but still exist in the text. They can make two identical looking strings unequal.
Will line breaks be removed?
Only empty lines, and only if you tick that option.
More text & writing tools
See all 20- Word Frequency Counter List the most frequent words in a text with counts and percentages, optionally ignoring common English stop words. Export the table as CSV.
- Markdown to HTML Converter Convert GitHub flavoured Markdown (tables, task lists, fenced code) into clean HTML you can paste into a CMS or email template.
- Text to Speech Read any text aloud with natural voices built into your device. Choose voice, speed and pitch, and pause or resume at any time. Free, no sign up.
- Speech to Text (Online Dictation) Dictate text with your voice and watch it appear as you speak, in many languages. Copy or download the transcript when you are done.
- Typing Speed Test Test your typing speed in words per minute and accuracy with a 30, 60 or 120 second test on common English words. Track your best score.
- Word Unscrambler Unscramble letters into every English word you can make, grouped by length, with ? for blank tiles. Perfect for Scrabble, Words with Friends and anagrams.
People also use
Browse all 200 tools- Running Pace Calculator Work out running pace per km or mile from distance and time, or predict a finish time for 5K, 10K, half marathon and marathon. Health & fitness
- Add Text Watermark to Image Stamp a text watermark on a photo in any corner, the centre, or tiled across the whole image, with adjustable size, colour and opacity. Image
- Working Days Calculator Count business days between two dates, excluding weekends of your choice (Saturday and Sunday, or Friday and Saturday) and a list of public holidays. Business
- Compress Image to a Target Size (KB) Shrink a photo to under a target file size such as 100 KB, 50 KB or 20 KB for online forms, automatically finding the best quality that fits. Media & files