Paste your JavaScript object literal and instantly get clean TOML output. Automatically handles unquoted keys and JS-specific syntax. Includes key sorting for organized configuration files.
Paste your JavaScript object literal and instantly get clean TOML output. Automatically handles unquoted keys and JS-specific syntax. Includes key sorting for organized configuration files.
Common questions and answers about this topic.
A JavaScript object literal uses curly braces with unquoted or quoted keys and supports JS-specific values like undefined and trailing commas. TOML uses a flat key-value syntax with sections (tables), supports comments, native date/time types, and is designed to be human-readable for configuration files.
Yes, use the sort keys dropdown to alphabetically sort all TOML table keys (A to Z) or keep the original property order from your JavaScript object. The sorting is applied recursively to every nested TOML table.
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.
No, the JS object to TOML conversion happens entirely within your browser. Your JavaScript code is processed locally and is never sent to any remote server.