JSON to TOML Converter
NOVOConvert a JSON object to TOML in your browser, with clear messages for nulls, top-level arrays and syntax errors.
Funciona 100% no seu navegador — o que você insere nunca é enviado nem armazenado nos nossos servidores.
Esta ferramenta ainda não está totalmente traduzida, por isso parte do texto continua em inglês. A ferramenta funciona da mesma forma em todos os idiomas.
TOML limits: the top level must be an object (not an array or a bare value) and TOML has no null — a null is reported with its path, or dropped if you choose “Omit them”. Arrays that mix types are written as inline arrays, which TOML 1.0 allows. Whole numbers such as 1.0 are written as integers because JSON does not tell them apart.
Exemplos rápidos
Entradas típicas e os resultados que esta ferramenta gera.
Visão geral
JSON to TOML Converter turns a JSON object into a TOML file. Nested objects become [tables], arrays of objects become [[array tables]], and plain values are written with TOML quoting and number rules.
The two formats are not equal in what they can express. TOML needs an object at the top level and has no null, so the tool tells you exactly where a null sits, or drops it when you choose to omit nulls. If the JSON itself is invalid, the message names the problem and points to the line and column.
Conversion happens in your browser; the JSON you paste or open is never uploaded.
Por que usar esta ferramenta?
- Moves API or app settings into Cargo.toml-style files without hand editing
- Null and top-level array problems are explained with the path, not a stack trace
- JSON syntax errors show line, column and the broken line
- Runs locally, so private settings stay on your device
Recursos
Paste or upload
Paste JSON or open a .json file up to 2 MB.
Tables and arrays
Objects become [tables]; arrays of objects become [[array tables]].
Null option
Report each null with its path, or leave null keys and items out.
Strict JSON errors
Trailing commas, single quotes and other slips are located precisely.
Swap direction
Pass the TOML to the TOML → JSON tool to check the round trip.
Copy or download
Copy the TOML or save it as a .toml file.
Como usar
Add your JSON
Paste an object, open a file, or press Load sample.
Pick null handling
Leave it on "Report an error" or choose "Omit them".
Check the output
The TOML updates as you type; amber notes list anything that was changed.
Copy or download
Use Copy, Download .toml, or Swap to go back to JSON.