Frequently Asked Questions
General Questions
What is jsontotoon.com?
jsontotoon.com is a free, browser-based converter that transforms JSON data into TOON (Token-Oriented Object Notation) format. TOON reduces LLM token usage by 30-60%, helping developers save on API costs when working with Large Language Models like GPT-4, Claude, and Gemini.
Key features:
- ✅ 100% free, no signup required
- ✅ Client-side processing (your data stays private)
- ✅ Bidirectional conversion (JSON ↔ TOON)
- ✅ Real-time token reduction statistics
- ✅ Copy to clipboard functionality
Is jsontotoon.com really free?
Yes, completely free with no catch. There are:
- ❌ No subscription fees
- ❌ No usage limits
- ❌ No freemium upsells
- ❌ No ads
- ❌ No data collection for monetization
We built this tool to support the developer community and promote TOON format adoption. Core conversion functionality will always remain free.
Do I need to create an account?
No! You can use jsontotoon.com completely anonymously. Just visit the website, paste your JSON, and convert. No email, no password, no account required. This aligns with our privacy-first philosophy — we don't want to track users or collect personal information.
How do I get started?
Getting started is simple:
- Visit jsontotoon.com
- Paste your JSON data into the input field (left/top panel)
- Click the "Convert to TOON" button
- View your TOON output in the result field (right/bottom panel)
- See token reduction statistics below the output
- Click "Copy" to copy the TOON format to your clipboard
- Use the TOON output in your LLM prompts or applications
That's it! No installation, no configuration, no learning curve.
Can I use jsontotoon.com on mobile?
Yes! Our converter is fully responsive and works on:
- ✅ Mobile phones (iOS, Android)
- ✅ Tablets (iPad, Android tablets)
- ✅ Desktop computers (Windows, Mac, Linux)
The interface adapts to your screen size, with input and output panels stacking vertically on smaller screens for easier use.
Do I need an internet connection?
You need internet to initially load the website (HTML, CSS, JavaScript files). However, once the page is loaded, conversion happens entirely in your browser — no internet connection is required for the actual conversion process. Tip: If you frequently use the tool offline, you can bookmark it and most modern browsers will cache the files for faster loading.
TOON Format
What is TOON format?
TOON (Token-Oriented Object Notation) is a compact data serialization format designed specifically for Large Language Models (LLMs). It reduces token consumption by 30-60% compared to JSON by:
- Eliminating redundant keys in arrays of objects
- Minimizing punctuation (no brackets, braces, or excessive quotes)
- Using indentation for structure (like YAML)
- Optimizing for LLM tokenization patterns
Example:
JSON:
{
"users": [
{"id": 1, "name": "Alice"},
{"id": 2, "name": "Bob"}
]
}TOON:
users[2]{id,name}:
1,Alice
2,BobFor more details, see the official TOON specification.
How does TOON reduce tokens?
TOON reduces tokens through several optimizations:
1. Key Declaration (Biggest Savings):
In JSON, keys are repeated for every object in an array. In TOON, keys are declared once in a header. This alone can save 40-50% of tokens for arrays.
2. Minimal Punctuation:
JSON uses: { } [ ] : , ". TOON uses: , : and indentation. Fewer punctuation marks = fewer tokens (LLM tokenizers split punctuation into separate tokens).
3. No Excess Whitespace:
Pretty-printed JSON includes indentation and newlines that add tokens. TOON uses indentation semantically (for structure).
4. Optimized for Tokenization:
TOON is designed with common LLM tokenizers (like GPT's tiktoken) in mind, minimizing token splits and maximizing efficiency.
Is TOON human-readable?
Yes! Despite being compact, TOON is designed to be human-readable. It uses:
- Clear structure with indentation
- CSV-like rows for tabular data
- Descriptive headers (e.g., users[10]{id,name,email})
Example:
employees[3]{id,name,department,salary}:
101,Alice Johnson,Engineering,95000
102,Bob Smith,Marketing,78000
103,Carol Davis,Sales,82000This is easy to read and understand, even without being an expert.
Is TOON lossless?
Yes, TOON conversion is 100% lossless. When you convert JSON → TOON → JSON, you get back your original data structure exactly. TOON preserves:
- ✅ All values (strings, numbers, booleans, null)
- ✅ Array order
- ✅ Object structure
- ✅ Nesting depth
- ✅ Data types
The only thing that's not preserved is formatting (whitespace, key order in objects), which doesn't affect data semantics.
When should I use TOON vs JSON?
Use TOON when:
- ✅ You have uniform arrays of objects (same structure across items)
- ✅ You're passing data to LLMs (GPT, Claude, Gemini, etc.)
- ✅ You want to reduce token costs on API calls
- ✅ You're working with tabular/structured data (logs, analytics, user lists)
- ✅ You have large datasets (100+ items)
Use JSON when:
- ❌ You need strict JSON for interoperability (APIs, databases)
- ❌ You have deeply nested data (5+ levels)
- ❌ Objects in arrays have varying structures (non-uniform)
- ❌ You have very small datasets (< 10 items) where savings are negligible
Rule of thumb: If your data looks like a spreadsheet/table, use TOON. If it's a complex tree or graph, use JSON.
Does TOON support nested data?
Yes, TOON supports nesting using indentation (similar to YAML). However, TOON's token savings are most significant for flat or moderately nested structures. For deeply nested JSON (5+ levels), TOON can still work, but token savings will be smaller compared to flat arrays.
Token Reduction & Savings
How much token reduction can I expect?
Token reduction depends on your data structure:
Typical Results:
- Uniform arrays of objects: 50-60% reduction
- Mixed/nested data: 30-45% reduction
- Average across all data types: 46% reduction (based on official benchmarks)
Factors that affect reduction:
- ✅ More uniform = more savings: Arrays with consistent structure compress better
- ✅ Larger datasets = more savings: 100-item arrays benefit more than 5-item arrays
- ✅ Simpler keys = more savings: Short keys repeated many times save more tokens
Try it yourself: Use our converter with your actual data to see exact savings for your use case.
How much money can I save with TOON?
Token savings translate directly to cost savings. Here's a realistic example:
Scenario: Building a chatbot that passes user data to GPT-4
JSON Version (original):
- • 100 user objects
- • ~2,500 tokens per request
- • GPT-4 pricing: $0.03 per 1K input tokens
- • Cost per request: $0.075
- • 10,000 requests/month: $750/month
TOON Version (optimized):
- • Same 100 user objects
- • ~1,100 tokens per request (56% reduction)
- • Cost per request: $0.033
- • 10,000 requests/month: $330/month
Savings: $420/month ($5,040/year)
For higher-volume applications (100K+ requests/month), savings can reach $4,000-$8,000/month.
Does TOON work with all LLMs?
Yes! TOON works with all major Large Language Models:
Confirmed Compatible:
- ✅ OpenAI (GPT-4, GPT-4 Turbo, GPT-3.5, GPT-4o)
- ✅ Anthropic Claude (all versions including Claude 3)
- ✅ Google Gemini (all versions)
- ✅ Mistral AI
- ✅ Local models (Llama, Falcon, Vicuna, etc.)
- ✅ Any LLM that can parse structured text
How to use TOON with LLMs:
Simply paste your TOON data into your prompt. Most LLMs understand TOON format automatically. For best results, you can add a brief instruction like: "The following data is in TOON format (Token-Oriented Object Notation):"
Does TOON affect LLM accuracy?
No — in fact, TOON improves LLM accuracy according to official benchmarks.
Benchmark Results:
- • TOON accuracy: 70.1%
- • JSON accuracy: 65.4%
Why does TOON improve accuracy? Less punctuation = less noise for the LLM to parse. With JSON, LLMs spend tokens and attention on brackets, braces, and quotes. With TOON, they focus on the actual data.
Always test with your specific use case and LLM model. While benchmarks show improvement on average, edge cases may vary.
Technical Questions
What programming languages support TOON?
TOON has implementations in multiple programming languages:
Official/Well-Maintained:
- JavaScript/TypeScript:
@toon-format/toon(MIT license) - Python: python-toon (community)
- Go: go-toon (community)
See the TOON specification repository for links to all implementations.
Can I use TOON in my application or product?
Absolutely! TOON is an open specification with permissive licensing. You can:
- ✅ Use TOON in personal projects
- ✅ Use TOON in commercial products
- ✅ Integrate TOON libraries into your codebase
- ✅ Build tools and services around TOON
- ✅ Modify and extend TOON libraries (per their licenses)
No attribution required (though appreciated), and no licensing fees.
Is there an API for jsontotoon.com?
Not currently. Right now, jsontotoon.com is a web-based tool only. However, we're considering adding an API in the future.
Alternative: Use the official @toon-format/toon library directly in your code for programmatic conversion. It's free, open source, and works in Node.js, browsers, and Deno.
If you need API access, please let us know via our contact form. User demand will help us prioritize this feature.
What's the maximum file size I can convert?
There's no hard limit imposed by jsontotoon.com, but practical limits depend on your browser and device:
Typical Performance:
- < 1MB JSON: Converts instantly (< 100ms)
- 1-10MB JSON: Converts quickly (< 1 second)
- 10-50MB JSON: May take 2-10 seconds, depending on device
- > 50MB JSON: May slow down or cause browser issues
Recommendations:
- For large files (> 10MB), use a desktop browser (more memory)
- Close unnecessary tabs to free up memory
- For very large files (> 100MB), consider using the TOON library directly in Node.js or Python
Can I convert files (not just paste text)?
Currently, jsontotoon.com only supports paste-based conversion (copy/paste text into the input field). We don't have file upload functionality yet.
Workaround:
- Open your JSON file in a text editor
- Copy all content (Ctrl+A, Ctrl+C)
- Paste into jsontotoon.com
- Convert
- Copy the TOON output and save to a new file
Future feature: We're considering adding file upload, drag-and-drop support, and download TOON output as a file.
Does TOON support all JSON features?
TOON supports the vast majority of JSON features, including:
- ✅ Objects, Arrays, Strings, Numbers, Booleans, Null values
- ✅ Nesting (objects within objects, arrays within arrays)
- ✅ Unicode characters and emojis
Limitations/Differences:
- Key order in objects: Not guaranteed to be preserved (JSON spec doesn't require it anyway)
- Formatting: Whitespace and indentation in JSON are not preserved (only data is preserved)
For 99% of use cases, TOON is a drop-in replacement for JSON when passing data to LLMs.
Privacy & Security
Is my data safe when I use jsontotoon.com?
Yes, your data is completely safe because it never leaves your device. Here's how:
100% Client-Side Processing:
- • All conversion happens in your browser using JavaScript
- • Your JSON data is stored only in your browser's memory (RAM)
- • No network requests containing your data are made
- • We have no servers to store or process your data
We literally cannot see your data — even if we wanted to, we have no infrastructure to collect it.
Proof: Open your browser's Developer Tools (F12) → Network tab, and watch the network activity. You'll see no requests containing your data.
Do you collect or store my JSON data?
No, absolutely not. We do not collect, store, log, or transmit your JSON data in any way.
What we DON'T collect:
- ❌ Your JSON input
- ❌ Your TOON output
- ❌ Conversion history
- ❌ Personal information
- ❌ IP addresses (not logged by us)
What we MAY collect (anonymous analytics only):
- ✅ Page views
- ✅ General location (country/region)
- ✅ Browser type
- ✅ Device type
See our Privacy Policy for full details.
Can I use jsontotoon.com for sensitive data?
Yes, from a technical perspective, jsontotoon.com is safe for sensitive data because:
- Client-side processing: Data stays on your device
- HTTPS encryption: Connection is encrypted
- No logging: We don't log or store your data
Best practices still apply:
- ✅ Use on a secure, private network (not public Wi-Fi)
- ✅ Ensure your device is secure (antivirus, OS updates)
- ✅ Clear your browser cache/history if on a shared device
Does jsontotoon.com use cookies?
We use minimal essential cookies only for basic functionality:
- Preferences: Remember your theme (light/dark mode) or settings
- Analytics Cookies (Optional): Anonymous tracking (do NOT track personal information)
We do NOT use:
- ❌ Advertising cookies
- ❌ Social media tracking cookies
- ❌ Third-party marketing cookies
Usage & Features
How do I convert TOON back to JSON?
Conversion is bidirectional! To convert TOON → JSON:
- Click the swap button (↔️ icon) or toggle switch
- This switches the mode to "TOON to JSON"
- Paste your TOON data into the input field
- Click "Convert to JSON" button
- View your JSON output in the result field
- Copy the formatted JSON to clipboard
The conversion is lossless — you'll get back your original data structure exactly.
How do I copy the conversion result?
After converting, use the "Copy" button to copy the output to your clipboard:
- Convert your JSON to TOON (or vice versa)
- Look for the "Copy to Clipboard" button near the output field
- Click it
- You'll see a confirmation (e.g., "Copied!" tooltip)
- Paste (Ctrl+V / Cmd+V) into your destination
Troubleshooting: If the copy button doesn't work, try manually selecting the output text and copying (Ctrl+C), or check browser permissions for clipboard access.
Can I see example conversions?
Yes! Look for a "Try Example" or "Load Sample" button on the homepage to load a pre-filled JSON example.
Or try these sample JSON snippets:
Simple Array:
{
"users": [
{"id": 1, "name": "Alice", "role": "admin"},
{"id": 2, "name": "Bob", "role": "user"}
]
}Paste these into the converter and see the TOON output!
Are there keyboard shortcuts?
Currently, jsontotoon.com uses standard browser shortcuts (Ctrl+V/Cmd+V to paste, Ctrl+C/Cmd+C to copy, Tab to navigate). We're planning to add custom shortcuts like Ctrl+Enter to trigger conversion and Ctrl+K to clear all fields in the future.
Can I use jsontotoon.com offline?
Partially. You need internet to initially load the website (HTML, CSS, JavaScript files). However, once loaded, conversion works offline since all processing happens locally in your browser. Most browsers cache the website files, so if you've visited recently, the page loads faster from cache. We may add Progressive Web App (PWA) support in the future for full offline use.
Troubleshooting
The conversion isn't working. What should I do?
If conversion fails, try these troubleshooting steps:
- Check Your JSON is Valid: Use a JSON validator (e.g., jsonlint.com) to verify syntax. Common errors: Missing commas, unmatched brackets, unquoted keys.
- Refresh the Page: Sometimes browser state gets confused. Refresh (Ctrl+R / Cmd+R) and try again.
- Clear Your Browser Cache: Go to Settings → Privacy → Clear browsing data.
- Try a Different Browser: Test in Chrome, Firefox, or Safari.
- Check Browser Console for Errors: Press F12 to open Developer Tools → Console tab → Look for red error messages.
- Try Smaller Data: If your JSON is very large (> 10MB), try a smaller sample.
Still not working? Contact us with browser name/version, OS, sample JSON, and error messages.
I'm getting a parsing error. What does it mean?
Parsing errors usually mean your JSON is invalid. Common causes:
- Missing or extra commas
- Unmatched brackets { } or [ ]
- Unquoted keys (JSON requires double quotes)
- Single quotes instead of double quotes
- Trailing commas
How to fix:
- Use a JSON validator tool (jsonlint.com, jsonformatter.org)
- Fix the reported syntax errors
- Try conversion again
The output looks wrong or incomplete. Why?
If your TOON output seems incorrect, consider these possibilities:
1. Non-Uniform Arrays:
TOON works best with uniform data. If your array has objects with different keys, TOON may not compress optimally.
2. Deeply Nested Data:
TOON handles nesting, but very deep structures (5+ levels) may look complex in TOON format.
3. Expected Behavior:
TOON output intentionally looks different from JSON! It's supposed to be more compact.
Verification: Convert TOON back to JSON using the bidirectional feature and compare with your original JSON. If they match, TOON output is correct.
Can I report bugs or issues?
Yes, please do! We appreciate bug reports and feedback.
What to include in your report:
- Description: What went wrong?
- Steps to reproduce: How can we recreate the issue?
- Sample data: JSON that caused the problem (if not sensitive)
- Browser & OS: What browser and version? What operating system?
- Console errors: Open DevTools (F12) → Console, share error messages
Contact us and we'll respond within 2-3 business days.
Contributing & Feedback
Can I contribute to jsontotoon.com?
While jsontotoon.com's code is not currently open source, you can still contribute:
- Feedback: Share suggestions for improvements
- Bug reports: Help us identify and fix issues
- Content: Suggest FAQ questions, examples, or guides
- Spread the word: Share jsontotoon.com with other developers
We may open source the project in the future based on community interest.
How can I provide feedback?
We'd love to hear your feedback!
Types of feedback we're interested in:
- ✅ Feature requests
- ✅ Bug reports
- ✅ Usability suggestions
- ✅ Content improvements
- ✅ Success stories (how TOON helped you save costs)
Contact us and we aim to respond within 2-3 business days.
Can I request new features?
Absolutely! We're always looking to improve jsontotoon.com. Feature requests are welcome.
What to include:
- Description: What feature do you want?
- Use case: Why would it be useful?
- Priority: Is this critical or nice-to-have?
Popular feature requests we're considering:
- • API for programmatic access
- • File upload/download
- • Batch conversion (multiple files)
- • Conversion history (localStorage)
- • Browser extension
Your feedback helps us prioritize!
Ready to Start Optimizing?
Now that you know how jsontotoon.com works, it's time to see the savings for yourself!
No signup, no installation, no cost — just better token efficiency.