Convert TOML configuration into JSON.
The TOML to JSON converter parses TOML and shows the equivalent JSON, updating as you type. Use it to see how a configuration file such as pyproject.toml or Cargo.toml reads as plain data. Parse errors include the line and column.
TOML (Tom's Obvious Minimal Language) is a configuration file format designed to map unambiguously to a hash table. It uses key = value pairs, tables written as [section] headers, arrays of tables written as [[section]], and typed values: strings, integers, floats, booleans, arrays, and date and time values. Version 1.0.0 is the current stable specification. Because TOML maps to nested key-value structures, it converts cleanly to JSON objects and arrays. The differences are types JSON lacks. TOML has native date and time values, which this tool writes as strings in JSON, for example a UTC date-time becomes 1979-05-27T07:32:00.000Z. TOML integers are 64-bit while JavaScript numbers are exact only to 2^53, so this tool refuses integers it cannot represent exactly. Comments starting with # are dropped.
TOML date and time values have no JSON type, so they are output as strings. Date-times with a time part are shown in ISO form with milliseconds.
No. JSON has no comments.
Integers that cannot be represented exactly as a JavaScript number are rejected with an error rather than silently rounded.
[a] defines a single table. [[a]] adds an element to an array of tables.
Yes, with the JSON to TOML tool, within the limits of what TOML can express.
No. The conversion runs in the page and the text you enter is not sent anywhere.