Aspect ratio calculator / Text Cleaner

Text Cleaner

Paste text and see the characters you cannot see: zero-width spaces, no-break spaces, tag characters and direction controls. Clean them out along with curly quotes, em dashes and Markdown marks, or merge code files into one prompt with a rough token count. Nothing is uploaded.

Tool · 2026 · Aspect ratio calculator

Paste your text, or press Load example to see what it finds. Also in Korean. It has more room in full screen. Free to use.

What it is

Text Cleaner has two tabs. The first shows hidden characters and formatting marks in your text and cleans them with settings you choose. The second joins code or text files into a single block for a chatbot and estimates how much of a context window it will use.

Hidden characters and formatting

What it findsWhat it does
Zero-width space, word joiner, soft hyphen, BOM, invisible math operatorsRemoves them
Unicode tag characters (U+E0000 to U+E007F)Removes them. They can hide text that people cannot see but an AI can read.
Direction controls (U+202A to U+202E, U+2066 to U+2069)Removes them by default. Turn this off for Arabic and Hebrew text.
NBSP and other special spacesTurns them into a normal space
ZWJ and ZWNJKeeps them next to emoji and Indic or Arabic letters, removes them elsewhere. You can remove all.
Curly quotes, ellipsis character, em and en dashesTurns them into plain forms. An en dash between numbers becomes a hyphen.
Markdown marks and bulletsRemoves the marks and writes bullets as hyphens

Three presets set the options for email and chat, for Word and HWP (which keeps curly quotes), and for code (which keeps Markdown and straight quotes).

Prompt packer

  • Add files or a whole folder. The browser reads them on your device and nothing is uploaded.
  • Choose Markdown code blocks or XML tags, and an instruction line for the top.
  • Optional: shrink blank lines and remove single-line comments for the file types where that is safe.
  • It shows how much of a 128K, 200K and 1M context window the result would use. The count is a rough estimate.
  • It skips build folders, binary files, large files, lock files and .env and key files, and warns about text that looks like a key or password.

What it does not do

It is not an AI detector bypass. It cleans invisible characters and formatting only. It cannot remove a statistical watermark in the wording and does not make text look human-written.

Files and license

The tool claims no rights in your text or files. The tool itself is provided to use on this page and is not offered for download or copying. A Korean version is here.

Questions

Is my text uploaded?

No. Cleaning, the hidden character view and the file merge all run in your browser. Your text and files are not sent to a server.

Does this remove AI watermarks or help text pass an AI detector?

No. It only removes invisible characters and formatting marks. It cannot remove a statistical watermark that lives in the choice of words, and it does not make writing look human-written. Stray invisible characters are also not proof that a text came from AI, because copying from web pages and word processors adds them too. Follow the rules of your school or workplace about disclosing AI use.

What are hidden characters and why remove them?

Examples are the zero-width space, the no-break space (NBSP), the soft hyphen and the byte order mark. They do not show on screen but can break searches, spreadsheets, code and word counts. Unicode tag characters can hide text that people cannot see but that an AI reads, so it is worth checking text you copy into a chatbot. Direction control characters can change the order in which text is displayed.

Why are ZWJ and ZWNJ kept by default?

They are needed in some writing. A ZWJ joins the parts of many emoji, and ZWJ and ZWNJ are used in Hindi, Persian and other scripts. By default the tool keeps them next to emoji and next to Indic and Arabic letters, and removes them elsewhere. You can choose to remove every one of them.

Why does an en dash between numbers become a hyphen?

A range such as 1–5 would turn into “1, 5” if it were replaced like an em dash, which changes the meaning. So an en dash between digits always becomes a hyphen (1-5) when dash replacement is on.

What does the Markdown option remove?

Headings, bold and italic marks, strikethrough, inline code, code fence lines, quote marks, horizontal rules and links (a link becomes its text with the address in brackets). It does not convert tables. Use the code preset to leave Markdown alone.

What does the prompt packer do?

It joins several code or text files, or a whole folder, into one block with a short instruction on top, so you can paste it into a chatbot. The token count is a rough estimate from character counts and can differ a lot between models. Leave room in the context window for the reply.

Which files does the packer skip, and does it check for secrets?

It skips node_modules, .git and build folders, binary files, files over 1 MB, lock files, and .env and key files. It also looks for text that resembles API keys, private keys and passwords and warns you. This is a simple pattern check that can miss things, so read the result before you paste it anywhere.

Can I use what I make?

The tool claims no rights in your text or files. What you may do with them depends on who owns them. The tool itself is for use on this page and is not offered for download.

Related tools and guides