Prompt Cleaner

Normalize prompts before export: collapse whitespace, strip Markdown/HTML/URLs/emoji, remove AI signatures, escape for JSON, or compress to save tokens — all in your browser.

All processing for core tools runs locally in your browser. Privacy policy

Cleanup
Remove
Escape

Use JSON string mode to paste directly into an API request body.

214 → 186 chars (−28)
## Draft prompt

You are a helpful assistant.

Please summarize the text below — hope this helps!

Visit https://example.com for docs 🚀

Text:
"Hello" world… (zero-width / messy spaces)

How to use

  1. Paste a messy prompt into Input (draft autosaves locally).
  2. Pick a preset or toggle cleanup / remove / escape options.
  3. Copy the cleaned output, replace the input, or open it in the Editor.
  4. Compress mode is best when you need fewer tokens without changing meaning much.

FAQ

Does cleaning upload my prompt?

No. All transforms run in your browser. Drafts use localStorage only.

What does JSON escape do?

It wraps the text as a JSON string (with quotes and escapes) so you can paste it into a request body field.

Will Strip Markdown delete my content?

It removes Markdown markers but keeps link/image alt text and code fence contents. Review the preview before exporting.

Related tools