Skip to content
ConvertPassConvertPass home

Developer

JSON to TOML

Serialise JSON config as TOML when the root is an object.

This tool processes files and text locally in your browser. Your content is not uploaded or stored by this site.

0 B
Empty

Empty. Paste text, drop a file, or load the example.

What this tool does

The JSON must be an object. Arrays are allowed as values. Null is not a TOML type and will fail rather than being rewritten as a string.

How to use it

  1. Paste a JSON object.
  2. Download converted.toml.
  3. Open it next to the original keys to confirm tables.

Supported input

  • JSON object, UTF-8, up to 2 MB

Output

  • TOML text

Privacy

This tool processes files and text locally in your browser. Your content is not uploaded or stored by this site.

ConvertPass does not include your input in analytics, URLs, or error reports. Encoding: UTF-8. Limit: 2 MB (2.00 MB).

Limitations

  • Null values are not representable in TOML.
  • Key names with some punctuation may be quoted.

Example

Input
{"title":"ConvertPass","limits":{"bytes":2097152}}
Output
title = "ConvertPass"

[limits]
bytes = 2097152

Troubleshooting

Root is an array
Wrap it: {"items": [ ... ]}.

FAQ

Why reject null?

TOML has no null. Turning null into "null" or omitting the key would be a silent policy. ConvertPass fails so you can choose.

Will numbers stay integers?

If they are integers in JSON they stay integers. 1.0 may be a float depending on the JSON parser.

Can I emit dotted keys?

The serialiser may use tables instead of dotted keys. Both are valid TOML.

Is the output stable?

Key order follows the JSON object order from the parser, which preserves insertion order in modern JavaScript.

Related tools

  • TOML to JSON

    Turn TOML config into JSON without uploading your secrets file.

  • JSON to YAML

    Turn JSON into readable YAML without leaving your machine.

  • JSON to .env

    Write a .env file from a JSON object without guessing nested key names.

Related guides

Related formats

Last reviewed 16 August 2026. Report a problem. Reports do not include your input.