TOML ↔ JSON Converter

LOCAL · IN-BROWSER

Convert TOML to JSON and JSON to TOML online. Supports tables, arrays, and inline tables.

Advertisement728 × 90
Your ad could be here Go Pro to remove ads
Advertisement728 × 90
Your ad could be here Go Pro to remove ads

About TOML ↔ JSON Converter

Bidirectional converter between TOML (Tom's Obvious Minimal Language) and JSON. Paste TOML to get clean JSON output, or paste JSON to get TOML. Supports TOML tables ([[array of tables]]), inline tables, multi-line strings, datetime values, and all TOML v1.0 types. Great for working with Rust Cargo.toml, Hugo config, Python pyproject.toml, and other TOML-based config files.

All processing happens entirely in your browser using modern web APIs. Nothing is uploaded to our servers — your data stays local and private. Free to use forever, with a Pro plan for power users who want an ad-free experience and API access.

Common use cases

  • Reading and debugging Rust Cargo.toml dependencies as JSON
  • Converting Python pyproject.toml to JSON for tooling or analysis
  • Transforming Hugo or Jekyll TOML front matter to JSON
  • Understanding TOML structure by comparing with its JSON equivalent
  • Migrating configuration from JSON to TOML for a new tool or project

How it works

Uses the @iarna/toml library for parsing TOML to a JavaScript object and serializing back to TOML. The parser handles all TOML v1.0 data types: String, Integer, Float, Boolean, Offset Date-Time, Local Date-Time, Local Date, Local Time, Array, and Table. JSON output is formatted with 2-space indentation using JSON.stringify.