TOML to JSON Converter
100% PrivateData & JSON ToolsConvert TOML configuration files into JSON with a careful browser-side parser.
Runs entirely in your browser. Your input is not uploaded to Ovatly or anywhere else.
Or upload a .toml file
- 1Paste TOML text or upload a .toml file.
- 2Press Convert to JSON.
- 3If an error appears, check the line number it names and fix that line.
- 4Copy the JSON or download it as converted.json.
Worked example
Table and dotted values
Input: title = "Site" [owner] name = "Ana" founded = 2024 Output: { "title": "Site", "owner": { "name": "Ana", "founded": 2024 } }
- Supported TOML subset: key = value pairs, dotted and quoted keys, [table] and [[array-of-tables]] headers, basic and literal strings (including triple-quoted multiline forms), integers in decimal, hex, octal and binary, floats, booleans, arrays (multi-line, with comments), inline tables, and dates or times, which are kept as strings because JSON has no date type.
- Integers too large for exact JavaScript numbers are kept as their original digit strings rather than being rounded silently. The tokens inf and nan, which JSON cannot represent, are also kept as strings.
- Anything outside the supported subset stops the conversion with an error naming the line, rather than producing partial or guessed output.
JSON has no date type. TOML dates and times are carried over as their original text so no information is lost or reformatted.
About this tool
The TOML to JSON Converter reads TOML configuration with a careful browser-side parser and produces pretty JSON. When a line cannot be understood, the error names the line number instead of guessing, so you can fix the file quickly.
Related tools
YAML to JSON ConverterConvert YAML configuration into strict JSON, and convert JSON back to YAMLData & JSON ToolsOpenJSON Formatter and ValidatorFormat JSON with your choice of indentation, validate it and explore its structureData & JSON ToolsOpenJSON to CSV ConverterConvert a JSON array of objects into a spreadsheet-ready CSV fileData & JSON ToolsOpenXML to JSON ConverterParse XML and convert it into JSON you can use in code and toolsData & JSON ToolsOpen
Advertisement
Part of Ovatly's free tools in Data & JSON Tools.