Tested tool guide
Tested browser tools
Checked August 16, 2026
What TOML to JSON Converter does, with a checked example
Paste a TOML document and this page returns the equivalent JSON, parsed value by value. Strings, booleans, integers, floats, arrays, and tables map onto JSON counterparts; comments, table headers, and digit separators disappear; a syntax error or a duplicate key stops the conversion rather than producing partial output. The surprises sit at the type edges: TOML datetimes such as 1979-05-27T07:32:00Z have no JSON equivalent and come out as strings, hexadecimal or underscored integers (0xFF, 1_000_000) are computed to their decimal value, and float values like inf and nan cannot be represented in JSON at all.
Worked example
A concrete input and expected output from the current implementation.
Input
title = "Backup config"
version = 1_000_000
[storage]
path = "/var/backups"
retention = 30
created = 2026-08-16T09:30:00Z
[storage.cleanup]
enabled = true
->
Expected output
{
"title": "Backup config",
"version": 1000000,
"storage": {
"path": "/var/backups",
"retention": 30,
"created": "2026-08-16T09:30:00Z",
"cleanup": {
"enabled": true
}
}
} The underscore in 1_000_000 is TOML's digit separator, removed during parsing, so the integer comes out as 1000000. The offset datetime has no JSON type, so it is emitted as its RFC 3339 string form, and the header [storage.cleanup] nests one object inside the other.