AI Text Cleaner – Remove Markdown, Asterisks & Hidden Characters
Strip ChatGPT, Claude, and Gemini formatting in one click: remove **bold** asterisks, ### headings, em-dashes (—), invisible Unicode characters, and broken PDF line breaks.
What formatting artifacts do AI models leave in pasted text?
Why copying from ChatGPT, Claude, or PDF documents breaks formatting in Word, Gmail, Notion, and CMS editors.
When you copy raw Markdown or rich text from an AI assistant, hidden formatting symbols and typographical quirks often come along for the ride. The reference table below shows the exact patterns our cleaner detects and strips locally in your browser:
| Artifact Type | Raw Pasted Input | Cleaned Output | Why It Matters |
|---|---|---|---|
| Markdown Bold & Italic | **Key takeaway:** *always* test |
Key takeaway: always test | Prevents literal asterisks from appearing in plain-text emails, social posts, and docs |
| Heading Hashes | ### 1. Introduction |
1. Introduction | Removes #, ##, and ### prefixes without deleting the heading text |
| AI Em-Dashes (—) | Clear writing—especially online—wins |
Clear writing, especially online, wins | LLMs overuse em-dashes; replacing them with commas or hyphens restores natural pacing |
| Zero-Width Unicode | wordcount test (U+200B, U+00A0) |
wordcount test | Prevents invisible characters from breaking code compilers, regex searches, or character limits |
| Broken PDF Line Wraps | Hard line break at column\nedge inside a sentence. |
Hard line break at column edge inside a sentence. | Merges broken single newlines from PDFs while keeping double newlines as paragraphs |
Deep dive: Invisible Unicode characters, AI em-dashes, and broken PDF line wraps
Beyond visible Markdown symbols like ** and ###, text copied from chat interfaces, web clipboards, and multi-column PDF files frequently carries non-printing control characters and structural artifacts that corrupt downstream publishing workflows:
- Zero-width spaces vs. Zero-width joiners (
U+200Bvs.U+200D): Web apps and rich-text renderers often inject zero-width spaces (U+200B) to hint at line-wrap positions or preserve cursor state. A singleU+200Binside a JSON key, SQL identifier, URL slug, or Python variable causes syntax errors. However,U+200D(Zero-Width Joiner) serves a legitimate grammatical and typographical function in compound Emoji sequences (such as 👨👩👧👦 or skin-tone/gender modifiers) and complex Indic ligatures. TextScope automatically safeguards emoji ZWJ sequences so your emojis never break into disconnected glyphs. - Non-breaking spaces (
U+00A0): Rich-text clipboards frequently substitute standard ASCII spaces (U+0020) with non-breaking spaces. In CMS editors and email clients, clusters ofU+00A0prevent natural responsive word wrapping on mobile screens, creating awkward horizontal overflow. - Why LLMs overuse em-dashes (
U+2014) and smart quotes: Instruction-tuned models are heavily trained on formal literary, journalistic, and academic corpora where parenthetical em-dashes are common. As a result, raw AI drafts often contain two or three em-dashes per paragraph — an unmistakable stylistic tell. Converting excessive em-dashes to standard commas and straightening curly typographic quotes (“ ” ‘ ’→" ') prevents encoding glitches in legacy CSV imports, plain-text emails, and code blocks. - How PDF line-unwrap preserves paragraph boundaries: PDF files do not store semantic paragraphs; they store absolute
(x, y)glyph coordinates for each visual line. Copying a two-column academic PDF inserts a hard newline (\n) after every 65–80 characters. Our PDF unwrap filter distinguishes single visual line breaks (([^\n])\n([^\n])) from double-newline paragraph breaks (\n\s*\n), rejoining split sentences with a single space while keeping headings, lists, and paragraph breaks intact.
Invisible Unicode character reference: What to remove vs. what to keep
Not all invisible Unicode characters are defects. Some control characters are injected accidentally by rich-text clipboards, while others are required for proper Emoji rendering and complex scripts. Here is how TextScope handles each specific code point when Strip hidden Unicode & zero-width chars is enabled:
| Code Point | Official Unicode Name | Common Source / Symptom | TextScope Action & Boundary Rule |
|---|---|---|---|
U+200B |
Zero Width Space (ZWSP) | Injected by web editors and chat UIs; breaks regex searches, JSON keys, and code identifiers | Removed (counted in Hidden chars removed) |
U+FEFF |
Byte Order Mark (BOM) / Zero Width No-Break Space | Copied from UTF-8 files or legacy clipboards; causes unexpected syntax errors at start of strings | Removed |
U+2060 |
Word Joiner (WJ) | Invisible line-break inhibitor pasted from word processors and PDFs | Removed |
U+00AD |
Soft Hyphen (SHY) | Hidden hyphenation hints from justified PDF columns that corrupt plain-text searches | Removed |
U+00A0 |
No-Break Space (NBSP) | Rich-text clipboard substitute for ASCII space; prevents mobile line wrapping in CMS editors | Normalized to standard ASCII space (U+0020) |
U+200C |
Zero Width Non-Joiner (ZWNJ) | Orphaned clipboard control character in Latin text | Removed in Latin/plain text cleanup |
U+200D |
Zero Width Joiner (ZWJ) | Combines multiple emojis into a single glyph (e.g. family 👨👩👧👦 or profession emojis) | Preserved inside Emoji sequences; stray non-emoji joiners removed |
TextScope AI Text Cleaner is designed solely to strip visual formatting syntax (Markdown asterisks, heading hashes), resolve typographical quirks, and clean non-printing clipboard noise. It does not rewrite or spin content, does not attempt to bypass academic AI detectors, does not alter cryptographic watermarks, and does not change text authorship.
After cleaning your draft, check its Flesch readability score and keyword phrase frequency in the text analyzer, or estimate prompt size in the LLM token counter.
Frequently asked questions
How do I remove Markdown formatting from ChatGPT or Claude output?
Paste your AI-generated text into the cleaner and keep “Remove Markdown formatting” checked. The tool immediately strips bold asterisks (**), heading hashes (###), backticks (`), blockquotes (>), and markdown link brackets while keeping your actual sentences and paragraph structure intact.
Does this tool remove invisible Unicode characters and zero-width spaces?
Yes. It automatically scans for and removes zero-width spaces (U+200B), zero-width non-joiners (U+200C), byte-order marks (U+FEFF), and non-breaking spaces (U+00A0), showing the exact count of hidden characters removed.
Will removing hidden Unicode break my emojis?
No. While standard zero-width spaces (U+200B) are stripped, intentional Zero-Width Joiner (U+200D) sequences between Emoji characters (such as multi-person emojis or modifiers) are preserved so your emojis continue to render properly.
Does this tool bypass AI detection or remove AI watermarks?
No. TextScope AI Text Cleaner only cleans visible Markdown formatting artifacts and invisible clipboard noise. It does not rewrite or paraphrase text and does not bypass AI detection systems.
Why replace em-dashes (—) in AI-generated writing?
Large language models overuse em-dashes (—) far more frequently than human writers. Replacing excessive em-dashes with standard commas or spaced hyphens makes your draft read more naturally.
How do I remove unwanted line breaks copied from a PDF?
Enable “Unwrap single line breaks (PDF fix)”. It joins lines that were artificially wrapped at the edge of a PDF column into continuous sentences while keeping double line breaks as clean paragraphs.
Is my text private when using the AI Text Cleaner?
Yes. All text cleaning runs 100% locally inside your browser using JavaScript. Nothing you paste is ever uploaded to any server.