TOML to JSON
TOML in, JSON out, with the failing line named.
FREE - NO SIGN-UP - RUNS ON YOUR DEVICE
Runs in your browser tab
- TOMLin
- JSONout
- 0uploads
- 1 tapto save
What you can count on
- Lineand column
- Errors name both, not just one
- No stack traces to decode
- 2directions
- Opens on TOML into JSON
- Switch back without leaving
- 0uploads
- Your data stays in this tab
- Nothing is sent anywhere
TOML to JSON at a glance
- Opens on
- TOML into JSON
- Tables
- Tables become objects
- Dates
- Dates become text
- Errors
- Sentence with line and column
- Two buttons worth knowing
- Reverse, and same-format tidy
- Formats
- JSON, YAML, CSV, TOML, JSONL
- Price
- Free
- Account needed
- None
- Where processing happens
- On your device
How to use TOML to JSON
- 1
Paste your TOML
A sample is already loaded, so replace it with your own config file.
- 2
Read the JSON
The JSON appears below as you type, or a sentence naming the line and column that failed.
- 3
Copy or download
Copy the JSON in one tap, or download it as a .json file.
Frequently asked questions
What happens to TOML dates?
They come across as text. JSON has no date type, so a TOML date or timestamp is written as the string it looked like in the file.
Are table arrays supported?
Yes. A repeated table header becomes a list of objects in the JSON, which is how a Cargo dependency block or a set of build steps comes across.
Can I go the other way?
Yes, with one thing to know: TOML needs a named table at the top level, so a plain JSON list is written under a key called rows and the panel says so.
Notes on TOML
The panel opens already set to TOML in and JSON out, with a sample loaded. Replace it with your own config and the JSON appears as you type. Both selectors still move.
- A repeated table header is a table array, and becomes a list of objects.
- Dates and timestamps come across as text, because JSON has no date type.
- Going the other way, a top-level list is written under a key called rows.
Full specification
| Opens on | TOML in, JSON out. Both selectors change without leaving the page. |
|---|---|
| Tables | A table becomes an object and a table array becomes a list of objects. |
| Dates | TOML date and time values come across as text, because JSON has no date type. |
| Errors | A sentence naming the line and column, with what the parser expected there. |
| Two buttons worth knowing | Reverse swaps the formats and feeds the result back in, so you can check a conversion. Setting both selectors the same tidies instead of converting. |
| Formats | Five first-class formats — JSON, YAML, CSV, TOML and JSONL — and any direction between them. JSONL is in both selectors, not a side option. |
| Price | Free. Supported by clearly labeled ads outside the working area. |
| Account needed | No. |
| Where processing happens | In your browser tab. Nothing is uploaded. |
Keep going with the same files
All developer tools: Developer tools on SPOTTOOLS