JSON to TOML

Build a TOML configuration from a JSON object.

Input

Processed on your device

How to convert JSON to TOML

Convert a JSON object into TOML syntax for a tool that reads TOML tables and values.

  1. Paste a top-level object and convert.
  2. Inspect arrays, nested tables and keys containing punctuation before applying the output in a project.
  3. Select Convert and review the result.
Example input
{"title":"Field Notes","inStock":true,"quantity":12,"tags":["paper","stationery"]}

Example use

Translate a small application configuration between two environments that expect different text formats.

Output and compatibility

TOML and JSON do not support all the same value types or document shapes. JSON nulls and a top-level scalar or array may require an explicit mapping or source adjustment.

Troubleshooting

If the serializer rejects the source, choose a top-level object and remove or represent values that the target TOML specification cannot express.

Use TOML to JSON to compare how the configuration reads afterward.

Frequently asked questions

Can I convert a JSON document with a null field?

TOML has no native null. Choose an appropriate field value or omission based on the destination.

Find a tool