Invisible Unicode Characters: Codes and How to Type Them

A practical guide to invisible Unicode characters: what they are, their code points and UTF-8 bytes, how to enter them, and when they break copying, search or accessibility.

"Invisible" Unicode characters are real characters stored in text that produce no visible mark, or only blank space. People use them to create blank usernames, prevent line breaks, control how emoji and scripts join, or adjust text direction. The same characters also cause hard-to-find bugs in code, search and data. This guide explains what each common character does, gives its codes, shows how to enter it, and helps you decide whether inserting one suits your purpose.

Is an invisible character suitable for your use?

Use an invisible character when you need a specific documented behavior that plain text cannot give you, such as a non-breaking space between a number and its unit, a zero-width joiner inside an emoji sequence, or a direction mark that fixes the display of mixed right-to-left and left-to-right text. In those cases the character is doing the job Unicode designed it for, and most modern software handles it as intended.

The decisive tradeoff is that the character is still present even though nobody can see it. It travels through copy and paste, changes string length and comparison results, and can affect search, sorting, passwords, filenames and source code. Readers and editors cannot tell it is there without an inspection tool.

Prefer plain text when the goal is cosmetic, such as a "blank" name or fake empty message, when the text will be searched, compared, parsed or compiled, or when you cannot test the destination where the text will be read. Many platforms filter or normalize these characters, and filtering rules differ from service to service. No platform-specific test results were available for this article, so treat any claim that a given character "works" in a named app as unverified until you check it yourself.

What inserting an invisible character actually changes

Inserting one of these characters changes the stored text. It is not a font, a style, or a visual effect. That distinguishes it from three things that are often confused with it.

  • CSS or app-level hiding: text styled as transparent, zero-size or display: none is hidden only in that page or app. The characters themselves are ordinary, and they reappear when copied elsewhere.
  • Unicode "fonts" and styled letters: generators that produce bold, script or upside-down letters substitute different visible characters. Invisible characters instead add code points with no glyph or a blank glyph.
  • Bidirectional display: direction controls such as U+202E change the order in which characters are displayed but not the order in which they are stored. This is the one case where an invisible character produces a visible change in other text, which is why it matters for security.

Example of display versus storage: the stored sequence below contains a right-to-left override before "txt.exe". A renderer that honors bidirectional controls displays the name as "fileexe.txt", but the stored name still ends in ".exe".

Stored:    f i l e [U+202E] t x t . e x e
Displayed: fileexe.txt

The same mechanism, applied to source code, was described in 2021 security research under the name "Trojan Source": code can look harmless on screen while compiling to something different. Many editors and code-hosting tools now warn about bidirectional control characters for this reason.

Common invisible and blank characters: codes and properties

The table lists frequently used characters with their code point, UTF-8 byte sequence, HTML reference, and Unicode general category. Category Cf means a format character that normally has no glyph. Zs means a space separator. Lo and So mean the character is formally a letter or symbol that happens to display as blank.

Character | Code point | UTF-8 bytes | HTML | Category | Typical purpose
Zero width space | U+200B | E2 80 8B | ​ | Cf | Marks a permitted line break with no visible space
Zero width non-joiner | U+200C | E2 80 8C | ‌ | Cf | Prevents letters from joining in scripts such as Arabic or Persian
Zero width joiner | U+200D | E2 80 8D | ‍ | Cf | Joins characters, including multi-part emoji sequences
Word joiner | U+2060 | E2 81 A0 | ⁠ | Cf | Prevents a line break without adding space
Zero width no-break space / byte order mark | U+FEFF | EF BB BF |  | Cf | Byte order mark at file start; deprecated as a joiner in favor of U+2060
Soft hyphen | U+00AD | C2 AD | ­ | Cf | Invisible unless a line breaks at that point, where a hyphen appears
Left-to-right mark | U+200E | E2 80 8E | ‎ | Cf | Influences direction of neighboring neutral characters
Right-to-left mark | U+200F | E2 80 8F | ‏ | Cf | Same, for right-to-left context
Right-to-left override | U+202E | E2 80 AE | ‮ | Cf | Forces right-to-left display order
No-break space | U+00A0 | C2 A0 |   | Zs | Visible-width space that prevents a line break
Ideographic space | U+3000 | E3 80 80 |   | Zs | Full-width space used in CJK text
Hangul filler | U+3164 | E3 85 A4 | ㅤ | Lo | Placeholder in Korean encoding; often used as a "blank letter"
Hangul choseong filler | U+115F | E1 85 9F | ᅟ | Lo | Placeholder in Korean syllable composition
Braille pattern blank | U+2800 | E2 A0 80 | ⠀ | So | Empty braille cell; displays as blank space

