Skip to content

Invisible Character Remover

Find and remove zero-width spaces, BOM, soft hyphens and other hidden characters from your text. Fast, free and no signup.

  • 100% free
  • No Signup
  • Runs in your browser

Your text

Tip: paste first, then adjust the settings below. The result updates live.

Clean text

Waiting for text…

What to clean
Extra options
0Characters before
0Characters after
0Hidden characters fixed
0Types found

Hidden character view

Every hidden character is shown as a labeled marker. Red = fixed, green = kept, grey = left alone because that group is switched off.

Paste text to see where hidden characters are.

Detection report

No hidden characters yet.

Your Privacy Matters

This tool works inside your browser. Your text is never uploaded, saved or stored.

ADVERTISEMENT
Demo Ad 728 x 90

How to remove invisible characters

  1. 1

    Paste

    Paste the text that behaves strangely into the editor.

  2. 2

    Review

    See every hidden character marked in the view and listed in the report.

  3. 3

    Copy clean text

    Copy the cleaned result or download it as a TXT file.

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.

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.

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.

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.

  1. 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.
  2. 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.
  3. 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.
  4. Keep Smart mode on for emoji and scripts: Smart mode preserves joiners that belong to emoji and to Urdu, Arabic, Persian and Indic words.
  5. 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 or Replace? How Each Character Type Is Cleaned

Cleaning action by category
CategoryActionWhy
Zero-width and soft hyphenRemovedThey add no visible text
Special spacesReplaced with a normal spaceKeeps words separated
Line and paragraph separatorsReplaced with a new lineKeeps the break
Blank fillersRemovedThey look empty but count as characters
Variation selectors and tag charactersRemoved unless protectedSome selectors control emoji appearance

Smart mode protects joiners and variation selectors in recognised situations. It does not protect tag characters. Emoji flags for regions such as England, Scotland and Wales are built with tags, so turn off the variation selectors and tag characters option if your text contains them.

Using the Detection Report Before You Copy

The marked view places a short label where each hidden character sits, and the report shows what happened to each type: removed, replaced, kept or partly kept. Kept or partly kept can appear when Smart mode preserves a meaningful joiner. The marked preview covers the first 20,000 characters of long text, while cleaning applies to the whole input.

Read the report when a clean result still behaves strangely. The cause might be visible punctuation, a look-alike letter from another alphabet or a formatting rule in the receiving application.

Optional Whitespace Cleanup Settings

Extra cleanup options
OptionWhat it doesLeave it off when
Trim trailing spacesRemoves spaces at line endsYour format uses line ending spaces
Collapse repeated spacesTurns double spaces between words into oneYou align code, tables or poems with spaces

Both options are off at first, so removing hidden Unicode characters does not also reshape your visible spacing unless you ask.

Prevent Hidden Characters in Future Work

  • Paste as plain text: This removes much rich formatting, although invisible Unicode characters can still remain.
  • Clean before importing: Check text before it goes into code, forms, databases or spreadsheets.
  • Show invisibles in your editor: Many editors can highlight unusual spaces and characters.
  • Add an import check: Developers can validate input where hidden characters would cause errors.
  • Keep meaningful marks: Do not strip every Unicode format character from multilingual content without review.

After cleaning, compare versions with the text diff checker, or clean repeated rows with remove duplicate lines. Common searches include zero width space remover, remove hidden characters from text and Unicode text cleaner.

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.

ADVERTISEMENT
Demo Ad 300 x 250
COMMON QUESTIONS

Invisible Character Remover FAQ

Quick answers about hidden characters, zero-width spaces, emoji safety and using the cleaner.

How do I remove invisible characters from text online?

Paste your text into the input box and the tool cleans it instantly. Zero-width spaces, BOM, soft hyphens, direction marks, filler characters and similar hidden characters are removed, and non-breaking and other special spaces are replaced with normal spaces. Check the detection report if you want to see exactly what was found, then copy the clean text or download it as a TXT file. It is free and needs no signup.

What are zero-width characters and why are they in my text?

Zero-width characters are Unicode characters that take no visible space, such as the zero width space (U+200B), the word joiner (U+2060) and the byte order mark (U+FEFF). They usually arrive through copy and paste from websites, PDFs, Word documents, spreadsheets, chat apps, content management systems and AI chatbots. They are meant for line breaking, text direction and encoding, but when they end up in the wrong place they break searches, code and comparisons.

Will it damage emoji or Urdu, Arabic and Persian text?

No, as long as Smart mode is on, which is the default. Zero width joiners inside emoji sequences, variation selectors after emoji and the zero width non-joiner between Urdu, Arabic, Persian or Indic letters are kept because they are part of the text. Switch Smart mode off only if you want every joiner removed, including those used in real emoji and scripts.

What is the difference between removing and replacing hidden characters?

Truly invisible characters, such as the zero width space or soft hyphen, are removed completely. Characters that act like spaces, such as the non-breaking space, thin space and ideographic space, are replaced with a normal space so words do not run together. Line and paragraph separators become a normal new line. You can turn each group on or off separately.

Can it clean hidden characters from ChatGPT or other AI-generated text?

Yes, it removes any of the invisible Unicode characters listed above wherever they appear, including text copied from AI chatbots, which sometimes contains non-breaking spaces or other stray characters. It cannot promise to remove other kinds of marks, and clean text does not change who or what wrote it. Use the detection report to see exactly what your text contained.

How can I tell whether my text contains hidden characters?

Open the detection report under the editor. The hidden character view shows every invisible character as a small labeled marker, such as ZWSP or NBSP, right where it sits in your text, and the table lists each character with its Unicode code point, name and how many times it was found. If nothing is found, the tool tells you that your text is already clean.

Is my text private, and does it work with long documents?

Your text is processed entirely inside your browser and is never uploaded, stored or sent to a server. It handles long documents well, because the cleaning runs locally, although the marker preview is limited to the first part of very long text so the page stays fast. The cleaned output always covers your full text.

ADVERTISEMENT
Demo Ad 320 x 50

Explore All Text Tools

Clean hidden characters, convert text case, remove duplicate lines or compare two texts in seconds. Explore free text tools to write, edit and check all your content in one place.

Explore All Text Tools →