SPEC Shorthand Codec (Beta)
Lossless ~-token encoding you can decode deterministically. Semantic mode may apply lossy vowel reduction. Token savings vary by tokenizer.
Download dictionary JSON (for your own integrations).
Live SPEC Demo
Original Text
0 charsSPEC Output
0 charsTry These Examples
Prompt Compression
"Please summarize this information and generate a short response for the assistant."
~33% reduction (lossless)Phrase Compression
"in other words, for example, explain the system configuration."
~45% reduction (lossless)Case Flags
"Tomorrow INFORMATION: please review and update."
~26% reduction (lossless)Semantic Mode
"characterization and interoperability are important for documentation."
~39% reduction (semantic)How SPEC Works
Lossless Codes
Dictionary words become short ~-prefixed tokens (safe to decode)
Phrase Codes
Common prompt phrases compress to short codes (lossless; tokenizer-dependent)
Case + Escapes
Preserve case and prevent accidental expansions
Semantic Mode
Optional vowel compression for extra savings on long lowercase words (not perfectly reversible; skips mixed-case identifiers)
Help Us Improve SPEC
SPEC is in beta. If you find collisions, confusing codes, or prompts where semantic mode harms meaning, send them in. Want early access to the SDK/API? Join the waitlist.