Search Tools

Search and navigate to any tool quickly

CSV/JSON → TONL Converter

Convert CSV or JSON into TONL (Token-Optimized Notation Language) for compact, LLM-friendly structured data.

Options

Input Settings

TONL Settings

Input
Loading...
TONL Output
Loading...

About CSV/JSON → TONL Converter

When you feed structured data to a large language model, every repeated key and bracket costs tokens — and tokens cost money and eat into the context window. A JSON array of a hundred records repeats each field name a hundred times. TONL (Token-Optimized Notation Language) keeps the data readable while stripping that redundancy, which is why it can meaningfully shrink the payload you send to a model.

This converter takes the CSV or JSON you already have and turns it into TONL. Paste a CSV export from a spreadsheet or a JSON response from an API, pick your encoding options, and get compact TONL out the other side — along with an estimate of how many tokens you saved versus the original. That estimate lets you decide whether the trade is worth it for your prompt.

Conversion runs in your browser, so datasets stay on your machine. Tune the delimiter, indentation, and whether to include type hints to match what your downstream prompt or parser expects.

How to use CSV/JSON → TONL Converter

  1. Choose your input format

    Select CSV or JSON. For CSV, set the delimiter and whether the first row is a header so columns map to field names correctly.

  2. Paste your data

    Drop a CSV export or a JSON array into the input pane. The built-in example shows the expected shape if you need a starting point.

  3. Set the TONL options

    Pick a delimiter and indent level, and toggle smart encoding or type hints depending on how compact versus explicit you want the output.

  4. Convert and check the savings

    Run the conversion, then read the token estimate to see how much smaller the TONL is than the original before copying it into your prompt.

Frequently asked questions