TOML ↔ JSON converter

Convert TOML config to JSON and back — sections, arrays, inline tables and datetime strings.

Direction

Converted in this browser. Nothing is sent anywhere.

TOML up to 300,000 characters / 100,000 lines. Supported: key = value pairs, [sections] and [dotted.paths], strings, integers (incl. 0x/0o/0b and underscores), floats, nan/inf, booleans, arrays, inline tables, and datetime strings. Arrays of tables [[…]] are not supported. →TOML direction emits nested objects as [section] headers.

How to use

  1. Pick a direction.
  2. Paste the TOML or JSON.
  3. Copy the result.

What it supports

TOML up to 300,000 characters / 100,000 lines. Supports key = value, [sections] and [dotted.paths], strings, integers (0x/0o/0b, underscores), floats, nan/inf, booleans, arrays, inline tables, datetime strings. Arrays of tables [[…]] are not supported. →TOML emits nested objects as [section] headers.

Related tools

Related guides