Prompt Compression

Paste a prompt, compress it, and inspect which words were kept or dropped.

-Reduction
-Est. tokens
-Elapsed

Original Prompt

Ready
Try an example:

Compression Settings

Enter a cmp- key or start a bounded demo session. Credentials stay in page memory only.
Aggressiveness
0.15

Tenant Profile

Optional preserve controls
  • <nocompress>...</nocompress> skips model compression and removes the wrapper.
  • <compress-json paths="$.description,$.comments[*].body">...</compress-json> lets this profiler compress only the selected JSON string values.
  • ```json ... ``` protects JSON fences exactly as code.
  • Medium/large raw JSON converts to TOON when safe; exact JSON, schemas/templates, tool exchanges, duplicate-key JSON, and low-savings cases stay verbatim.
  • Full downloaded HTML pages convert to compact Markdown when structure can be preserved with meaningful savings.
  • Agent UI/output contracts, follow-on blocks, and card payload blocks are preserved verbatim.
  • HTML snippets and code-bearing blocks such as <pre>, <code>, <script>, <style>, <template>, and <svg> are protected; ordinary content tags like <div>, <p>, and <table> remain compressible prose.
  • Whitespace inside protected HTML is kept exactly as provided.
  • ``` and ~~~ markdown fences are protected from compression and preserve whitespace.

Dropped Words Highlighted

No result yet