TOML to JSON Converter

Need the reverse conversion?
JSON to TOML Converter

TOML Input

1

JSON Output

Enter TOML data to convert to JSON

Your converted data will appear here

How to convert TOML to JSON

  1. Step 1 – Paste TOML config

    • Paste TOML key-value pairs, [sections], or [[array_tables]] into the editor.
    • Values can be strings, integers, floats, booleans, arrays, or dates.
    • You can also import .toml files from your computer.
  2. Step 2 – Inspect JSON

    • The tool converts TOML semantics into valid JSON objects.
    • Dates (RFC 3339) are preserved as strings, and typing is maintained where possible.
    • Verify that table structures are represented as nested JSON properties.
  3. Step 3 – Export output

    • Copy the JSON for use in JavaScript/TypeScript apps.
    • Download as a .json file for data migration or API usage.
Example: TOML to JSON
# Input TOML
title = "TOML Example"

[owner]
name = "Tom Preston-Werner"

// Output JSON
{
  "title": "TOML Example",
  "owner": {
    "name": "Tom Preston-Werner"
  }
}

Related tools

Frequently Asked Questions

What is TOML format?

TOML (Tom's Obvious Minimal Language) is a configuration file format that's easy to read due to obvious semantics. It's designed to map unambiguously to a hash table.

How are TOML sections converted?

TOML sections [section] become nested JSON objects. Dotted keys like 'database.host' create nested structures automatically.

What TOML features are supported?

The converter supports strings, numbers, booleans, arrays, inline tables, nested sections, and basic date/time parsing. Complex multiline strings and advanced TOML features may have limited support.

Are array tables supported?

Yes. Array tables [[products]] are converted to JSON arrays containing objects, which is useful for representing repeated configuration blocks.

Is my data secure?

Yes, all data processing happens entirely in your browser. Your data is never sent to any server, ensuring complete privacy and security.

TOML to JSON Converter Online | JSONSwiss