Formateurs & Code
Convertisseur TOML ⇄ JSON
Convert between TOML and JSON — both directions.
Note de la rédaction
Understanding · The config language that wanted to be obvious.
Ce chapitre approfondi n'est actuellement disponible qu'en anglais. L'outil de conversion ci-dessus fonctionne dans votre langue ; le long article explicatif n'a pas encore été traduit.
Questions fréquentes
Quick answers.
›Does TOML support all JSON data types?
Yes. TOML supports strings, integers, floats, booleans, and arrays, which map directly to JSON types. Note that TOML also has a native Datetime type that JSON does not, which usually converts to an ISO 8601 string.
›Is my configuration data secure?
Yes. The conversion logic runs entirely within your browser's memory using JavaScript. No data is sent to a server or stored externally.
›Why use TOML instead of JSON for config files?
TOML is designed to be easier for humans to read and write. It allows comments, supports multi-line strings, and relies on a less syntax-heavy structure than JSON's braces and quotes.
›Does the converter handle nested tables?
Yes. Nested TOML tables and arrays of tables are correctly converted into nested JSON objects and arrays.
Les internautes recherchent aussi
Outils similaires
More in this room.
- Convertisseur JSON en XMLConvertit JSON en XML propre et bien formé.
- Convertisseur CSV en JSONTransformez instantanément des feuilles de calcul en tableaux JSON.
- Convertisseur YAML en JSONConvertissez YAML en JSON — instantané, uniquement sur navigateur.
- Convertisseur JSON en ExcelTransformez les tableaux JSON en feuilles de calcul Excel.
- Convertisseur INI ⇄ JSONConvertir les fichiers de configuration INI en JSON et vice-versa.
- Convertisseur de Schéma SQL → NoSQLTransformez un CREATE TABLE en une forme de document JSON.