TOML-JSON Converter

Convert between TOML and JSON / sections, arrays, inline tables

100% In-BrowserNo Server UploadFree, No Signup
Data Conversion
For EngineersFastPass - AI Career Agent

AI analyzes your skills and matches you with the best opportunities. Get a free market value assessment.

Get Started Free

How to Use

  1. Choose a mode

    Select "TOML → JSON" or "JSON → TOML" from the toolbar.

  2. Paste input and convert

    Paste TOML or JSON into the input area and click "Convert". Use "Swap" to toggle mode and swap input/output.

  3. Copy result

    Use the "Copy" button to copy the converted result to your clipboard.

TOML-JSON Converter Examples

TOML → JSON

Input
[package]
name = "my-app"
version = "1.0.0"
keywords = ["cli", "tool"]
Output
{
  "package": {
    "name": "my-app",
    "version": "1.0.0",
    "keywords": ["cli", "tool"]
  }
}

Sections ([table]) are converted as nested JSON objects.

JSON → TOML

Input
{
  "server": {
    "host": "localhost",
    "port": 8080
  }
}
Output
[server]
host = "localhost"
port = 8080

Nested JSON objects are output as TOML sections.

Features

  • Bidirectional TOML ↔ JSON conversion
  • Parse sections ([table]) and nested tables
  • Support strings, numbers, booleans, arrays, inline tables
  • Skip comment lines (#)
  • Swap button to toggle mode and input/output instantly
  • Customizable indent width
  • Local processing (your input is not sent to servers)

FAQ

Does it support the full TOML specification?

It covers core syntax (key=value, sections, strings, numbers, booleans, arrays, inline tables). Some advanced features like datetime types and multi-line literal strings have simplified support.

Can it convert Cargo.toml or pyproject.toml?

Yes. Common Cargo.toml and pyproject.toml syntax is supported.

Is my data sent to a server?

No. All conversion happens locally in your browser via JavaScript. Your input data is never transmitted to any external server.