TOML to JSON (URL)
Convert a remote TOML URL to a downloadable JSON file.
GET
1 credit
/v1/convert/toml-to-json-file
curl -OJ "https://convert.toolkitapi.io/v1/convert/toml-to-json-file?url=https://toolkitapi.io/pyproject.toml"
import httpx
resp = httpx.get(
"https://convert.toolkitapi.io/v1/convert/toml-to-json-file?url=https://toolkitapi.io/pyproject.toml",
)
print(resp.json())
const resp = await fetch("https://convert.toolkitapi.io/v1/convert/toml-to-json-file?url=https://toolkitapi.io/pyproject.toml", {
});
const data = await resp.json();
console.log(data);
# See curl example
Response
200 OK
Binary JSON file streamed as a download (Content-Type: application/json)
Description
Convert a remote TOML URL to a downloadable JSON file.
How to Use
1
1. GET with the TOML `url`.
2
2. Save the streamed JSON.
About This Tool
Fetches a TOML file from a public URL and streams back JSON. URL-based counterpart to [TOML to JSON](/convert/tools/toml-to-json).
Why Use This Tool
- Project metadata — Snapshot pyproject.toml or Cargo.toml as JSON for analytics
- Config exports — Distribute TOML configs as JSON for consumers
- CI artifacts — Produce JSON artifacts from TOML sources
- Batch migration — Convert TOML archives to JSON
Frequently Asked Questions
Are TOML comments preserved?
No — JSON has no comment syntax.
Are datetimes converted?
Yes — as ISO-8601 strings.
Can I parse invalid TOML?
Invalid TOML yields a `400` response with a parse error message.
Start using TOML to JSON (URL) now
Get your free API key and make your first request in under a minute.