Invisible Character Detector

Find hidden invisible characters like zero-width spaces, NBSP and BOM in text.

The Invisible Character Detector scans your text for hidden Unicode characters that take up no visible space yet can break code, corrupt data, and cause baffling bugs. It reports each type it finds by name and code point, tells you how many times each appears, and lists the exact line numbers, so you can locate and understand problems that are otherwise impossible to see.

It is built for developers debugging strings that will not match, data cleaners chasing mysterious import failures, and security-conscious users checking pasted text for hidden markers. Invisible characters such as zero-width spaces, non-breaking spaces, byte order marks and bidirectional controls are inserted by editors, websites and copy-paste operations far more often than most people realise.

Everything runs locally in your browser using JavaScript, so nothing you paste is uploaded or stored. Paste your text, and a clear table appears listing every invisible character detected with its name, code point, count and line numbers, along with a summary of how many hidden characters were found in total.

Features

  • Detects a broad set of invisible characters including zero-width spaces, joiners and non-joiners.
  • Flags non-breaking spaces, narrow and figure spaces, and other fixed-width whitespace variants.
  • Identifies byte order marks, word joiners and bidirectional formatting controls.
  • Reports each character by human-readable name alongside its exact Unicode code point.
  • Shows how many times each character appears and the line numbers where it occurs.
  • Optionally includes ordinary tab characters in the report for full whitespace auditing.
  • Runs instantly and offline with no account, no upload and no limit on how much you paste.

How to use Invisible Character Detector

  1. Paste the suspicious text, code or data into the input box.
  2. Enable Include tabs if you also want ordinary tab characters listed in the report.
  3. Read the table to see each invisible character, its code point, count and line numbers.
  4. Use the line numbers to jump to the affected locations in your source and fix them.
  5. Export the report as CSV, or clean the text with the Zero Width Character Remover.

Benefits

  • Explains why two strings that look identical fail to match in code or spreadsheets.
  • Pinpoints hidden characters causing import errors, broken lookups or corrupted data.
  • Reveals bidirectional and formatting controls that can be used to disguise text.
  • Gives exact code points and line numbers so problems are easy to locate and fix.
  • Keeps sensitive text private because all detection happens on your own device.
  • Provides a shareable table you can export as CSV for bug reports and audits.

Invisible characters are a common and frustrating source of bugs precisely because you cannot see them. A zero-width space copied from a web page can sit inside a variable name or a password field and make an exact comparison fail for no visible reason, while a byte order mark at the start of a file can break parsers that do not expect it. Seeing these characters listed explicitly turns an invisible problem into an obvious one.

Once you know which characters are present and where, you can decide how to handle them. Many can be removed safely with the Zero Width Character Remover, while non-breaking spaces are usually best converted to ordinary spaces with the Whitespace Normalizer. Bidirectional controls deserve closer scrutiny, as they are occasionally used deliberately to make text display differently from how it is stored.

Frequently asked questions

Related tools