Prompt Cleaner
Guide 1: How to Write a Clear AI Prompt (Task, Context, Format and Rules)Guide 2: What Is a Token in AI? Rules of Thumb for Counting TokensPaste a prompt that was copied from a document, a chat or a web page and clean it up. Remove extra spaces and empty lines, straighten curly quotes and delete invisible characters, then see the estimated tokens before and after.
Token numbers are a rough estimate (about 4 characters per token). Everything happens in your browser.
Features
- Trim lines and turn several spaces into one
- Keep, limit or remove empty lines
- Remove invisible characters such as zero-width spaces
- Estimated tokens before and after
How to use Prompt Cleaner
- Paste your prompt or text.
- Choose what to clean.
- Copy the cleaned text.
Frequently asked questions
Does cleaning change the meaning of my prompt?
No words are changed. Only spaces, empty lines, quotes and invisible characters are touched. In text where spacing matters, such as code or a table, keep the empty lines and spaces option off.
How accurate are the token numbers?
They are a rough estimate, about 4 characters per token for English. Each AI model counts in its own way, so the real number can differ.
What are invisible characters?
Characters you cannot see, such as zero-width spaces and soft hyphens. They often come along when you copy text from a web page or a document.
Is my text sent anywhere?
No. The text is cleaned in your browser and nothing is stored or sent.