formersi
U+200BZWS

U+200B · General Punctuation

Zero width space: how to type this invisible character

Copy it with one click. It has no Alt code or Option-key shortcut; Word’s Alt + X and the codes below work everywhere.

  • WindowsNo Alt code. Use Word’s Alt + X, Character Map, or copy it here.
  • MacCtrl+⌘ Cmd+Space Character Viewer, then search
  • Word200BthenAlt+X
  • iPhoneNo long-press for it. Copy it here.
  • HTML​ or ​
Code point
U+200B
decimal 8203
Windows
None
not in code page 437/1252
Mac
None
use the Character Viewer
Added
Unicode 1.1
Format character

Every way to type it

Only methods that exist on that system are shown as shortcuts.

Windows no Alt code

There is no Alt code for this character. Open Character Map (charmap), tick Advanced view, search “zero width space”, then Select and Copy. Or use Word’s Alt + X below.

Mac Character Viewer

Ctrl+⌘ Cmd+Space

No Option-key shortcut exists on the U.S. layout. In the Character Viewer, search “zero width space” and double-click it.

Microsoft Word Alt + X

200BthenAlt+X

Type 200B, then press Alt + X (Word for Windows).

Google Docs menu

Insert › Special characters, then search “zero width space”, or paste it from here.

iPhone and iPad copy

Not on a long-press of the default keyboard. Copy it here, or add a Text Replacement (Settings › General › Keyboard › Text Replacement).

Android symbol pages

Gboard keeps many common symbols on its symbol pages (tap ?123, then =\<). If it is not there, copy it here, or save it in Gboard’s Personal dictionary with a shortcut.

Linux Unicode input

Ctrl+Shift+Uthen200bthenEnter

GNOME and most GTK apps (IBus).

Chromebook Unicode input

Ctrl+Shift+Uthen200bthenEnter

Type the code after the underlined u appears.

How zero width space is stored in UTF-8

3 bytes (24 bits) for 1 code point

length and continuation bitsbits of the code point
Computed from U+200B with the UTF-8 rules of RFC 3629. Same bytes as text: see “Codes” below.

Codes

For HTML, CSS, JavaScript, JSON, Python and URLs.

HTML entity&ZeroWidthSpace;
UnicodeU+200B
HTML decimal&#8203;
HTML hex&#x200B;
CSS content\200B
JavaScript\u200B
JSON\u200b
Python\u200b
UTF-8 bytesE2 80 8B
UTF-16200B
URL encoded%E2%80%8B
Python name\N{ZERO WIDTH SPACE}

From the Unicode Standard

Names, aliases and notes from the Unicode 13.0 names list.

  • Unicode name ZERO WIDTH SPACE
  • Category Format character (Cf)
  • Block General Punctuation
  • Note commonly abbreviated ZWSP
  • Note this character is intended for invisible word separation and for line break control; it has no width, but its presence between two characters does not prevent increased letter spacing in justification

Related symbols

Look-alikes named in the Unicode notes first, then neighbours in the same block.

SymbolNameCodeAlt code
ZWNZero width non-joinerU+200C–
HSHair spaceU+200A–
ZWJZero width joinerU+200D–
TSThin spaceU+2009–
WJWord joinerU+2060–
ESEm spaceU+2003–

Questions

Is there an Alt code for zero width space?

No. Zero width space (U+200B) is not in code page 437 or 1252, so Alt + numpad codes cannot type it. In Word type 200B and press Alt + X, or copy it from this page.

How do I type zero width space on a Mac?

Character Viewer: press Ctrl + Cmd + Space and search its name, because no Option-key shortcut exists.

What is the HTML code for zero width space?

Use &ZeroWidthSpace; or &#8203; (decimal) or &#x200B; (hex).

Sources: Unicode Character Database 13.0 and Unicode emoji 13.0 (Unicode, Inc.); Alt codes computed from code pages 437 and 1252; Mac keys from the Apple U.S. keyboard layout. How this page is made.