Delete the characters that have no visible width
LOCALSome text looks normal but behaves strangely: a search finds nothing although the word is clearly there, a spreadsheet refuses to match two identical names, or a script stops with an error about a non-printable character. The cause is often a zero-width space, a byte order mark or a directional control that came along when the text was copied. This tool scans the text code point by code point, counts each family of hidden characters, and removes them without touching a single visible letter. Emoji sequences are protected by default, because deleting the joiner inside a family emoji splits it into separate people. Everything runs locally in the browser, and the cleaned text can be copied or saved as a .txt file.
How it works
- 01
Paste the text that misbehaves
Paste the passage, cell value, email address or code snippet into the box. The counters update immediately and show how many zero-width characters, directional marks, soft hyphens, unusual spaces and control characters were found. Normal spaces, tabs and line breaks are never counted or removed, so the shape of the paragraph stays intact.
- 02
Read the breakdown before cleaning
Each family is listed separately. Zero-width covers U+200B, U+200C, U+2060 and a leading U+FEFF byte order mark; directional covers the left-to-right and right-to-left marks used in mixed-language text; soft hyphen covers U+00AD; the odd-space counter covers non-breaking and ideographic spaces. Seeing the counts tells you whether the problem is a hidden character at all, or something else such as lookalike letters.
- 03
Decide how emoji and spaces are treated
Keep emoji sequences is enabled by default and preserves U+200D joiners and variation selectors such as U+FE0F. Without them, a family emoji turns into several separate people and text-style symbols lose their emoji presentation. The space option replaces non-breaking and exotic spaces with an ordinary space instead of deleting them, which keeps words from running together.
- 04
Clean, copy or download
Clicking Clean produces the result and reports how many characters were removed. The visible words should be identical; compare the before and after character counts to confirm. Copy puts the cleaned text on the clipboard, and Download saves it as a UTF-8 .txt file with the harmmy prefix. Reloading the page clears everything, because no copy is stored.
When to use it
Text pasted from an AI chat
Answers copied from chat interfaces sometimes carry zero-width or narrow no-break spaces that survive a normal copy and paste. Published on a website or sent in an email, they can break search, word counting and form validation. Pasting the draft here and cleaning it takes a second and makes the text behave like text typed by hand.
The “invalid non-printable character” error
JavaScript and Python both refuse to run a file that contains U+200B or another invisible format character, and the error message often points at a line that looks perfectly fine. Paste the suspicious line or the whole snippet, clean it, and the invisible character is gone. The tool preserves line breaks and tabs, so indentation in code is not destroyed.
Spreadsheet and database matching
Two cells can look identical on screen and still fail a VLOOKUP because one value contains a non-breaking space or a zero-width character. Cleaning both columns and normalising odd spaces makes the match succeed. The same applies to CSV imports, where a hidden byte order mark at the start of the file can rename the first column in ways that break later processing.
Email addresses, URLs and form fields
A zero-width space inside an email address causes a bounce that is hard to explain, and a non-breaking space in a URL turns a working link into a broken one. Cleaning the value before pasting it into a form, a mail client or a CMS avoids a class of bugs that look like server problems but are really invisible characters.
Questions
What are zero-width characters?
They are Unicode code points that occupy no visible width. The best known are the zero-width space U+200B, the non-joiner U+200C, the word joiner U+2060 and the byte order mark U+FEFF. They were designed for line breaking and encoding markers, but in ordinary text they are invisible junk that still counts as a character to every program.
Where do they come from?
Most arrive through copy and paste from PDFs, web pages, chat interfaces and AI answers, or from exporters that add a byte order mark at the start of a UTF-8 file. Some word processors insert soft hyphens when a long word is hyphenated. None of these characters is visible, which is why they are so hard to find by hand.
Will cleaning change the visible text?
No. Only characters in the hidden categories are removed, and odd spaces are replaced one-for-one with a normal space. Letters, digits, punctuation, line breaks and tabs are left exactly as they are. After cleaning, compare the before and after character counts: the difference should equal the number of characters the tool reported.
Does it break emoji?
Not with the default setting. Emoji such as 👨👩👧 are built from several code points joined by U+200D, and symbols such as ❤️ use U+FE0F to request the emoji style. Removing those joiners splits the sequence into separate people or turns the symbol into a plain text glyph. The Keep emoji option leaves both families untouched; untick it only when you know the text contains no emoji.
Why remove directional marks?
Left-to-right and right-to-left marks (U+200E, U+200F, U+061C and the embedding controls) tell a renderer how to order mixed scripts. In a single-language paragraph they usually add nothing and can make a cursor jump or punctuation appear on the wrong side. Removing them is safe when the text has no deliberate bidirectional content; keep them for Arabic or Hebrew documents.
What is a soft hyphen, and should I delete it?
U+00AD marks a place where a word may be hyphenated if the line breaks there; otherwise it is invisible. Copied into plain text, it silently splits words and breaks search. This tool deletes it rather than replacing it with a hyphen, because inserting a visible hyphen would add punctuation that was never in the original word.
What is a BOM and why does it matter?
The byte order mark U+FEFF at the very start of a file tells a reader that the file is UTF-8 or UTF-16. It is useful in a file header but harmful when the text is pasted into a database or a CSV parser, where it can become part of the first field name. This tool removes it wherever it appears, including the start of the text.
Should I keep non-breaking spaces?
In finished web or print layout, a non-breaking space prevents an unwanted line break and is worth keeping. In data, code or text that will be compared, it usually causes trouble. The default option converts it to an ordinary space rather than deleting it, so “10 kg” becomes “10 kg” with a normal space instead of collapsing into “10kg”.
Is my text uploaded or logged?
No. Detection and cleaning run with JavaScript string operations in the current tab. There is no upload request, no server-side copy and no database. The before and after values exist only in page memory and disappear on reload. You can confirm this in the browser's Network panel while cleaning.
After cleaning, my text still does not match. Why?
Not every mismatch is a zero-width character. Cyrillic “а” and Latin “a” look identical but are different code points, curly quotes differ from straight quotes, and accented letters can be stored in composed or decomposed form. Those are separate problems this tool does not solve. If the counters report zero hidden characters, the cause is elsewhere.
Does this remove AI watermarks?
No. It removes invisible formatting characters, which is a different thing from a statistical or provider-side watermark. Some services mark generated text in ways that cannot be removed by deleting characters, and this tool makes no attempt to defeat them. What it does is predictable: it strips known invisible code points and shows you exactly which ones it found.