UNICODE

What Is a Zero-Width Space?

The zero-width space is an invisible Unicode character used to mark possible line-break opportunities. It can be useful in some writing systems and surprising in copied text.

01

U+200B is a real character

ZERO WIDTH SPACE has the code point U+200B. It occupies a position in the character stream even though it normally has no visible width.

Its intended purpose is to provide a word-boundary or line-break opportunity where visible spacing is not appropriate.

02

It can arrive through copying

Web pages, rich-text editors, PDF extraction and content-management systems may introduce U+200B. It can also be inserted intentionally for language support or formatting behavior.

In search, validation, usernames or source code, an unexpected occurrence can cause two strings that look identical to compare differently.

03

How to inspect it

Use a code-point-aware inspector rather than relying on visual selection alone.

  • Preserve the original text.
  • Locate each U+200B occurrence.
  • Review the surrounding words and destination requirements.
  • Remove it only when it is unwanted.
04

Context determines the right action

Deleting every zero-width space may damage legitimate language behavior. Leaving accidental characters in identifiers or structured data may also cause errors.

The safest workflow makes the invisible layer visible and keeps the final decision with the user.

REF

Further reading

Primary references used to keep this guide grounded.