Reference

Invisible and Blank Unicode Characters

A blank character is any Unicode character that draws nothing. The most useful ones for blank text are not in the space category, like Hangul Filler (U+3164) and Braille Pattern Blank (U+2800), because trim() doesn't remove them.

Invisible character list

Filter by what you need and copy straight from the table.

NameCodeWidthTypeKept by trim()
SpaceU+0020
Space ZsRemoved
No-Break SpaceU+00A0
Space ZsRemoved
Soft HyphenU+00AD
Format CfKept
Combining Grapheme JoinerU+034F
Mark MnKept
Hangul Choseong FillerU+115F
Letter LoKept
Hangul Jungseong FillerU+1160
Letter LoKept
Mongolian Vowel SeparatorU+180E
Format CfKept
En QuadU+2000
Space ZsRemoved
Em QuadU+2001
Space ZsRemoved
En SpaceU+2002
Space ZsRemoved
Em SpaceU+2003
Space ZsRemoved
Three-Per-Em SpaceU+2004
Space ZsRemoved
Four-Per-Em SpaceU+2005
Space ZsRemoved
Six-Per-Em SpaceU+2006
Space ZsRemoved
Figure SpaceU+2007
Space ZsRemoved
Punctuation SpaceU+2008
Space ZsRemoved
Thin SpaceU+2009
Space ZsRemoved
Hair SpaceU+200A
Space ZsRemoved
Zero Width SpaceU+200B
Format CfKept
Zero Width Non-JoinerU+200C
Format CfKept
Zero Width JoinerU+200D
Format CfKept
Left-To-Right MarkU+200E
Format CfKept
Right-To-Left MarkU+200F
Format CfKept
Narrow No-Break SpaceU+202F
Space ZsRemoved
Medium Mathematical SpaceU+205F
Space ZsRemoved
Word JoinerU+2060
Format CfKept
Braille Pattern BlankU+2800
Symbol SoKept
Ideographic SpaceU+3000
Space ZsRemoved
Hangul FillerU+3164
Letter LoKept
Zero Width No-Break SpaceU+FEFF
Format CfRemoved
Halfwidth Hangul FillerU+FFA0
Letter LoKept

Unicode categories worth knowing

Zs is a space and is usually removed by trim(). Cf is a zero-width format character, like U+200B. Lo is a letter, which includes Hangul Filler. So is a symbol, which includes Braille Pattern Blank. The category decides whether a character survives in an app.

How to pick the right character

For blank text in apps, pick a blank letter or symbol (Lo or So). For spacing in documents, pick a fixed-width space (Zs). To split words with no gap, pick a zero-width character (Cf). The table filters above group the characters this way.

The key characters

En Quad

U+2000

En Quad, half the width of the letter M.

Braille Pattern Blank

U+2800

Empty braille cell (category So). The best backup and great for blank lines.

Hangul Filler

U+3164

Korean filler letter (category Lo). The one that works most often for blank text.

Zero Width Space

U+200B

No width (category Cf). Splits words without a gap; many apps strip it.

No-Break Space

U+00A0

A space that won't break across lines ( ).

Space

U+0020

The normal space-bar space. trim() always removes it.

HTML, CSS and JS codes

Frequently asked questions

How many space characters does Unicode have?

There are 17 characters in the space category (Zs), plus several format and filler characters that render blank. This table lists the 31 most useful ones.

Which characters have truly zero width?

Zero width space (U+200B), word joiner (U+2060) and the direction marks U+200E and U+200F.

Related guides