TOML to JSON Converter

Convert TOML config files into structured JSON.

Ad placeholder (leaderboard)

Convert TOML to JSON in your browser

This tool parses TOML configuration and outputs clean, indented JSON — useful for feeding a TOML config into JavaScript code, an API, or any tooling that expects JSON. It targets the TOML constructs people actually paste, all processed locally.

How it works

The built-in parser implements a focused subset of TOML v1.0.0. It reads line by line, handling key = value pairs with basic and literal strings, integers and floats (including underscore separators), and booleans. [table] and [parent.child] headers create nested objects, dotted keys nest the same way, and [[array of tables]] headers append objects to a JSON array. Inline arrays of scalars and # line comments are supported. Constructs it deliberately does not implement — multi-line strings and date/time types — raise a clear error instead of being mis-parsed.

Example

This TOML:

title = "Gera Tools"
version = 6

[owner]
team = "platform"

[[servers]]
name = "eu-1"
port = 8080

becomes:

{
  "title": "Gera Tools",
  "version": 6,
  "owner": { "team": "platform" },
  "servers": [{ "name": "eu-1", "port": 8080 }]
}

Everything runs locally in your browser — your config is never uploaded or stored.

Ad placeholder (rectangle)