The converter parses JSON with JSON.parse and serializes it with @iarna/toml. Nested objects become TOML tables, primitive arrays become TOML arrays, object arrays become array-of-tables, and date-looking JSON strings remain strings because JSON itself has no native date type.
TOML does not have a direct null value. Use this tool for JSON configuration objects that already map cleanly to TOML values, and review fields that were null in the source before committing the converted config.
Common questions and answers about this topic.
JSON uses curly braces and strict quoting rules, while TOML uses a flat key-value syntax with sections (tables). TOML supports comments, native date/time types, and is designed to be more human-readable for configuration files.
TOML is widely used for configuration files including Rust's Cargo.toml, Python's pyproject.toml, Hugo site config, and many CLI tools. Its readable syntax makes it ideal for settings that humans frequently edit.
Yes, the sort keys dropdown allows you to alphabetically order all TOML table keys (A to Z) or retain the original sequence from your JSON. Sorting applies recursively across all nested TOML tables and sub-tables.
No, the JSON-to-TOML conversion is performed entirely in your browser using JavaScript. Your JSON data stays on your device and is never uploaded to any server.