Empty Space Character: How to Identify Blank and Invisible Unicode Characters
What an empty space character really is, which Unicode code points look blank, how to identify them, and when invisible characters cause copy, search or accessibility problems.
An "empty space character" is usually not empty. It is a real character with its own code point, stored in the text like any letter. It just draws nothing visible, or only a gap. People look for these characters to make a blank username or message, to hold space in a layout, or to find out why two strings that look identical do not match. This review explains what these characters change, how to identify them, and when ordinary text is the better choice.
Short verdict: is an invisible character suitable for your use?
Invisible and blank characters are suitable when a standard defines their behavior and the destination respects it. Examples include a no-break space that keeps a number with its unit, a zero-width joiner inside an emoji sequence, or a zero-width space that marks a line-break opportunity. In those cases the character carries a defined meaning. They are a poor fit when they are used to look like nothing, such as a blank name, a fake empty field, or hidden padding. The appearance depends on the font and the platform, and search tools, screen readers and validation code all handle the character as real data. Use plain text, ordinary spaces or real layout controls whenever the goal is only visual spacing or an empty-looking value.
What an empty or invisible character actually changes
Inserting one of these characters changes the stored text, not just how it is displayed. The string becomes longer by at least one code point, and in UTF-8 most of these characters take two or three bytes. Comparisons, character counts, sorting and search all see the extra code point even when the reader sees nothing. This is the key difference from visual presentation. CSS spacing, padding or text-indent create a gap on screen without adding anything to the text, so copying the text does not carry the gap with it.
The characters fall into a few groups that behave differently:
- Space separators (Unicode category Zs): characters such as the ordinary space, the no-break space and the fixed-width spaces from U+2000 to U+200A. They render as a visible gap of some width.
- Format characters (category Cf): zero-width space, zero-width joiner and non-joiner, word joiner, the byte order mark, soft hyphen and the bidirectional controls. They normally have no width and influence line breaking, joining or text direction.
- Visible-category characters that look blank: the Hangul filler (U+3164 and U+115F) and the braille blank pattern (U+2800). Unicode classifies these as letters or symbols, not spaces. Some systems that strip or reject whitespace leave them alone, which is why they are often used to fake an empty name.
- Control characters: the ASCII range 0x00 to 0x1F and 0x7F (DEL), including tab, line feed, carriage return and NUL. They are not meant to be displayed, and many systems strip or reject them.
Is there an empty ASCII character?
ASCII has only one printable blank, the space (0x20). Its other invisible bytes are control codes such as tab (0x09), line feed (0x0A) and NUL (0x00). None of these works as an "empty character" in normal text, because they either produce ordinary whitespace or are treated as control data. Every zero-width or special blank character lies outside ASCII and needs Unicode support at the destination.
List of common invisible and blank Unicode characters
| Code point | Name | Category | Typical appearance | Common legitimate use |
| U+0020 | SPACE | Zs | Normal gap | Word separation |
| U+00A0 | NO-BREAK SPACE | Zs | Normal gap, no line break | Keeping values and units together |
| U+2000–U+200A | EN QUAD through HAIR SPACE | Zs | Gaps of fixed widths | Typographic spacing |
| U+202F | NARROW NO-BREAK SPACE | Zs | Narrow gap, no line break | Number and unit formatting in some locales |
| U+205F | MEDIUM MATHEMATICAL SPACE | Zs | Medium gap | Mathematical formulas |
| U+3000 | IDEOGRAPHIC SPACE | Zs | Full-width gap | CJK text |
| U+200B | ZERO WIDTH SPACE | Cf | Nothing | Marking a line-break opportunity |
| U+200C | ZERO WIDTH NON-JOINER | Cf | Nothing | Preventing joining in scripts such as Persian |
| U+200D | ZERO WIDTH JOINER | Cf | Nothing | Joining emoji sequences and script ligatures |
| U+2060 | WORD JOINER | Cf | Nothing | Preventing a line break |
| U+FEFF | ZERO WIDTH NO-BREAK SPACE / BYTE ORDER MARK | Cf | Nothing | Byte order mark at the start of a file |
| U+00AD | SOFT HYPHEN | Cf | Nothing, or a hyphen at a line break | Optional hyphenation |
| U+200E / U+200F | LEFT-TO-RIGHT / RIGHT-TO-LEFT MARK | Cf | Nothing | Fixing bidirectional text direction |
| U+180E | MONGOLIAN VOWEL SEPARATOR | Cf | Nothing in most contexts | Mongolian text |
| U+3164 | HANGUL FILLER | Lo | Blank, width depends on font | Legacy Korean encoding |
| U+2800 | BRAILLE PATTERN BLANK | So | Blank braille cell | Braille content |
The appearance column describes typical rendering only. A font that lacks a glyph may show a box, a question mark or a visible placeholder. Some editors display zero-width characters as marks on purpose so that writers can see them.
How to identify an invisible character
The reliable way to identify an invisible character is to list the code points instead of trusting the screen. Unicode inspector tools do this by showing each character's code point, name and category. A short script does the same. This Python example uses only the standard library:
import unicodedata
text = "a\u200bb\u00a0c"
for ch in text:
print(f"U+{ord(ch):04X} {unicodedata.category(ch)} {unicodedata.name(ch, '<unnamed>')}")
U+0061 Ll LATIN SMALL LETTER A
U+200B Cf ZERO WIDTH SPACE
U+0062 Ll LATIN SMALL LETTER B
U+00A0 Zs NO-BREAK SPACE
U+0063 Lc LATIN SMALL LETTER C
Correction to the output above: the last line reports category Ll, not Lc, because "c" is a lowercase letter like "a" and "b". The printed text "a b c" looks like three letters with one space, but the code-point listing reveals five characters, one of them zero-width. Checking the length of a string or viewing it as hexadecimal works on the same principle. If the count is higher than the number of visible characters, something invisible is present.
Will the result stay readable and usable after copying or sharing?
Copying usually preserves these characters, because to the clipboard they are ordinary text. What happens next depends on the destination, and no specific apps, websites or screen readers were tested for this article, so the points below describe general mechanisms rather than verified behavior on any named platform.
- Stripping and rejection: input fields, messaging services and content systems may remove, replace or refuse whitespace, control characters or default-ignorable characters. A trick that works in one place can disappear or be blocked in another.
- Search and matching: a zero-width character inside a word stops exact matches, so the word may not show up in search, filtering or find-and-replace. This also lets look-alike usernames or keywords slip past simple filters, which is one reason platforms clean them out.
- Editing: invisible characters are easy to delete by accident and hard to remove on purpose. The cursor can seem to stall at a position that looks empty, and pasted code or data can fail to parse because of a hidden byte order mark or no-break space.
- Accessibility: assistive technology works with the stored characters, not the visual result. A screen reader may skip a character, pause, or announce it by name or as "blank", depending on the software and its settings. A name or message built only from blank characters gives the listener no useful information. Behavior of specific screen readers could not be confirmed from the available evidence.
- Reading order: bidirectional controls such as U+200F or U+202E can reorder how surrounding text is displayed while the stored order stays the same. The displayed text and the text that search, copying or a screen reader handles can then differ. In source code, the same mechanism has been used to make code look different from what a compiler actually processes.
- Emoji and scripts: removing or splitting a zero-width joiner breaks emoji sequences into separate pictures and can change how scripts such as Arabic or Indic scripts join. Any tool that reverses or trims text by code point can damage these sequences.
A plain-text equivalent is needed whenever the content has to be searchable, readable aloud, or reliably editable by someone else. In practice, that means using an ordinary space or no character at all, and using CSS or layout settings when the only goal is visible spacing.
When to use an invisible character, and when not to
- Reasonable: a no-break space or narrow no-break space in typography, a zero-width joiner or non-joiner where a script or emoji sequence needs it, a word joiner or zero-width space to control line breaking in long strings, directional marks to fix mixed left-to-right and right-to-left text.
- Risky: blank-looking names, empty-looking messages, hidden padding in form fields, invisible separators meant to get around filters. These depend on behavior the destination can change at any time, and they reduce accessibility.
- Prefer plain text: anything that must be searched, translated, read by assistive technology, parsed by software or maintained by other people.
Evidence gaps
This overview relies on documented Unicode properties and general text-processing behavior. No test results were available for particular social networks, messaging apps, games, browsers or screen readers, so it does not say which of them accept, strip or announce specific characters. To rely on an invisible character in a particular place, test it there with the exact code point, then check copying, searching and screen-reader output in that same environment.