Half-Space Unicode Character Identification
Which Unicode character is a "half space"? How to tell the Persian half-space (ZWNJ) from thin, en and narrow no-break spaces, and when a plain space is safer.
"Half space" is not the name of a single Unicode character. The phrase points to different characters depending on who uses it. A Persian or Urdu writer usually means the zero width non-joiner. A typographer may mean a thin or en space. Someone working with Chinese, Japanese or Korean text may mean the ordinary halfwidth space as opposed to the fullwidth ideographic space. Identifying which one you have, or which one you need, decides whether the text keeps its meaning and stays usable after it is copied, searched or shared.
Which character people mean by a half space
The characters below are the usual candidates. Their names and code points are fixed by the Unicode Standard. Their visible widths are not. The font decides most of them, and the em fractions shown are the conventional values in the character names or Unicode's descriptions.
| Code point | Unicode name | Typical meaning of "half space" | Line break allowed? |
| U+200C | ZERO WIDTH NON-JOINER | Persian/Urdu nim-fasele: keeps word parts apart without a full space | Not a word separator |
| U+2002 | EN SPACE | Half the width of an em space | Yes |
| U+2000 | EN QUAD | Same width as en space; normalizes to U+2002 | Yes |
| U+2009 | THIN SPACE | Narrow typographic space, roughly a fifth or sixth of an em | Yes |
| U+202F | NARROW NO-BREAK SPACE | Thin space that must not break, used in French punctuation spacing, for example | No |
| U+200A | HAIR SPACE | Narrower than a thin space | Yes |
| U+2006 | SIX-PER-EM SPACE | One sixth of an em | Yes |
| U+0020 | SPACE | The halfwidth counterpart of the CJK ideographic space U+3000 | Yes |
In the Persian sense, the half space is a joining-control character rather than a space. In Arabic script it stops two adjacent letters from connecting. That is why a Persian word with a prefix such as mi- or a suffix such as -ha looks like one word with a small visual gap rather than two separate words. A common mix-up is with U+200B ZERO WIDTH SPACE, which is a different character. Zero width space marks a possible line break. It does not control letter joining.
What inserting a half space actually changes
Every option above changes the stored text. A different code point sits in the string, and software reads that code point, not its appearance. Visual-only spacing works differently. CSS letter-spacing, margins or padding widen a gap on screen while leaving the underlying characters as they were. This difference matters when someone copies the text, searches it or processes it.
- Zero width non-joiner (U+200C): has no width of its own. It changes how neighbouring Arabic-script letters connect. In Latin text it can also stop a font from forming a ligature such as fi.
- En, thin, hair and other fixed-width spaces (U+2000–U+200A): change the width of the gap. Most of them still allow a line break at that point.
- Narrow no-break space (U+202F): narrows the gap and also prevents a line break, which keeps a number with its unit or a word with its punctuation mark.
- En quad (U+2000): Unicode normalization (NFC or NFD) silently replaces it with en space (U+2002). Software that normalizes text may therefore store it differently from what was typed.
- None of these characters mirror, reverse or restyle letters. The only display effects are gap width, line breaking and, for the non-joiner, letter joining.
How to identify the character in your text
You cannot reliably identify a space by looking at it. Fonts render a thin space and a narrow no-break space almost identically, and a zero width non-joiner shows nothing at all in Latin text. The dependable method is to inspect the code points directly.
- Paste the text into a Unicode code-point inspector, also called a character identifier or Unicode analyzer. Check that it reports the U+ value and the official character name, not just a preview.
- In a code editor, turn on the option that shows whitespace or invisible characters. Some editors flag non-ASCII spaces or default-ignorable characters specifically.
- Search by code point or official name, for example "U+200C" or "zero width non-joiner", rather than "half space". The informal term returns mixed results for unrelated characters.
- For Persian writing, the native term nim-fasele (نیمفاصله) leads to keyboard and orthography guidance specific to that use.
If you can run a short script, you can list the characters in a string with standard Python and no extra libraries:
import unicodedata
text = "paste the text here"
for ch in text:
print(f"U+{ord(ch):04X}", unicodedata.name(ch, "<no name>"), unicodedata.category(ch))
The category column helps sort the results. Visible spacing characters such as thin space and narrow no-break space are category Zs (space separator). The zero width non-joiner is category Cf (format). If a character shows as Cf, it is a control character for layout rather than a space.
How to type or insert it
Several insertion methods do not depend on any particular application. The common characters have named HTML entities. In source code you can use escape sequences. Operating-system character pickers and Unicode input methods usually accept a search by code point or name. Keyboard shortcuts for the Persian half space vary by keyboard layout and operating system version. They were not verified for this article, so check the documentation for your specific layout.
HTML entities: ‌    
Numeric HTML: ‌    
CSS content: "\200C" "\2009" "\202F"
JS / Python: "\u200C" "\u2009" "\u202F"
Will it survive copying and sharing?
Copying text normally carries the code points with it. The risk comes from the destination. Some platforms, form fields and text sanitizers remove default-ignorable characters such as the zero width non-joiner, or replace unusual spaces with ordinary ones. Search systems and databases may apply compatibility normalization (NFKC), which turns en, thin, hair and narrow no-break spaces into a plain U+0020 space. The zero width non-joiner has no such mapping. A search for a Persian word typed with a half space can therefore fail to match the same word typed with a regular space or with no gap, unless the search system handles that case.
- Editing: invisible characters are easy to delete by accident or to carry along unnoticed. They can also cause cursor movement to skip in ways that confuse editors.
- Identifiers, usernames, passwords, code and file names: avoid invisible or non-ASCII spaces in these. They can make two strings that look identical compare as different.
- Screen readers and other assistive technology: the supplied evidence includes no documentation or tests for how particular screen readers announce these characters. Results are likely to vary by product and language settings, so test with the assistive technology your audience uses.
- Rendering: a font that lacks a glyph for a rare space may show a fallback width or a placeholder box. One correct rendering on your own device does not prove it will display correctly elsewhere.
Is a half space the right choice?
Use the specific character when it carries meaning. For Persian and similar orthographies, the zero width non-joiner is the correct way to write many words. Replacing it with a regular space or deleting it changes how a word is segmented and read. For careful typography, a narrow no-break space is the right tool when a short gap must also stay on one line.
The tradeoff is portability. Each specialized space is something a destination can strip, normalize or render inconsistently. A plain space, or no extra character at all, is the safer choice in these cases: the gap is purely decorative; the text goes into search fields, code, identifiers or systems you have not tested; or a narrower visual gap can be achieved with styling such as CSS instead of a stored character. When you must use the special character, keep a plain-text version wherever exact matching or broad compatibility matters. Test the specific platforms and assistive technologies your readers will use.