AI Text Cleaner

Published Updated

Remove nine kinds of invisible characters from pasted text, such as zero-width spaces, joiners, byte order marks and soft hyphens, and turn non-breaking spaces into normal ones. An option straightens smart quotes and dashes, and it is off by default.

The nine characters it handles

Each is found by exact code point, counted and reported by name. A test string holding one of each came back as abcdefghi j.

Code pointNameAction
U+200BZero-Width SpaceRemoved
U+200CZero-Width Non-JoinerRemoved
U+200DZero-Width JoinerRemoved
U+200E, U+200FLeft-to-Right and Right-to-Left MarksRemoved
U+2060Word JoinerRemoved
U+FEFFByte Order MarkRemoved
U+00ADSoft HyphenRemoved
U+00A0Non-Breaking SpaceReplaced by a normal space

When removal damages text

The Unicode emoji report, UTS #51, describes the zero-width joiner as the mark placed between the parts of an emoji sequence so that one glyph is shown. Deleting it separates the parts. The page lists what it removed instead of cleaning silently, so you can spot a joiner that was doing real work.

A small example

Take the line Hello, a zero-width space, a space, world, a non-breaking space, 10, a space and a pair of curly quotes around quoted. With the typography option on, the output reads Hello world 10 and then the word quoted in straight quotes. The report lists Zero-Width Space 1, Non-Breaking Space 1 and Smart Double Quotes 2, so you can see what was found before copying.

Cleaning a paste

  1. Step 1

    Paste the text

    The box takes any length. Cleaning runs as you type, and a list below shows each kind of character found with its count.

  2. Step 2

    Decide on typography

    Tick the typography option only if you want curly quotes and dashes flattened. Left off, they pass through untouched.

  3. Step 3

    Copy Clean Text

    Copy takes the cleaned version. Clear empties both boxes.

What the typography option does

  • Curly double quotes become a straight double quote, and curly single quotes a straight apostrophe.
  • An em dash and an en dash each become a hyphen, with the spaces around them kept.
  • Nothing else changes: the ellipsis character, bullets and non-English quotes stay.
  • For counting what is left, Word Counter reports the totals.

Cleaning questions

Can it tell whether text was written by an AI?

No. It removes a fixed list of characters and reports the counts. A count of zero does not prove a person wrote the text, and a high count proves nothing about its source.

Why is my em dash still there?

Dashes are changed only when the typography option is on. Then an em dash or an en dash becomes a hyphen, with the spaces around it kept. The single ellipsis character is never changed.

Why did a family emoji split into three people?

The zero-width joiner holds an emoji sequence together, and the page removes it. A family of three joined emoji came out as three separate ones. Skip cleaning when emoji must stay combined.

Why did my Persian or Hindi text change?

The zero-width non-joiner sits inside some Persian and Hindi words to control letter shaping. In the test, a Persian verb written with it lost the mark and its two parts ran together. Leave such text out of the cleaner.

Which look-alike characters does it miss?

Several. The narrow no-break space U+202F, the thin space U+2009, the right-to-left override U+202E, U+2062, U+180E, U+2028 and U+FE0F all passed through unchanged in the test.

Is the text uploaded for cleaning?

No. Splitting and replacing strings runs inside the page, and nothing is sent.

Related Tools