Unicode & Formatting

How to Detect Hidden Unicode Characters in Text

Learn how to inspect text for hidden Unicode characters, zero-width spaces, and unusual whitespace that copy and paste can preserve, including practical checks you can run yourself.

AI Watermark Tools•Published •9 min read

Direct answer

To detect hidden Unicode characters, you must inspect code points, not the rendered paragraph. Paste the text into a scanner, or list each character’s numeric value.

The Invisible Character Remover reports cataloged invisible and unusual characters by name. The AI Text Cleaner reports those together with whitespace issues.

Detection tells you what is in the string. It does not identify the author and it does not prove that a statistical AI watermark exists.

What Unicode is

Unicode is the standard that maps characters to numbers so computers can store text from many languages in one system.

Examples:

  • A is U+0041
  • space is U+0020
  • é may be a single precomposed character or e plus a combining accent (see NFC vs NFD)
  • ZERO WIDTH SPACE is U+200B

“Hidden” in everyday language usually means “not drawn,” not “encrypted.”

Visible vs invisible characters

Visible characters draw ink: letters, digits, punctuation, most emoji, and ordinary spaces (you see a gap).

Invisible / format characters occupy a slot in the string but draw little or nothing. Common groups:

  • Zero-width format characters (U+200B, U+200C, U+200D, U+2060)
  • Byte order mark / zero-width no-break space (U+FEFF)
  • Soft hyphen (U+00AD), which may appear only at a line break
  • Bidirectional format controls (for example U+200E, U+200F)

A non-breaking space (U+00A0) is a hybrid for users: you see a gap, but it is not the same character as a normal space, so many people call it “hidden” when it causes wrapping bugs.

The reference overview is what are invisible Unicode characters?.

Zero-width characters

Zero-width means the glyph advance is zero. The next visible character is drawn immediately after the previous one.

Code pointNameDetection note
U+200BZero Width SpaceOften stray in copied prose; see the U+200B guide
U+200CZero Width Non-JoinerMay be required in some scripts
U+200DZero Width JoinerRequired for many combined emoji
U+2060Word JoinerZero width, discourages wrapping
U+FEFFBOM / ZWNBSPCommon at the start of a pasted file snippet

A detector should name these, not only say “invisible found.”

Whitespace characters

Whitespace is a family, not one character.

  • U+0020 SPACE — default
  • U+00A0 NO-BREAK SPACE — looks the same, different behavior
  • U+2000–U+200A — typographic spaces of various widths
  • U+202F narrow no-break space
  • Tabs and unusual line breaks

Copying from HTML often converts layout into U+00A0. That is a formatting leftover, not a watermark.

Why copy and paste can preserve hidden characters

When you select text in a browser, you select a range of the document. The clipboard may store:

  • plain text
  • HTML
  • other rich formats

The receiving field then chooses a representation. Many “plain text” pastes still include every Unicode character that was in the text nodes, including format characters.

That is expected clipboard behavior. It happens with office documents, web pages, and AI chat UIs alike.

Copied ChatGPT text and other AI drafts can therefore contain formatting artifacts. They can also contain none. You only know after you inspect.

How to inspect text

1. Use a cataloged scanner

Paste into the Invisible Character Remover. Read the report:

  • character name
  • code point (for example U+200B)
  • how many times it occurs

If you also care about extra spaces and markdown leftovers, paste into the AI Text Cleaner.

2. Compare length with what you see

Select a short word. If the UI shows five letters but the analyzer reports six characters, something extra is in the string.

Length mismatch is a clue. It is not a complete inventory.

3. List code points (safe example)

In a JavaScript console, for a variable text:

Array.from(text).map(ch => 'U+' + ch.codePointAt(0).toString(16).toUpperCase().padStart(4, '0'))

You should see values such as U+0048 for H. If you see U+200B in the middle of a word, you found a zero-width space.

Do not paste secrets into random online “unicode viewers.” Prefer a local console or this site’s in-browser tools, which analyze text on the page.

4. Search for a known code point

If you already suspect ZWSP:

/\u200B/.test(text)

5. Check the start of the string for BOM

If the first code point is U+FEFF, a BOM is present. It is easy to miss because it sits before the first visible letter.

Practical examples

Example A — split word

Visible: hostname

Stored: host + U+200B + name

A DNS or search field looking for hostname may fail. Detection lists U+200B at the break.

Example B — lookalike space

Visible: Thank you

Stored: Thank + U+00A0 + you

Splitting on ordinary spaces can yield one token, Thank you, instead of two. Detection lists a non-breaking space.

Example C — clean paste

Visible: a normal paragraph

Stored: only letters, punctuation, and U+0020 spaces

Detection reports no cataloged artifacts. That is a valid outcome. Many copies are already clean.

What AI-generated or copied text can contain

AI chat UIs render markdown as HTML. A copy can include:

  • invisible format characters
  • unusual whitespace
  • markdown remnants (unbalanced fences, extra indentation)

Those are formatting artifacts. They overlap with the characters in this article, but they are not a single mechanism. See AI text formatting artifacts explained.

Finding artifacts does not mean “this is watermarked.” Finding none does not mean “this is human.” Detection answers a narrower question: which cataloged code points are present?

After you detect: cleaning

Detection is the first step. Removal is optional and should be selective. The follow-up guide is how to remove invisible characters from text.

Use the Invisible Character Remover when hidden code points are the issue. Use the AI Text Cleaner when spacing and other leftovers should be normalized in the same pass.

Bottom line

Hidden Unicode characters are detectable because they are code points. Inspect with a scanner or a code-point listing. Copy and paste can preserve them. They are not automatically an AI watermark, and a clean scan is not an authorship certificate.

#Unicode#Detection#Invisible Characters#Text Analysis

Related tools

FAQ

Use a scanner that lists cataloged code points, or print each character’s code point in a programming console. Visual reading is not sufficient because many format characters have no glyph.