Clean selected hidden characters
Find zero-width spaces and other selected hidden code points, then remove or replace only the types you choose.
- 1Add input
- 2Adjust settings
- 3Get your result
Tool input and files are processed in this browser without being uploaded.
Before you start
Diagnose hidden characters in pasted text or a UTF-8 file. The default removes only zero-width spaces; other characters stay unless you select them. Review counts and source positions before using the result.
How to use this tool
- Paste text or choose one UTF-8 text file.
- Choose exactly which hidden characters to remove. Optionally turn non-breaking spaces into ordinary spaces.
- Run the tool, inspect the per-character counts and first source positions, then copy or download the cleaned TXT.
Supported inputs and limits
Only the seven listed code points are checked; this is not a general Unicode sanitizer.
U+200E can affect text direction; ZWJ/ZWNJ can shape scripts and emoji. Check the original before removing them.
Pasted text is limited to 1 MiB; one UTF-8 text file is limited to 10 MiB and 50,000 physical lines. An initial file BOM may be consumed during UTF-8 decoding.
Worked example
Example input
ab
Example options
{"zeroWidthSpace":true,"wordJoiner":false,"bom":false,"joiners":false,"noBreakSpace":false,"leftToRightMark":false}Example output
ab
When something does not work
If the output changes line breaks, emoji or joined scripts, turn off the relevant option and rerun from the original. Keep the original for comparison.
Frequently asked questions
Which characters are changed by default?
Only U+200B zero-width space is removed by default. U+2060, U+FEFF, U+200C, U+200D, U+200E and U+00A0 remain until you opt in.
Can this clean every invisible Unicode character?
No. It checks the seven listed code points. Non-breaking space U+00A0 is replaced with a regular space when selected, never deleted.
Is my input sent to a server?
No. Input is processed in your browser. A same-tab draft may remain until refresh or tab closure; save the output you need.
Documentation & further reading
Related tools
Convert text encoding
Choose the right text encoding and save a readable TXT file.
Merge text files
Put several text files together in the order you choose.
Word counter
Words, characters, and paragraphs at a glance.
Case converter
Change letter case to suit your text.