Paste JSON or TOML below and convert either direction. Parsing/writing TOML isn't practical in a browser without an external library, so this one round-trips to the server to convert — nothing is stored, the request/response is the only place it exists.
tomllib (parsing) and tomli_w (writing) on the server — the only way to get correct, spec-compliant TOML without an external JS library.null, so a JSON null anywhere in the input can't be converted.curl -sS "https://devops.majbase.com/json-toml-converter/api" \
--data-urlencode 'direction=json-to-toml' \
--data-urlencode 'text={"name": "my-app", "port": 8080}'
Returns {"result": "..."}, or {"error": "..."} for malformed input. Use direction=toml-to-json for the other way; optional sort_keys=true and indent=2|4 (toml-to-json only).