HIDDEN CHARACTER REMOVAL GUIDE
Invisible Character Remover – Remove Zero-Width Spaces and Hidden Unicode Characters Online Free
Have you ever pasted text that looked perfect but failed a search, broke a script, produced a strange character count or was rejected by a login field? The cause is often an invisible character, a Unicode character that takes up no visible space but is still part of your text. Our invisible character remover finds these hidden characters and removes them in one click. It works as a zero width space remover, a BOM remover, a non-breaking space cleaner and a hidden Unicode character detector in a single free online tool. Paste your text, see exactly which hidden characters were found and where they sit, and copy the cleaned version straight away. There is no signup, no software to install and no limit on how often you use it. Everything runs in your browser, so private notes, code, customer data and drafts never leave your device. Whether you want to remove hidden characters from text copied from a website, clean a CSV before importing it, fix a mysterious "invalid character" error in code, tidy up AI-generated text or simply count characters correctly, this text cleaner gives you clean, predictable text in seconds.
ZW
Zero-Width Character Remover
Remove zero width space (U+200B), zero width joiner, zero width non-joiner, word joiner and the byte order mark (U+FEFF) from any text. These are the hidden characters behind most copy and paste problems, and they are removed instantly without touching your visible words.
NB
Non-Breaking Space Cleaner
Replace non-breaking spaces, thin spaces, em spaces and other special spaces with a normal space. The text looks the same, but search, trimming, splitting and comparison finally behave the way you expect.
U+
Hidden Unicode Detector
See precisely what is hiding in your text. The marker view shows each invisible character in place, and the report lists its Unicode code point, name and count, so you understand the problem instead of guessing.
How to Remove Invisible Characters from Text (Step by Step)
You cannot delete a character you cannot see, which is exactly why invisible characters are so frustrating. The editor in this tool makes them visible and removes them automatically. Follow these simple steps to remove hidden characters from your text.
- Paste your text: Copy the problem text from a web page, document, spreadsheet, chat or code editor and paste it into the Your text box.
- Read the hidden character view: Each hidden character appears as a small label such as ZWSP, NBSP, BOM or SHY, so you can see where it was hiding.
- Choose what to clean: All seven groups are on by default. Untick a group if you want to keep it, for example direction marks in a mixed Arabic and English text.
- Keep Smart mode on for emoji and scripts: Smart mode preserves joiners that belong to emoji and to Urdu, Arabic, Persian and Indic words.
- Copy the clean text: Use Copy or Download .txt. The Characters before and after cards show the difference.
The result updates as you type, so you can toggle each option and watch the cleaned text, the counters and the report change immediately.
What Are Invisible Characters? A Plain-English Explanation
Every letter, digit, space and emoji on a screen is a Unicode character, and Unicode also includes characters that draw nothing at all. Some are format characters that tell software where a line may break, which way text should run or how two characters should join. Others are spaces in unusual widths, or old control codes from the early days of computing. They are useful when used on purpose. A zero width non-joiner, for example, is essential for writing certain Urdu and Persian words correctly, and the zero width joiner is what turns separate emoji into one family or profession emoji.
The trouble starts when these characters travel to places that do not expect them. A website may include a zero width space for line breaking, a PDF may add a soft hyphen, a word processor may use a non-breaking space between a number and a unit, and a text file may start with a byte order mark. When you copy and paste, the character comes along but you cannot see it. The text looks identical, yet to a computer it is a different string.
Common Invisible Characters This Tool Removes
The table below lists the hidden characters that the remover detects, what each one does and how it is handled by default. If you are searching for a specific code point such as U+200B, U+FEFF or U+00A0, you will find it here.
Invisible Unicode characters and how they are handled
| Code point |
Name |
What it does |
Default action |
| U+200B |
Zero Width Space (ZWSP) |
An invisible gap where a line is allowed to break. The most common hidden character found in copied web text. |
Removed |
| U+200C |
Zero Width Non-Joiner (ZWNJ) |
Stops two letters from joining. Needed in Urdu, Persian and some Indic words, so Smart mode keeps it between script letters. |
Removed (smart keep) |
| U+200D |
Zero Width Joiner (ZWJ) |
Joins characters together. It builds emoji sequences such as the family emoji, so Smart mode keeps it inside emoji. |
Removed (smart keep) |
| U+2060 |
Word Joiner (WJ) |
Prevents a line break at its position without showing anything. |
Removed |
| U+FEFF |
Zero Width No-Break Space / BOM |
Byte order mark that often sits at the start of a text file and breaks parsers, CSV headers and scripts. |
Removed |
| U+00AD |
Soft Hyphen (SHY) |
A hyphenation hint that only shows when a word wraps, so it is invisible in most copied text. |
Removed |
| U+00A0 |
No-Break Space (NBSP) |
Looks exactly like a space but is a different character, which breaks searches, comparisons and trimming. |
Replaced with space |
| U+202F |
Narrow No-Break Space |
A thin non-breaking space common in French typography and formatted numbers. |
Replaced with space |
| U+2000 to U+200A |
En space, em space, thin space, hair space and similar |
Typographic spaces of different widths that look like a normal space. |
Replaced with space |
| U+3000 |
Ideographic Space |
A wide space used in Chinese, Japanese and Korean text. |
Replaced with space |
| U+200E, U+200F |
Left-to-Right and Right-to-Left Marks |
Direction marks used to control mixed Arabic, Hebrew and English text. |
Removed |
| U+202A to U+202E, U+2066 to U+2069 |
Bidirectional embeddings, overrides and isolates |
Invisible controls that change how text is ordered. Misused, they can make text or code read differently from how it is stored. |
Removed |
| U+3164, U+2800 |
Hangul Filler and Braille Pattern Blank |
Characters that draw nothing, often used to create blank-looking names and messages. |
Removed |
| U+2028, U+2029 |
Line Separator and Paragraph Separator |
Unusual line break characters that can break JavaScript strings and JSON. |
Replaced with new line |
| U+FE00 to U+FE0F |
Variation Selectors |
Choose a text or emoji style for the previous character. Kept after emoji in Smart mode. |
Removed (smart keep) |
| U+E0000 to U+E007F |
Tag characters |
A hidden block of characters that mirror ASCII text but display nothing. |
Removed |
| U+0000 to U+001F, U+007F, U+0080 to U+009F |
Control characters |
Old terminal and protocol codes. Tab, line feed and carriage return are always kept. |
Removed |
Normal spaces, tabs and line breaks are never removed. The tool only targets characters that are invisible or that imitate a space.
Why Do Invisible Characters Appear in Copied Text?
Hidden characters rarely come from you. They are almost always added by the software that produced the text. Knowing where they come from makes it easier to prevent the problem, or at least to know when to run your text through a cleaner.
- Web pages and CMS editors: Websites insert zero width spaces to control line breaks in long words and URLs, and non-breaking spaces to keep words together.
- PDF files: Text copied from a PDF often contains soft hyphens, odd spaces and broken line characters left over from the page layout.
- Word processors and Google Docs: Microsoft Word, Google Docs and similar apps use non-breaking spaces, soft hyphens and special spaces for typography.
- Spreadsheets and exports: CSV and Excel exports can start with a BOM and may contain non-breaking spaces inside cells.
- Messaging apps and social media: Chat tools and social platforms may add zero width characters when formatting, mentioning or sharing text.
- AI chatbots and generated text: Text copied from an AI chat window can contain non-breaking spaces or other stray Unicode characters along with the visible words.
- OCR and scanning tools: Text recognition software can leave control characters and unusual spaces in the output.
- Blank-name tricks: Characters such as the Hangul filler and Braille blank are used on purpose to create names and messages that look empty.
Problems Caused by Hidden Characters
Invisible characters are small, but the problems they cause are real and often hard to trace, because the text looks perfectly fine. These are the most common symptoms and the situations where a hidden character remover helps most.
Common problems caused by invisible characters
| Where it hurts |
What you notice |
| Text comparison and duplicates |
Two strings that look identical are treated as different, so duplicate checks, lookups and VLOOKUP formulas fail. |
| Login, coupon and code fields |
A copied password, token or voucher is rejected because a hidden character was pasted at the end. |
| Code and scripts |
Errors such as "invalid character", "unexpected token" or "illegal character U+200B" appear on a line that looks perfectly normal. |
| JSON, CSV and database imports |
A hidden BOM or separator breaks headers, produces odd first column names or makes the whole file fail to parse. |
| Word, character and SEO counts |
Character counters, title length checkers and plagiarism tools report numbers that do not match what you see. |
| Search and find and replace |
Ctrl+F cannot find a word that is clearly on the page because an invisible character sits inside it. |
| URLs, emails and usernames |
Links, addresses and names fail validation or point to the wrong place because of a stray character. |
Smart Mode: Protecting Emoji and Urdu, Arabic, Persian and Indic Text
Not every zero-width character is junk. A simple "delete all invisible characters" approach can quietly damage text that is written correctly. The zero width joiner is what combines a person, a heart and a skin tone into a single emoji, and removing it splits the emoji into separate icons. The zero width non-joiner controls how letters connect in Urdu, Arabic and Persian, and it appears in many Indic scripts too. Removing it can change how a word looks or even how it is read.
That is why Smart mode is switched on by default. In Smart mode, the tool keeps a joiner when it sits inside an emoji sequence or between letters of a script that relies on it, and it keeps variation selectors that follow an emoji. Every other zero-width character is still removed. If you need a strict clean for something like a username, a code identifier or a plain-ASCII field, switch Smart mode off and every joiner is removed.
Invisible Characters and Security
Hidden characters are also a security topic. Bidirectional control characters can change how text is displayed without changing what is stored, an issue known as Trojan Source when it affects source code, where code can look different to a reviewer than it does to a compiler. Tag characters, a hidden Unicode block that mirrors ASCII letters while displaying nothing, have been discussed as a way of hiding instructions inside text that people cannot see. Look-alike spaces and filler characters can also make fake usernames, links or file names look legitimate.
Running untrusted text, code snippets, prompts and copied commands through an invisible character remover is a quick way to make hidden content visible. The marker view shows which characters were present, which is often the fastest way to confirm that nothing unexpected was hiding in a piece of text.
How to Find and Remove Hidden Characters in Other Apps
If you prefer to fix a single problem inside the application you are using, these are common approaches. For anything bigger, or when you are not sure what is hiding in the text, paste it into the tool above.
- Excel and Google Sheets: Use
=SUBSTITUTE(A1,UNICHAR(8203),"") to remove a zero width space, and =SUBSTITUTE(A1,UNICHAR(160)," ") to turn a non-breaking space into a normal space. =LEN(A1) compared with the visible length hints at hidden characters.
- JavaScript:
text.replace(/[\u200B-\u200D\u2060\uFEFF]/g, "") removes the most common zero-width characters.
- Python:
re.sub("[\u200b-\u200d\u2060\ufeff]", "", text) does the same job with the re module.
- VS Code and Notepad++: Turn on the option to render or highlight unusual and invisible Unicode characters, then search for the character that is flagged.
- Word: Show formatting marks to reveal non-breaking spaces and optional hyphens, then use Find and Replace.
These methods each handle a few characters at a time. The invisible character remover above checks the full set of common hidden characters in one pass, and shows you a report as well.
Who Uses an Invisible Character Remover?
- Developers and QA testers: Fix stray BOM, zero-width and control characters that cause parse errors, failing tests and unexpected tokens.
- SEO specialists and content writers: Clean copied articles, meta titles and descriptions so character counts, keyword matching and publishing tools behave correctly.
- Data analysts and spreadsheet users: Remove non-breaking spaces and hidden characters before lookups, de-duplication and imports.
- Students and teachers: Tidy up text copied from PDFs, e-books and websites before editing or submitting work.
- Support and community teams: Clean order numbers, usernames, coupons and codes that customers paste into forms.
- Social media users: Remove strange characters from captions, bios and messages that were copied between apps.
- Security-conscious users: Inspect copied commands, prompts and links for hidden direction marks and tag characters.
Tips for the Best Results
- Clean before you count or compare: Run text through the remover before checking length, duplicates or keyword density.
- Leave Smart mode on for normal writing: Switch it off only when a field must be plain, such as a username, an ID or a code.
- Use the report to find the source: If the same character appears every time, the app you copy from is adding it.
- Keep direction marks for mixed-language text: Turn off the Direction marks group if your text needs them for correct Arabic or Hebrew display.
- Use the optional trim and collapse settings: Trailing spaces and double spaces are not invisible characters, but they often travel with them, so cleaning both gives tidier text.
- Keep the original: Save the unedited text if you need to compare before and after.
Remove Invisible Characters on Mobile, Windows, Mac and Linux
The invisible character remover runs in any modern web browser, so you can use it on Android, iPhone, iPad, Windows, macOS and Linux without installing anything. This is helpful when you copy text on your phone, such as a code from an app or a message from a chat, and need to clean it before pasting it somewhere else. Because the processing happens on your own device, it is fast on slow networks and keeps sensitive text private.
Free Hidden Character Remover: Fast, Private and Easy to Use
Our free invisible character remover is built to make Unicode clean-up simple. It combines a zero width space remover, a non-breaking space cleaner, a BOM remover and a hidden character detector in one page, with clear options and a report that explains what was found. Paste your text, check the result and copy it where you need it. If you work with text often, explore the other free text tools on our site to count words, change letter case, remove duplicate lines and more.