Input TOML

Converted JSON

What Is TOML to JSON?

TOML (Tom's Obvious Minimal Language) is a config format. TOML to JSON converts TOML to JSON. Use it when tools expect JSON or for API integration. The TOML spec and JSON spec define the formats.

This tool runs entirely in your browser. Nothing is sent to a server. Paste TOML or upload a file; get JSON output. For the reverse, use JSON to TOML. For TOML to YAML, use TOML to YAML. For formatting TOML first, use TOML Formatter.

TOML to JSON Examples

Convert TOML to JSON. Telecom-themed example:

Example: Subscriber config

TOML Input

JSON output:

JSON Output

Click the Sample button above to load more examples into the editor.

How to Use This Tool

1

Paste or Upload

Paste TOML into the left panel or upload a .toml file. Use Sample to load example config. Use Clear to reset.

2

View JSON Output

The right panel shows converted JSON. TOML tables become JSON objects. Invalid TOML will show an error.

3

Copy or Download

Use Copy or Download to get the JSON. For formatting JSON, use the JSON Formatter. For validation, use JSON Validator.

When TOML to JSON Helps

When migrating config, feeding JSON APIs, or using tools that only accept JSON, convert TOML here. Great for Cargo.toml, pyproject.toml, and other config files. For YAML output, use TOML to YAML. For XML, use TOML to XML.

Frequently Asked Questions

Is my data private?

Yes. Conversion runs entirely in your browser. No data is sent to any server.

Are comments preserved?

No. JSON does not support comments. TOML comments are dropped during conversion.

What about dates?

TOML dates become JSON strings in ISO format. Check the output for your use case.

TOML to JSON vs JSON to TOML?

TOML to JSON converts config to JSON. JSON to TOML does the reverse. Use the one that matches your source format.

Can I convert nested tables?

Yes. TOML nested tables become nested JSON objects. The structure is preserved.

Related Tools

TOML. JSON spec. TOML spec. RFC 8259. MDN. YAML. Postman.