Skip to main content
image&pdf.com
Image Tools

Remove Invisible Gaps & Hidden Characters in Text

Secure processingNo signup required100% freeFiles deleted after 1 hour

Remove Invisible Gaps & Hidden Characters in Text works best with the full tool.

Open Free Tool

Free · No signup · Files deleted after download

Text copied from ChatGPT, Claude, Gemini, PDFs, or web pages often carries invisible gaps - zero-width spaces, special joiners, and hidden "tag" code points wedged between normal letters. They are impossible to see but easy for editors, search, and code parsers to catch. This free tool strips every one of them in your browser and hands back clean, plain text, with nothing ever uploaded to a server.

An invisible gap is not a visible space. It is a pattern of invisible Unicode code points woven into otherwise normal writing: zero-width spaces (U+200B), word joiners, the byte-order mark, variation selectors, and a block of "tag" characters (U+E0000-U+E007F) hidden between ordinary letters. Because they have zero width, they survive copy-paste, slip into documents and form fields, and quietly break code, search, spacing, and database imports - even after you have rewritten the text. The same invisible junk sneaks in when you paste from PDFs, word processors, and web pages.

This cleaner removes that hidden layer without touching a single visible word. It deletes zero-width and formatting characters outright, normalises exotic spaces (non-breaking spaces, narrow spaces, ideographic spaces) back to a plain space, and converts stray line and paragraph separators to normal line breaks. The result reads exactly like what you see on screen, minus the invisible gaps. An optional toggle goes one step further and normalises punctuation - curly "smart" quotes, em-dashes, and the single-character ellipsis - turning them into their plain ASCII equivalents.

Everything runs locally with JavaScript in your browser. Your text is never sent anywhere, which matters when you are cleaning a confidential draft, a cover letter, client work, or anything you would not paste into a random website. Paste on the left, copy the cleaned version on the right, and you get an instant count of exactly how many hidden characters were found and removed - so you can see the invisible gaps that were there all along.

How to use it

Three steps, under 30 seconds from upload to download.

  1. 1

    Paste your text

    Drop in text from ChatGPT, Claude, Gemini, or anything you pasted from a PDF or web page. Processing is 100% in-browser - nothing is uploaded.

  2. 2

    Let it strip the hidden characters

    The cleaner instantly removes zero-width spaces, joiners, the BOM, variation selectors, and U+E0000-range hidden tags, and normalises exotic whitespace. Flip on the punctuation toggle to also fix smart quotes, em-dashes, and ellipses.

  3. 3

    Copy or download the clean text

    Copy the cleaned result to your clipboard or download it as a .txt file. A live counter shows exactly how many hidden characters were removed.

Common use cases

Real-world scenarios where this tool is the fastest solution.

Writers and marketers shipping polished copy

Blog posts, newsletters, and product copy often paste into a CMS carrying zero-width gaps and curly quotes that break formatting or look inconsistent. One pass produces clean, uniform text that renders identically everywhere.

Developers pasting into code and configs

Zero-width characters and non-breaking spaces in code, JSON, or YAML cause maddening "invisible" syntax errors. Running snippets through the cleaner strips the characters your editor cannot show you, so the code actually parses.

Students cleaning pasted research notes

Text copied from sources and AI chats brings along invisible gaps and exotic spaces that disrupt spacing and citations when pasted into a document. Cleaning it first gives you uniform, plain text to work from.

Anyone moving text between PDFs, Word, and the web

Copying from a PDF or Word document frequently drags along soft hyphens, ideographic spaces, and directional marks. The cleaner flattens all of it back to plain text that imports cleanly into spreadsheets, databases, and forms.

What makes this different

Removes hidden tag characters

Strips the U+E0000-U+E007F tag range and variation selectors - not just basic zero-width spaces - so even deeply hidden gaps are gone.

Keeps visible text identical

Only invisible characters are deleted by default. Every letter, number, and emoji you can see is preserved exactly.

Optional punctuation fix

A toggle converts smart quotes, em/en dashes, and the ellipsis character to plain ASCII when you want it - and leaves them alone when you do not.

100% private, no upload

All cleaning happens in your browser with JavaScript. Your text never leaves your device and nothing is stored.

Questions & answers

Everything you might need to know before using the tool.

What are invisible gaps in text?+
They are invisible Unicode characters - zero-width spaces, joiners, the byte-order mark, and special "tag" code points - that sit between visible letters. You cannot see them, but editors, search, and code parsers can. This tool removes all of them regardless of where they came from.
Will this change the actual words of my text?+
No. By default it only deletes invisible and zero-width characters and normalises exotic spaces, so the visible text is untouched. Only if you enable the optional punctuation toggle will it change visible characters - and only smart quotes, dashes, and ellipses into their plain ASCII equivalents.
What exactly does it remove?+
Zero-width spaces and joiners (U+200B-U+200D), the byte-order mark (U+FEFF), word joiners and invisible math operators, directional formatting marks, variation selectors, soft hyphens, and the U+E0000-U+E007F hidden tag block. It also converts non-breaking and other exotic spaces back to normal spaces.
Is my text uploaded anywhere?+
No. The entire cleaning process runs locally in your browser using JavaScript. Your text is never sent to any server, logged, or stored, so it is safe for confidential or sensitive content.
Why does pasted text have these characters in the first place?+
They come from AI chat tools, but also from copying out of PDFs, Word documents, and web pages, which embed non-breaking spaces, soft hyphens, and directional marks. This tool removes them no matter the source.
Does it work on mobile?+
Yes. It runs in any modern mobile browser. Paste your text, optionally toggle punctuation normalisation, and copy the cleaned result - no app or sign-up needed.

Your files are private

All processing runs locally in your browser using JavaScript. Your files are never transmitted to any server, stored, or shared. Close the tab and they're gone.

100%
Browser-local

Related Tools