Zero Width Non-Joiner (U+200C)

Zero Width Non-Joiner is a format character that stops two letters from joining, without putting a space between them.

Updated By Milind Sahu How we test

Copy tool
U+200C, 3 bytes

U+200CCf · formatzero width

Need the code?HTML, CSS, JS escapesFind it in text

How we test

An app result is shown only after a hand test on a named app version, with the date. Results older than 120 days are hidden until re-tested.

Read the method →

What is the Zero Width Non-Joiner used for?

The Zero Width Non-Joiner (U+200C) is used to stop two letters from joining without putting a space between them. In cursive scripts such as Persian and Urdu, some words need that explicit break in the joining of letters, and ZWNJ provides it. It draws nothing, has no width and is not whitespace.

Commonly abbreviated ZWNJ, it is in the General Punctuation block and has been in Unicode since 1.1. Unicode gives it the Join_Control property, which only it and the zero width joiner have.

Its main job is in cursive scripts. The W3C layout requirements for Arabic and Persian note that languages like Persian and Urdu have words that need explicit breaks in the joining of letters, and ZWNJ is that break.

It is category Cf, Default Ignorable and not whitespace, so it draws nothing and trim() keeps it. Unicode also marks it Grapheme_Extend, so it stays attached to the character before it.

Its line break class is CM, the class for combining marks, so a line does not break right before it.

Watch out for

  • Removing ZWNJ from Persian text changes how words are drawn, so a remove-all clean-up can damage real text.
  • In HTML write it as ‌ or ‌.
  • In UTF-8 it takes 3 bytes (E2 80 8C).

Sources: Unicode names list (NamesList.txt) · W3C Arabic and Persian layout requirements · Unicode derived properties (DerivedCoreProperties.txt) · Unicode properties (PropList.txt) · Unicode blocks (Blocks.txt) · Unicode version each character arrived (DerivedAge.txt) · Unicode character data (UnicodeData.txt) · ECMAScript: white space · Unicode line breaking (UAX #14) · Computed from the character itself (see Codes and escapes)

Codes and escapes

FormatValueCopy
HTML entity ‌ · ‌
CSS \200C
JavaScript / Java \u200C
Python \u200C
URL-encoded %E2%80%8C
UTF-8 bytes E2 80 8C

Properties

Unicode category
Cf (Format)
Treated as whitespace
No
Width
Zero
Unicode name
ZERO WIDTH NON-JOINER

Where it works

Not tested yet. Results appear here with the app version and date once each app is tested by hand.

Similar characters

Back to all 13 invisible characters

FAQ

How do I type a zero width non-joiner?

To type a zero width non-joiner, copy it from the tool above, or use a keyboard layout for a language that needs it, such as Persian. In HTML write ‌ or ‌, and in JavaScript \u200C. It takes 3 bytes in UTF-8: E2 80 8C.

Should I remove zero width non-joiners from text?

You should only remove zero width non-joiners when the text doesn't need them. In Persian, Urdu and other cursive scripts they control how letters join, so deleting them changes how words are drawn. In other text they are usually stray copies, and the detector can remove them.

What is the difference between ZWNJ and ZWJ?

The main difference between ZWNJ and ZWJ is direction: the zero width non-joiner stops neighboring characters from joining, while the zero width joiner asks them to join. They are the only two characters with Unicode's Join_Control property, and both are invisible format characters with no width.