Google Docs

Clean invisible characters, right in Docs.

A copy-paste Google Apps Script that adds a NoAtMark menu to Google Docs — stripping zero-width spaces, BOMs, and soft hyphens from your document while keeping bold, links, and formatting intact.

🔒 in-document — nothing leaves Docs 📝 formatting-safe — editAsText 🔄 free — no add-on store

Free, open source. No account, no upload.

📌 One menu item

Adds a NoAtMark → Clean invisible characters menu to the Docs menu bar.

📝 Formatting-safe

Uses editAsText() + deleteText() so bold, links, and formatting survive.

🔒 Private

Runs entirely inside your document — nothing leaves Google Docs.

Install in 4 steps

  1. Open your Google Doc → Extensions → Apps Script.
  2. Delete the placeholder code and paste the whole noatmark.gs.
  3. Save, then select the onOpen function → Run (authorize it).
  4. Reload the doc — a NoAtMark menu appears.

Then: menu → NoAtMark → Clean invisible characters. A popup reports how many were removed.

What it strips

  • Zero-width spaces (U+200B), joiners (U+200C/U+200D), non-joiner, word joiner (U+2060)
  • BOM (U+FEFF), soft hyphen (U+00AD), direction marks (U+200E/U+200F)
  • Combining grapheme joiner (U+034F), variation selectors, special spaces, non-breaking space

Handles paragraphs, list items, and table cells.

More