JSON to TOON Converter — Token-Oriented Object Notation for LLM Prompts

Convert JSON to TOON locally in your browser. TOON is for LLM prompt input, not a replacement for JSON or YAML in APIs. Official spec: toonformat.dev. Pair with our token counter and pricing calculator. Round-trip with TOON → JSON.

…
Prompt-format conversion, not API storage
TOON compresses uniform tabular JSON for LLM prompts. FastMinify converts locally and shows the real token and USD deltas for your pasted payload.

How conversion works

We JSON.parse your input, then lazy-load version 4.1.1 of @toon-format/toon to encode TOON in the browser. Token counts reuse the same countTokensAsync path as the LLM token counter. USD estimates are input-only via estimateCostWithOptions, and output tokens are zero.

Options that change TOON output

Row delimiter
Controls tabular row separators in TOON output. Tab often reduces tokens on large uniform tables; comma is more readable when debugging.
Indentation
Spaces per indent level when encoding. Matches the SDK default of 2 unless you need wider alignment.
Token model
Selects which tokenizer or heuristic drives the comparison panel and USD estimate. Does not change TOON bytes.

FAQ

TOON scope, savings, and privacy

Is TOON a replacement for JSON or YAML?

No. TOON targets LLM prompt input. Keep JSON/YAML for APIs, config files, and storage.

Why does TOON sometimes use more tokens?

Non-tabular or tiny objects add structure overhead. We show the real delta for your paste, including regressions.

Is my JSON uploaded?

No. Encoding and token counting run entirely in your browser.

Which TOON version do you ship?

We pin @toon-format/toon 4.1.1. See the official spec at toonformat.dev.

Are USD numbers billing-accurate?

They are estimates from our maintained price table (input tokens only). Verify on your provider invoice.

Should I minify JSON before converting?

The comparison uses your pasted string. Minified JSON may narrow TOON's advantage. Measure both shapes if it matters.

Count tokens, estimate API costs, check context-window fit, convert JSON to TOON and analyze prompts, all in your browser.