The Zero Width Character Remover strips the invisible zero-width characters that sneak into text and cause hard-to-diagnose problems. Zero-width spaces, zero-width joiners and non-joiners, word joiners and byte order marks all take up no visible room, yet they break string comparisons, corrupt identifiers and confuse parsers. This tool deletes them in a single click so your text becomes clean and predictable.
It is built for developers cleaning strings copied from web pages, data engineers preparing imports, and anyone who has fought a bug caused by characters they could not see. Because these characters are invisible, removing them manually is nearly impossible, so an automated pass that targets exactly the right code points is the reliable way to fix the problem.
Everything runs locally in your browser using JavaScript, so nothing you paste is uploaded or stored. Paste your text, optionally also convert non-breaking spaces to ordinary spaces and remove soft hyphens, and the cleaned result appears instantly with a statistics panel showing how many invisible characters were removed.
Features
- Removes zero-width space, zero-width joiner, zero-width non-joiner and word joiner characters.
- Strips byte order marks and related invisible formatting code points in one pass.
- Optionally converts non-breaking and narrow spaces into ordinary editable spaces.
- Optionally removes soft hyphens that create invisible break points inside words.
- Shows a stats panel counting characters removed and the length before and after.
- Runs instantly and offline with no account, no upload and no limit on how much you paste.
- Keeps all visible text intact, deleting only the targeted invisible characters.
How to use Zero Width Character Remover
- Paste the text you want to clean into the input box.
- Enable Convert NBSP to space if the text contains non-breaking spaces you want normalised.
- Enable Remove soft hyphens if invisible break points are present inside words.
- The cleaned text updates live as you paste or change any option.
- Copy the clean text or export it as a TXT file for your project or document.
Benefits
- Fixes string comparisons and lookups that fail because of hidden zero-width characters.
- Cleans identifiers, usernames and passwords copied from web pages before storing them.
- Prevents parser errors and data corruption caused by byte order marks and joiners.
- Restores normal editable spacing by converting stubborn non-breaking spaces.
- Keeps sensitive text private because all cleaning happens on your own device.
- Gives an instant count of removed characters so you can trust the text is clean.
Zero-width characters are widely used for legitimate typographic purposes, such as controlling how scripts join or where long words may break, but they cause chaos when they end up in code, data or credentials. A single zero-width space inside a variable name or an API key makes it fail silently, and because nothing is visible, the cause can take hours to track down without a dedicated cleaner.
This tool targets the specific invisible code points that most commonly cause trouble, so it removes them without disturbing the rest of your text. If you first want to see exactly what is present before cleaning, run the text through the Invisible Character Detector, and for broader whitespace tidying such as collapsing spaces and trimming lines, follow up with the Whitespace Normalizer.