Skip to content

Instantly share code, notes, and snippets.

@devinschumacher
Last active April 28, 2026 07:55
Show Gist options
  • Select an option

  • Save devinschumacher/aa2351e31924e7e7d00ada6f3e9116aa to your computer and use it in GitHub Desktop.

Select an option

Save devinschumacher/aa2351e31924e7e7d00ada6f3e9116aa 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.
@devinschumacher
Copy link
Copy Markdown
Author

devinschumacher commented Jun 20, 2024

🔖 BOOKMARK THIS LINK so you always have it ready to copy/paste!

@espacoinvisiveis-prog
Copy link
Copy Markdown

Nice breakdown, especially the Unicode and HTML entity part, that’s really useful 👍

One thing I’d add is that these invisible characters are often used in practical scenarios like formatting text, creating unique usernames, or bypassing certain input restrictions. Tools and resources around espaço invisível make it easier for people who don’t want to deal with manual Unicode input.

Just a heads up though, while they’re useful, they can sometimes cause unexpected issues in code or text rendering, so it’s always good to test where you’re using them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment