Skip to content

📝 TOML ⇔ JSON / YAML Converter

Convert TOML ⇔ JSON and TOML ⇔ YAML in both directions. Ideal for editing Hugo config.toml, Cargo.toml, and pyproject.toml.

✅ 100% free, no signup, runs entirely in your browser (powered by @iarna/toml + js-yaml)

🔒 About Privacy

📖 How to Use

  1. 1
    Paste TOML
    Paste TOML on the left or pick a sample (Hugo / Cargo / pyproject).
  2. 2
    Pick the target format
    Pick JSON or YAML. For JSON, choose 2/4 spaces or minify.
  3. 3
    Convert both directions
    Results appear on the right. Reverse direction (JSON/YAML → TOML) updates live too.

❓ FAQ

What is TOML?
Stands for Tom's Obvious, Minimal Language. INI-like readability with explicit types — widely used in Cargo (Rust), Hugo, and pyproject.toml.
How are dates and times handled?
TOML has datetime / date / time types. They become ISO 8601 strings in JSON and proper YAML types when converting to YAML.
Can I convert YAML or JSON back to TOML?
Yes. Paste JSON or YAML on the right and click → TOML, or keep auto-convert on. Some structures TOML cannot represent (e.g. mixed-type arrays) are skipped.

🔗 Related Tools

🐛 Found a bug or issue with this tool?

Free to use, no signup. Even just the steps to reproduce are helpful. Reports go directly to the operator and help us fix issues.

* Browser info (UA / screen / language / URL) is sent automatically to help reproduce the issue