Straight quotes and plain dashes
Typographic punctuation is converted to plain ASCII that code and every model handle the same way.
Clean pasted prompt text by fixing smart quotes, hidden characters, extra spaces and blank lines
This tool is completely free — no credits required. All processing happens in your browser.
Changes made
12
You are a helpful assistant-answer the user's question clearly. "Keep it short"... and avoid jargon. ## Rules - Cite **sources** - Use plain English
Text copied from documents, web pages and chat apps carries characters you can't see: curly quotes, em dashes, zero-width spaces and non-breaking spaces. They can break code examples, confuse string matching and waste tokens. This cleaner replaces or removes them and tells you exactly what it changed.
The cleaner runs a fixed sequence of replacements and counts each one, so the result is predictable.
Line endings become \n. Zero-width characters are removed, special spaces become normal spaces, curly quotes become straight quotes, dashes become "-" and "…" becomes "...".
Headings, bold, italic, strikethrough and code marks are removed and the words kept. Links become "text (url)", images keep their alt text, and "*" or "+" bullets become "-".
Each line is trimmed, runs of two or more spaces or tabs become one space, and three or more line breaks in a row become a single blank line.
Each kind of change is counted, along with the character count before and after.
Typographic punctuation is converted to plain ASCII that code and every model handle the same way.
Zero-width spaces, joiners, byte-order marks and soft hyphens are stripped out.
Extra spaces, stray indentation and long runs of blank lines are removed.
Get plain text from Markdown while keeping the words and link addresses.
See how many quotes, dashes, spaces and lines were changed.
Cleaning happens on your device. Your prompt is never uploaded.
Anyone who pastes text into an AI tool, an API call or a template.
Remove characters that break string matching, JSON or code samples inside prompts.
Clean text copied from word processors before reusing it as a prompt.
Strip clutter from long prompts and save a few tokens on every request.
Keep shared prompt libraries free of invisible formatting.
Removing extra whitespace and hidden characters first gives a truer token count.
Headings and lists help models follow long prompts. Remove Markdown only when the destination shows raw text.
If your prompt contains indented code, turn off line trimming so the indentation is kept.
A large count of zero-width characters often means the text came from a web page or PDF that inserted them.
Characters such as U+200B (zero-width space) and U+FEFF (byte-order mark) take up no space on screen but are still part of the text. They can break searches, comparisons and code, and they count as tokens.
Curly quotes are different characters from straight quotes. Code, JSON and many tools expect straight ones, and mixing the two makes text harder to match and compare.
No. The cleaner changes punctuation styles and whitespace only. With Markdown removal on, it removes formatting marks but keeps the words, link addresses and image alt text.
With line trimming on, yes. Turn trimming off to keep leading indentation; repeated spaces inside a line are still collapsed, but the indentation at the start of each line is kept.
Often a little. Extra spaces, blank lines and hidden characters each use tokens, so removing them makes the prompt shorter. Use the Token Counter to measure the difference.
No. Everything runs in your browser. The text you type is never stored or sent to a server.