# JSON to TOML

Convert JSON documents to TOML.

## URL

https://ilham.dev/tools/json-to-toml/

## What It Does

Convert JSON to TOML, mapping objects to tables and arrays of tables to the TOML equivalent. Useful for turning an API response into a config file.

## Features

- Runs in the browser
- No login required

## Input

text input.

## Output

text output.

## Privacy

Processing happens locally in the browser.

No input data is uploaded to ilham.dev.

- Requires login: false
- Requires API key: false
- Stores user data: false


## Examples

- Why is a nested structure sometimes rejected?




## Questions

### Why is a nested structure sometimes rejected?

JSON and TOML do not have exactly the same types. A top-level list is rejected, but a `null` field can disappear from the TOML without an error. Check the output field by field. Decide for yourself whether the receiving program expects that field to be absent or to have some other value.

