Load YAML document
Drop a .yaml or .yml file or paste configuration blocks.
Fold repetitive YAML lists of objects into compact TOON headers right in your browser — preserving keys and hierarchy while shrinking prompt tokens.
Select YAML file
or paste .yaml / .yml · key folding · BPE stats.yaml · .yml
Zero upload limits · Runs in browser RAM
42% smaller prompt payload
service: rag-router
maxRetries: 3
endpoints:
- region: us-east
latencyMs: 38
healthy: true
- region: eu-west
latencyMs: 44
healthy: trueservice: rag-router
maxRetries: 3
endpoints[2]{region,latencyMs,healthy}:
us-east,38,true
eu-west,44,true| Property | Source: YAML | Target: TOON |
|---|---|---|
| File extension | .yaml | .toon |
| MIME type | application/yaml | text/plain |
| Structure type | Hierarchical | Hierarchical |
| Encoding | UTF-8 Text | UTF-8 Text |
| Nesting support | Yes | Yes |
| LLM token efficiency | Medium | High |
| Schema / typed | No | Yes |
| Best for | Kubernetes manifests, GitHub Actions CI workflows, OpenAPI 3.x specs, Ansible playbooks, and human-edited configs. | Shrinking LLM prompt payloads, RAG context tables, and agent tool responses by 30%–60% tokens without losing JSON data fidelity. |
Compress Kubernetes manifests, OpenAPI specs, and YAML configs into compact TOON for ~42% smaller LLM prompt payloads.
Drop a .yaml or .yml file or paste configuration blocks.
Fold uniform object arrays and tune indentation depth.
Download .toon or compare YAML vs. TOON BPE tokens directly.
Measure exact o200k_base and cl100k_base BPE tokens, context window share, API cost estimates, and TOON savings offline.
Decode Token-Oriented Object Notation (.toon) into formatted, strictly typed JSON arrays and objects in RAM.
Parse Kubernetes manifests, CI configs, and multi-document YAML (---) into formatted RFC 8259 JSON in browser RAM.
While YAML removes braces, it still repeats key names on every list item (- region: ...). TOON moves keys into one header line.
Yes. Nested mappings stay readable while uniform lists collapse into compact tabular TOON blocks.
Yes. Everything runs 100% locally in your browser Web Worker.