Convert TOML to JSON Online
Convert TOML configuration files to JSON format. Handles Cargo.toml, pyproject.toml, Hugo configs, and any TOML document with full spec compliance.
TOML <-> JSON Converter
Convert between TOML and JSON formats instantly
Quick Start
- 1Paste your TOML content into the input editor
- 2JSON output appears automatically
- 3Review the converted JSON structure
- 4Copy or download the JSON result
What This Tool Does
TOML is read by a full parser rather than a set of pattern matches, so tables, arrays of tables, dotted keys, inline tables, multi-line strings and every numeric form (hex, octal, binary, exponents and underscore separators) come through with their real types.
Dates are where TOML and JSON stop agreeing. An offset date-time carries a timezone and is written out as an ISO 8601 string. A local date, local time or local date-time has no offset, so it is kept exactly as written instead of being pushed into UTC and silently shifting by a few hours.
Validate only is worth using on its own. It parses without producing output and tells you whether the document is valid, which is a quick way to check a Cargo.toml or a pyproject.toml before you commit it.
Limits Worth Knowing
- Input is capped at two megabytes, because the whole parse runs on your own machine.
- Comments are not carried into the JSON. TOML files tend to be heavily commented, so keep the original.
- A duplicate key, or a table declared twice, is a hard error with a line and column rather than a last-one-wins merge.
- Going the other way, a JSON null becomes an empty string, because TOML has no null value.
- Output indentation is two spaces, four spaces, a tab, or minified onto a single line.
Common Questions
Does it handle arrays of tables?
Why is my date still a string?
Can I convert JSON back to TOML?
More Convert Tools
All converters →Convert Design Tokens Between CSS, SCSS, and JSON
Convert design tokens between CSS custom properties, SCSS variables, and JSON formats. Free online design token converter.
Convert Punycode to Unicode Domain Names Online
Encode and decode Punycode for internationalized domain names (IDN). Free online Punycode converter.
Convert Text Case Online - camelCase, snake_case, UPPERCASE
Convert text between camelCase, snake_case, PascalCase, UPPERCASE, lowercase, and more. Free online case converter.
Convert Word to PDF Online Free
Convert Word .docx documents to PDF online for free with no email and no watermark. Runs in your browser, your file is never uploaded.
Convert Resume to PDF Online Free
Turn your Word resume or CV into a clean PDF online for free. No email signup, no watermark, file never leaves your browser.
Convert HEX to HSL Online
Convert a HEX color to HSL online for free with a live preview. See RGB and HSL values at once, ideal for CSS hover and theme states.
Looking for FAQs and advanced options? Visit the full TOML/JSON Converter page →