Several of these, including U+200B, U+200C, U+200D, U+2060, U+FEFF, U+00AD, U+3164 and U+115F, carry the Unicode property Default_Ignorable_Code_Point. Software that does not support them is expected to display nothing, and some systems strip them entirely. U+2800 and the space characters are not default-ignorable, so they usually occupy visible width. That difference is why people looking for a "blank letter" tend to try Hangul filler or the braille blank rather than a zero-width space: those are classed as letters or symbols, so input fields that reject whitespace may accept them. Whether a particular service accepts them is a policy decision by that service and can change.

Is there an invisible ASCII code?

Not in the sense most people mean. ASCII has one printable blank character, the ordinary space (decimal 32, hex 20). Codes 0 to 31 and 127 are control characters such as tab, line feed and null. They are non-printing, but they are not designed as invisible text, and many systems reject or strip them. Every character in the table above is outside ASCII and needs a Unicode encoding such as UTF-8 to be stored. A search for an "invisible character ASCII code" almost always needs one of the Unicode characters instead.

How to type or insert invisible characters

Methods depend on the operating system and application. The ones below are documented features, but individual apps may intercept the key combinations.

  • Windows Alt codes: with Num Lock on, hold Alt and type 0160 on the numeric keypad to insert a no-break space in most applications. Alt codes only reach characters in the active legacy code page, so zero-width characters generally cannot be typed this way.
  • Microsoft Word: type the hex code, for example 200B, then press Alt+X to convert it into the character. Pressing Alt+X again converts it back to the code.
  • macOS: enable the Unicode Hex Input keyboard source, then hold Option and type the four-digit hex code.
  • Linux with GTK or IBus input: press Ctrl+Shift+U, type the hex code, then press Space or Enter.
  • HTML: use a numeric reference such as ​ or ​, or a named entity where one exists, such as  , ‌ or ‍.
  • Programming languages: use escapes such as "\u200B" in JavaScript, Java, C# and Python strings, or "\200B" inside a CSS content value.
  • Copying: copying from a character reference page or character map works, but you cannot visually confirm what was copied. Verify it with an inspector before relying on it.

Will the text stay usable after copying or sharing?

Copy and paste usually preserves these characters, because they are ordinary code points. That is both the benefit and the risk. Several things can happen at the destination, and the outcome varies by environment.

  • Stripping or normalization: a site may remove default-ignorable characters, convert no-break spaces to regular spaces, or trim leading and trailing blanks. A "blank" name can then become empty and be rejected.
  • Search and matching: a word containing a zero-width space no longer matches the same word without it. Search, find-and-replace, spell-checking, deduplication and login comparisons can all fail silently.
  • Editing: cursor movement and deletion can feel wrong, for example needing an extra keypress to delete something you cannot see.
  • Code and data: an invisible character in source code, a configuration key, a CSV header or a URL can cause syntax errors or mismatched identifiers that look correct on screen. A byte order mark at the start of a file can break scripts or parsers that do not expect it.
  • Reading order: direction marks and overrides change how surrounding text is displayed. Misplaced ones can scramble punctuation and numbers in mixed-direction text.

Accessibility is the least predictable area. Screen readers may skip format characters, announce them, or read a character such as U+2800 according to its braille meaning, depending on the screen reader, its verbosity settings and the application. No scoped tests of specific assistive technologies were available for this article, so no particular behavior can be stated here. In practice, anything a screen reader user will encounter, such as display names, alt text, labels or messages, should not rely on invisible characters to carry or hide meaning. Provide a plain-text equivalent wherever the content needs to be understood rather than merely laid out.

How to find invisible characters in existing text

Because these characters are invisible by definition, detection requires a tool that shows code points. Options include a Unicode inspector that lists every character in pasted text, a hex viewer, an editor setting that reveals whitespace and control characters, or a short script. The Python snippet below prints each character's code point and Unicode name, which makes hidden characters obvious.

import unicodedata

text = "invisible\u200bunicode"
for ch in text:
    print(f"U+{ord(ch):04X}", unicodedata.name(ch, "<no name>"))

In this example, the output includes a line reading U+200B ZERO WIDTH SPACE between the two words. On the command line, a Perl-compatible pattern such as [\x{200B}-\x{200F}\x{2060}\x{FEFF}] with a grep tool that supports it can flag the most common zero-width and direction characters in files. Extend the range if you also need to catch fillers and bidirectional overrides.

Bottom line

Invisible Unicode characters are reliable when used for their intended typographic purpose: no-break spaces, joiners in emoji and complex scripts, and direction marks in mixed-language text. They are fragile when used as tricks, such as blank names, hidden text or fake empty messages, because each destination decides whether to keep, strip or reject them. They become a liability anywhere text is searched, compared or executed. If you cannot test the specific destination and inspect the result at the code-point level, plain text is the safer choice.