TOML / JSON Converter
Convert and format between TOML and JSON. View syntax errors, copy and download.
How to Use
Enter Data
Paste your TOML or JSON into the input box — config files (Cargo.toml, pyproject.toml) or API responses work as-is.
Choose Direction
Click "TOML → JSON" or "JSON → TOML" and the formatted result appears in the output box.
Use the Result
Copy to clipboard, or download the result as a .json / .toml file.
About the TOML / JSON Converter
A web tool that converts between TOML (Tom's Obvious, Minimal Language) and JSON (JavaScript Object Notation). It bridges TOML — widely used in Rust's Cargo.toml, Python's pyproject.toml, and many app config files — with JSON, the dominant format for APIs and program interchange. It supports the main syntax including tables, arrays, inline tables, arrays of tables, and multiline strings. All processing happens entirely in your browser, so your input is never sent to any server — even sensitive config files stay private.
Features
- Two-way ConversionTOML→JSON and JSON→TOML, both with a single click.
- Main Syntax SupportCorrectly handles tables, arrays of tables, inline tables, multiline strings, numbers and datetimes.
- Syntax ErrorsInvalid input shows an error with the line number so you can fix it fast.
- Privacy ProtectedAll conversion runs in your browser. Data is never sent to servers.
Use Cases
- Inspect and edit Rust Cargo.toml or Python pyproject.toml
- Convert TOML config into JSON for programmatic use
- Convert JSON config into readable TOML
- Convert static-site config files (Hugo, Netlify, etc.)
- Validate config syntax and standardize formatting
FAQ
Is the TOML / JSON converter free?
Is my data sent to a server?
Are TOML comments preserved after conversion?
How are JSON null values handled?
How are datetimes converted?
What causes a "syntax error"?
Feedback
Missing a feature, or getting a result that looks wrong? Let us know — we improve our tools based on your feedback.