Everything *[NYC] 2026: see what we announced. →
Skip to content

TOON token-efficient format definition

TOON (Token-Oriented Object Notation) is a line-based text format that encodes the JSON data model in fewer tokens for LLM prompts. It uses indentation instead of braces, quotes strings only when needed, and writes uniform arrays as tables whose header declares the row count and field names once.


A diagram explaining TOON token-efficient format in terms of related concepts.

How is TOON different from JSON?

How many tokens does TOON save compared to JSON?

When should you use TOON instead of JSON?

How does TOON compare to CSV and YAML?

How do you prepare structured content for a TOON prompt?

Discover More with Sanity

Now that you've learned about TOON token-efficient format, why not start exploring what Sanity has to offer? Dive into our platform and see how it can support your content needs.

Last updated: