TOML to JSON
Turn TOML configuration into JSON for inspection or reuse. Review the result's number and date notes before passing it to another tool.
Convert TOML
- Paste TOML or choose a local UTF-8 file.
- Choose Pretty or Compact and select Convert.
- Review the result, then copy it or download a JSON file.
How the values map
Tables become objects. Arrays keep their item order. Strings and booleans keep their values.
Integers keep exact decimal digits within the signed 64-bit range. A JSON reader can round large integers even when the text contains the original value.
Dates and times become strings. Local times stay local, and numeric offsets remain in the string.
Examples
The integer 9007199254740993 appears with all its digits. Its floating-point spelling with .0 rounds to 9007199254740992.
A time written as 09:10 becomes the JSON string 09:10:00.
Conversion boundaries
The converter applies input and output limits. Nonfinite numbers, floats that underflow to zero and leap seconds are refused.
Floating-point values use binary64. Fractional seconds beyond nine digits are truncated. TOML comments have no JSON field.
Local conversion
The browser converts the input on your device. The result is available to copy or download.
TOML conversion questions
Sources
These references describe TOML syntax and JSON interoperability.
- toml.ioTOML 1.1.0Defines TOML syntax, including short times and multiline inline tables.
- IETFrfc-editor.orgRFC 8259Explains how JSON readers handle numbers and precision.
- github.comtoml-eslint-parser 1.0.3Provides the typed syntax tree for local conversion.
References reviewed November 19, 2026.
Related tools
JSON to TypeScript
Infer a TypeScript type alias from a JSON sample, then review, copy or download the code.
Open tool — JSON to TypeScriptJSON to YAML
Convert JSON to YAML locally while preserving number text and quoted strings; copy or download the complete result.
Open tool — JSON to YAMLYAML to JSON
Convert one YAML document locally to JSON with exact number text and bounded aliases, then copy or download the complete result.
Open tool — YAML to JSONJSON Diff Checker
Compare JSON values and see added, removed and changed paths.
Open tool — JSON Diff CheckerXML to JSON
Convert XML to an ordered JSON tree with attributes, namespaces and mixed content.
Open tool — XML to JSONYAML Formatter
Format YAML indentation and copy the checked result while retaining comments and source details.
Open tool — YAML FormatterXML Formatter
Check namespace-aware XML 1.0, format or compact locally, and copy or download UTF-8 output.
Open tool — XML FormatterJSON Formatter & Validator
Check JSON syntax, format or minify locally, and copy or download output while preserving original data tokens.
Open tool — JSON Formatter & Validator