Removes invisible zero-width characters from copied text on websites.
Here’s an example text containing a zero-width space (U+200B):
HelloWorld
It looks normal - but if you move the cursor between the words, there’s an invisible character.
After cleaning, it becomes:
HelloWorld
Go to this page,
paste any text that might contain invisible characters, and click “Show me the characters.”
You’ll see if any hidden Unicode symbols (like U+200B or ZWSP) are present.
Note: You can safely ignore standard whitespace symbols such as CR, LF, or TAB -
these are normal line breaks and indentation characters, not invisible zero-width characters.
When copying from some websites (like ChatGPT), hidden zero-width characters may be inserted automatically.
These characters are invisible and can only be seen when specifically searching for them.
This project provides:
- A Tampermonkey userscript that cleans copied text directly in the browser
- A browser extension (for Chrome/Firefox) that cleans clipboard content globally
Requirements:
Tampermonkey installed in your browser.
Steps:
- Click this link to open the userscript directly in Tampermonkey
- or open the Tampermonkey dashboard → Create a new script and paste the contents of
zwsp-cleaner.user.js
- or open the Tampermonkey dashboard → Create a new script and paste the contents of
- Save and enable the script
- Visit any website and copy some text → zero-width characters will be removed automatically
Requirements:
A Chromium-based browser (Chrome, Edge, Brave) or Firefox.
Steps (Chromium):
- Clone or download this repository
- Open
chrome://extensions/ - Enable Developer mode
- Click Load unpacked and select the
zwsp-cleaner-extension/folder - The extension will now monitor and clean clipboard content automatically
Steps (Firefox):
- Open
about:debugging#/runtime/this-firefox - Click Load Temporary Add-on
- Select the
manifest.jsonfile inside thezwsp-cleaner-extension/directory
Both the userscript and the extension remove these Unicode characters:
| Unicode | Description |
|---|---|
| U+200B | Zero Width Space |
| U+200C | Zero Width Non-Joiner |
| U+200D | Zero Width Joiner |
| U+FEFF | Zero Width No-Break Space (BOM) |
They run a simple regular expression on every copied text and overwrite the clipboard content with the cleaned version.