JSON to TOML
Convert a JSON object to TOML for Rust, Python and static-site generator configs.
Runs in your browser. Nothing is uploaded Free, no sign-up Works on mobile
How to convert JSON to TOML
- Paste your JSON or open a file.
- Adjust the options if needed.
- Copy the TOML or download it as a file.
Frequently asked questions
Why does conversion fail for a JSON array?
A TOML document must be a table (object) at the top level. Wrap your array in an object, for example {"items": [...]}.
Is my data sent to a server?
No. Everything runs in your browser, so API keys, tokens, configs and customer data never leave your machine.
Related tools
All Developer Tools →- TOML to JSON Convert TOML files such as Cargo.toml, pyproject.toml and Hugo configs to JSON.
- JSON to YAML Convert JSON to clean, readable YAML for Kubernetes manifests, Docker Compose, GitHub Actions and config files.
- Base64 Encode / Decode Convert text to and from Base64, the encoding used in data URIs, emails, JWTs and basic authentication headers.
- URL Encode / Decode Make text safe for URLs and query strings, or read encoded URLs from logs and analytics.
- HTML Entity Encoder Safely show code and special characters on a web page, or turn &-style entities back into readable text.
- SQL Formatter Make long, single-line SQL queries readable for code reviews, documentation and debugging.