TONL to CSV Converter
Input TONL
or drop a file anywhere
Output CSV
Your CSV appears here as you type.
Paste data to see token savings
Convert TONL to CSV with our free online converter.
Example: TONL input and real CSV output
The output below was generated by the same conversion code the converter uses, run on this sample when the page was built.
#version 1.0
root[4]{name,price,sku,stock}:
USB-C cable,9.99,SKU-104,240
Laptop stand,34.5,SKU-221,58
Webcam cover,3.25,SKU-310,1200
Desk mat,19,SKU-415,0name,price,sku,stock
USB-C cable,9.99,SKU-104,240
Laptop stand,34.5,SKU-221,58
Webcam cover,3.25,SKU-310,1200
Desk mat,19,SKU-415,0CSV output is 17% smaller than the TONL input. The same data is 252 characters as minified JSON and 373 as pretty-printed JSON. Sizes are character counts, not tokens: token counts depend on the model's tokenizer (see the tokenizer comparison).
TONL to CSV: what changes
- Reading TONL: TONL documents start with a #version line and wrap the data in root. The TONL encoder writes object keys in alphabetical order, so the original key order is not kept.
- Writing CSV: CSV output needs a root-level array of flat objects; anything else fails with "CSV output requires an array of objects". Nested objects are not flattened, so extract or flatten them first.
About TONL
TONL (Token-Optimized Notation Language) is a compact text format that maps one-to-one to JSON and ships with a query API, schema validation, and streaming. Savings are roughly 32-45% versus JSON in the TONL project's own measurements.
- ✓Lossless round trip to JSON
- ✓Query and aggregation API
- ✓Schema validation (TSL)
- ✓Streaming for large files
About CSV
Comma-Separated Values is the standard format for tabular data. Perfect for spreadsheets, data analysis, and simple data exports.
- ✓Spreadsheet compatible
- ✓Simple
- ✓Universal
- ✓Great for data analysis
Why Convert TONL to CSV?
Use CSV when working with spreadsheets (Excel, Google Sheets), doing data analysis, or exporting data for external use.
TONL to CSV: Frequently Asked Questions
How do I convert TONL to CSV?
Paste your TONL into the editor on json2toon.co. The tool detects the input and produces CSV instantly, then you copy the result. Conversion runs entirely in your browser, so nothing is uploaded to a server.
Is the TONL to CSV converter free?
Yes. Converting TONL to CSV on json2toon.co is free with no account, signup, or usage limit. A free public API is also available for automated, programmatic conversion.
Why convert TONL to CSV?
Convert TONL to CSV with our free online converter.
What should I watch out for when converting TONL to CSV?
CSV output needs a root-level array of flat objects; anything else fails with "CSV output requires an array of objects". Nested objects are not flattened, so extract or flatten them first.
Is my data safe when I convert TONL to CSV?
Yes. The TONL to CSV conversion happens client-side in your browser. Your source data stays on your device and is never sent to or stored on a server, which makes it safe for private or sensitive payloads.