Free TOML to JSON — Cargo.toml · pyproject.toml · config.toml

Convert TOML to JSON
Cargo, pyproject
and any TOML file.

Convert any TOML file to JSON instantly. Full TOML support: tables, array of tables, inline tables, all value types. Runs entirely in your browser.

Your data never leaves your browser
Cargo.toml supported
pyproject.toml supported
[[array of tables]]
Always free
TOML to JSON Converter   100% client-side
TOML input
  JSON ready

      
TOML features supported

All standard TOML types and structures are handled.

TOML syntaxJSON outputExample
[section]Nested object{"section": {...}}
[[array]]Array of objects{"array": [{...}, {...}]}
[a.b.c]Deeply nested{"a": {"b": {"c": {}}}}
key = "value"String"key": "value"
count = 42Integer"count": 42
pi = 3.14Float"pi": 3.14
active = trueBoolean"active": true
tags = ["a", "b"]Array"tags": ["a", "b"]
info = {k = "v"}Inline table"info": {"k": "v"}
date = 2024-01-15Date string"date": "2024-01-15"
Common use cases
Cargo.toml → JSON

Inspect Rust project metadata, dependencies and build profiles as JSON. Useful for tooling, scripts and CI pipelines that need to read Cargo manifest data without a Rust toolchain. The [[bin]] and [[example]] array-of-tables sections are converted to JSON arrays.

pyproject.toml → JSON

Read Python project configuration and Poetry/Hatch dependencies as JSON. The nested dotted-key syntax ([tool.poetry.dependencies]) is correctly resolved to nested JSON objects — {"tool": {"poetry": {"dependencies": {...}}}}.

Server config files

Many tools use TOML for configuration — Gitea, Prometheus Alertmanager, Hugo, Zola. Convert any config.toml to JSON to inspect it in a JSON viewer, validate it against a schema, or feed it into a JSON-based configuration management system.

API and data pipelines

Data pipelines that ingest TOML configuration files but output JSON — convert TOML manifests to JSON for REST API consumption, database storage or front-end rendering without installing a TOML parser in every service.

Popular searches
toml to json convert toml to json toml to json online toml to json converter cargo toml to json pyproject toml to json toml to json python toml to json javascript toml file to json

TOML parsed entirely
in your browser. No server needed.

The TOML parser is implemented in vanilla JavaScript — no external library, no CDN dependency. It handles all standard TOML features: basic and literal strings, integers (including hex, octal and binary), floats (including inf and nan), booleans, dates, arrays, inline tables, standard tables, dotted-key tables and array-of-tables.

Comments (# inline) are stripped correctly even when they follow a value on the same line.

No external library
The TOML parser is ~200 lines of vanilla JS — no CDN, no npm, no runtime dependency.
[[Array of tables]]
The most complex TOML feature — [[sections]] that define arrays of objects — is correctly handled.
Dotted key tables
[tool.poetry.dependencies] style keys are correctly resolved to deeply nested JSON objects.
47 tools, always free
No file size limits, no watermarks, no account. Funded by non-intrusive display advertising only.
Frequently asked questions
How do I convert Cargo.toml to JSON?
Paste your Cargo.toml directly into the converter and click Convert. The [[bin]], [[example]] and [[test]] array-of-tables sections become JSON arrays, and nested tables like [profile.release] become nested objects.
How do I convert TOML to JSON in Python?
Python 3.11+ has tomllib built-in: import tomllib, json; data = tomllib.loads(toml_string); print(json.dumps(data, indent=2)). For older Python: pip install tomli then import tomli as tomllib.
How do I convert TOML to JSON in JavaScript?
Use the @ltd/j-toml or @iarna/toml packages: npm install @ltd/j-toml; const TOML = require('@ltd/j-toml'); const data = TOML.parse(tomlString); console.log(JSON.stringify(data, null, 2)). Or use this online tool for quick conversions without installing anything.
Is the TOML to JSON converter free?
Yes, completely free. No file size limits, no account required.
Go up