Skip to content
ConvertPassConvertPass home

Developer

TOML to JSON

Turn TOML config into JSON without uploading your secrets file.

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

smol-toml parses the document. Offset date-times become ISO strings. This is aimed at Cargo.toml-style config, not at TOML's rarer datetime variants as live Date objects.

How to use it

  1. Paste TOML.
  2. Copy JSON.
  3. Keep secrets in the browser; reset when finished.

Supported input

  • TOML text, UTF-8, up to 2 MB

Output

  • Pretty-printed JSON

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

  • TOML inline tables and dotted keys are expanded into nested JSON objects.
  • Datetime values are serialised as strings.

Example

Input
title = "ConvertPass"
local = true

[limits]
bytes = 2097152
Output
{
  "title": "ConvertPass",
  "local": true,
  "limits": {
    "bytes": 2097152
  }
}

Troubleshooting

Invalid TOML near a table header
Table headers cannot appear twice with conflicting types. Check that [limits] is not also assigned as a key.

FAQ

Can I convert Cargo.toml?

Yes, as data. The tool does not understand Cargo semantics such as workspace inheritance.

Are comments preserved?

No. JSON has no comment syntax.

Does this execute TOML?

No. TOML is data. Still, treat config files as sensitive and reset the tool afterwards.

What TOML version is this?

The parser targets TOML 1.0. Features from earlier drafts that never landed are not supported.

Related tools

  • JSON to TOML

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

  • YAML to JSON

    Parse YAML into JSON without custom tags or server-side processing.

  • .env to JSON

    Parse a .env file into JSON without sending secrets to a server.

Related guides

Related formats

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