Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save martin12333/2d1596c066c7ac54b9cb5e519f531335 to your computer and use it in GitHub Desktop.

Select an option

Save martin12333/2d1596c066c7ac54b9cb5e519f531335 to your computer and use it in GitHub Desktop.
The "invisible" / "blank" / "empty space" characters
tags
zero width space
zero width non-joiner
zero width joiner
soft hyphen

Invisible "blank" Characters: How to write invisible characters (zero width space, zero width non-joiner, zero width joiner & soft hyphen

I think only 2 of these are "copy-able":

  1. Zero-width space:
  2. Zero-width non-joiner: ‌‌‌
  3. Zero-width joiner:
  4. Soft hyphen: ­
  • Note: I had to wrap these in links to get ALL of them to be "copy-able":
  1. Zero-width space:
  2. Zero-width non-joiner:
  3. ‍Zero-width joiner:
  4. Soft hyphen: ­

Invisible Characters (HTML Entities)

  1. Zero-width space: ​
  2. Zero-width non-joiner: ‌
  3. Zero-width joiner: ‍
  4. Soft hyphen: ­

Invisible Characters (Unicode Escape Sequences)

  1. Zero-width space: \u200B
  2. Zero-width non-joiner: \u200C
  3. Zero-width joiner: \u200D
  4. Soft hyphen: \u00AD

Accessing through a GUI (mac)

Mac has a built-in Character Viewer that allows you to insert special characters, including invisible ones.

  1. Press Command + Control + Space to open the Character Viewer.
  2. Search for the specific invisible character you want (e.g., "zero width space").
  3. Double-click the character to insert it into your text.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment