JSON to TOML
Generate TOML from a strict JSON object, retain signed 64-bit integer digits, quote keys and reject unsupported null values.
This tool processes its input contents in your browser instead of sending them to a processing service. Page, asset and fixed usage-measurement requests are described on the Privacy page.
Generate TOML-compatible configuration from one strict JSON object with quoted keys, exact signed 64-bit integer tokens and explicit unsupported-type errors.
How to use it
- 1Paste a strict JSON object with no null values.
- 2Generate TOML and review type/range errors or the quoted-key result.
- 3Copy the complete configuration or download its TOML file.
Example
- Input
- {"name":"demo","enabled":true,"ids":[9007199254740993]}
- Output
- "name" = "demo" "enabled" = true "ids" = [9007199254740993]
The large integer remains within signed 64-bit range and is emitted without Number rounding.
What happens to your data
TOML text is generated from the bounded lossless JSON syntax tree in your tab. Configuration values are not sent to Python packaging tools, a parser service or an external endpoint.
Last updated November 2026
Generate a TOML configuration document from a JSON object. Every key is quoted, so dots and unusual names stay literal keys rather than becoming accidental table paths. Nested objects use inline tables, and ordered arrays retain their items.
How it works
The result uses TOML 1.0-compatible syntax, also accepted by TOML 1.1 parsers. A top-level object is required because a TOML document represents a table. Null has no equivalent and is rejected at any depth. Date-looking JSON strings remain quoted strings; the converter does not infer TOML date/time types. Empty objects and arrays are retained; an empty root object produces a valid empty TOML document.
Integer tokens must fit TOML's signed 64-bit range and retain their digits. Decimal/exponent spellings are retained in generated text, but TOML floating values use binary64 and are not arbitrary-precision decimals. Values that overflow or underflow that representation are rejected. This is generation rather than a round-trip formatter: comments, original JSON string escapes and whitespace are not retained. No TOML parser or remote configuration service is called.
Input is bounded to 128 KiB, depth 24 and 5,000 values; duplicate property names and unpaired Unicode surrogates fail. Results have a bounded preview, while copy/download contains the complete generated output. Editing input or settings invalidates old results. Examples are excluded from workflow activity.
Worked example: JSON to TOML example
- Input
- {"name":"demo","enabled":true,"ids":[9007199254740993]}
- Result
- "name" = "demo" "enabled" = true "ids" = [9007199254740993]
The large integer remains within signed 64-bit range and is emitted without Number rounding.
Common use cases
- Prepare configuration values for a TOML-based project.
- Convert nested reviewed settings while keeping literal dotted keys.
- Generate a portable starting point for a pyproject-style configuration.
Frequently asked questions
Does JSON null become an empty TOML value?+
No. TOML has no null type. Remove or deliberately replace such values before converting; nothing is silently dropped.
Can this convert TOML back to JSON?+
This workspace generates TOML only. It does not parse TOML or promise a comment/type-preserving round trip.
Do decimal values stay arbitrary precision?+
Their text spelling is retained, but TOML numeric semantics use binary64 for floats. Use strings when exact arbitrary decimal semantics are required.
Standards and limitations
Related tools
JSON Merge Patch
Apply an object-shaped JSON merge patch, preview null deletions and whole-array replacement, and download the resulting JSON locally.
JSON Array Transformer
Sort JSON arrays by a property or remove duplicates while keeping exact numbers and the first matching item.
JSON Redactor
Replace values at explicit JSON pointers, preserve other fields and inspect a shareable JSON result locally.
JSON to Python Dataclass
Generate a Python dataclass template with original-key mapping, exact integers and Decimal-aware JSON decoding.