skip to content

System Prompt Formatter

Clean up a messy system prompt: trim it, collapse runs of blank lines, and strip trailing whitespace, with live character, word, and estimated token counts. Everything runs in your browser: nothing is uploaded.

Characters
0 → 0
Words
0 → 0
Tokens (est.)
0 → 0

Cleaned prompt

Paste some text above to see the cleaned result.

We trim the text, remove trailing whitespace, and collapse three or more blank lines to one. Token counts use a transparent heuristic (about max(chars / 4, words × 1.3)) and are estimates: a model's real tokenizer will differ.

Read the docs