TOML ↔ JSON Converter

Convert between TOML and JSON formats bidirectionally

Input (TOML or JSON)
Output

Converted output will appear here.
Click TOML → JSON or JSON → TOML.

About TOML ↔ JSON Converter

The TOML ↔ JSON Converter provides bidirectional conversion between TOML and JSON formats. TOML (Tom's Obvious Minimal Language) is a popular configuration file format used by Rust's Cargo, Python's pyproject.toml, Hugo, and many other tools. This converter makes it easy to transform TOML configuration files into JSON for API consumption or convert JSON data into clean TOML configuration files.

Key Features

  • Bidirectional conversion — convert TOML to JSON and JSON to TOML in the same tool.
  • Full TOML v1.0 support — handles tables, arrays of tables, inline tables, multiline strings, dates, and all TOML data types.
  • Clean output — produces properly indented, human-readable output in both directions.
  • Client-side processing — all conversion happens in your browser. No data is sent to any server.

How to Use

  1. Paste or upload — enter TOML or JSON content in the input editor, or upload a file.
  2. Choose direction — click TOML → JSON or JSON → TOML.
  3. Export — copy the result or download it as a file.

Frequently Asked Questions

What is TOML?

TOML is a configuration file format that is easy to read due to its clear semantics. It is used by Cargo (Rust), pip/Poetry (Python), Hugo, and many modern tools.

Does this handle TOML dates and times?

Yes. TOML datetime values are converted to ISO 8601 strings in JSON, and ISO 8601 strings in JSON are preserved as strings in TOML.

© glutool. v1.0
Powered with by RL
Code snippet