TOML ↔ JSON Converter

Supports common TOML: tables, key-value pairs, strings, numbers, booleans and arrays. Advanced features like inline tables of tables or dates are limited.

How to use this TOML/JSON converter

  1. Choose the direction: "TOML → JSON" or "JSON → TOML".
  2. Paste your source data into the left box.
  3. The converted result appears on the right instantly.

What is TOML used for?

TOML (Tom's Obvious Minimal Language) is a configuration file format designed to be easy for humans to read and write, used by tools like Cargo (Rust), Poetry (Python), and many static site generators.

How do TOML tables work?

A line like [database] starts a "table" (equivalent to a nested object), and every key-value pair below it belongs to that table until the next [section] header.

Why choose TOML over YAML for config files?

TOML has a stricter, less ambiguous syntax than YAML (no significant whitespace beyond simple key alignment), which some developers prefer for configuration files where clarity matters more than brevity.