Cette page n’est pas encore traduite en français : elle s’affiche en anglais.

TOML to JSON & YAML Converter

Convert TOML config files — Cargo.toml, pyproject.toml, Hugo or Netlify configs — to JSON or YAML, or turn JSON and YAML into TOML. Invalid TOML is reported with the exact line.

Mis à jour le
Convert

Vos données ne quittent jamais votre ordinateur. Tout le traitement se fait localement dans votre navigateur.

Comment utiliser : TOML Converter

  1. Choose the direction — for example TOML → JSON.
  2. Paste your file; it converts as you type and syntax errors show the line and column.
  3. Copy or download the result.

About TOML

TOML (Tom’s Obvious, Minimal Language) is a config format built to be easy to read: key = "value" pairs, [tables] for sections and [[arrays of tables]] for lists of objects. Rust’s Cargo.toml, Python’s pyproject.toml, Hugo, Netlify and many CLIs use it. This converter follows TOML 1.0.

How types convert

Strings, numbers, booleans, arrays and tables map directly to JSON and YAML. TOML has native dates and times; JSON has none, so they become ISO 8601 strings. Converting JSON or YAML to TOML needs an object at the top level — TOML documents are always tables — and null values are skipped, because TOML has no null.

Common TOML errors

  • Defining the same key or table twice.
  • Strings without quotes — name = devpack must be name = "devpack".
  • Mixing a table and a dotted key for the same name.

Private by design

Conversion runs entirely in your browser — your code is never uploaded, so it’s safe for proprietary projects.

Aussi recherché comme : toml to json, json to toml, toml to yaml, yaml to toml, toml validator, toml parser online.

Outils complémentaires : TOML Converter

  • JSON to YAML — Paste JSON and get clean YAML for Kubernetes manifests, Docker Compose, GitHub Actions or any config file.
  • YAML to JSON — Paste YAML — a Compose file, Kubernetes manifest or CI config — and get formatted JSON.
  • YAML Validator — Paste a Docker Compose file, Kubernetes manifest, GitHub Actions workflow or any YAML to pinpoint errors, catch common pitfalls and get a cleanly formatted version.
  • Formateur JSON — Collez votre code JSON pour le formater, le compresser ou le valider.

Questions fréquentes

How do I convert pyproject.toml or Cargo.toml to JSON?
Paste the file with TOML → JSON selected. Sections like [tool.poetry] or [dependencies] become nested JSON objects.
Why are my dates strings in the JSON?
JSON has no date type, so TOML dates and times are written as ISO 8601 strings, which every JSON library can parse.
Why can’t I convert a JSON array to TOML?
A TOML document is always a table (an object). Wrap the array in an object, for example {"items": [...]}, and it becomes an array of tables.
Puis-je installer TOML Converter en tant qu’application web et l’utiliser hors ligne ?
Oui. TOML Converter est une application web installable (PWA) : elle s’installe depuis votre navigateur, sans passer par une boutique d’applications. Cliquez sur « Installer l’application » en haut de cette page dans Chrome ou Edge (Windows, macOS, Linux, ChromeOS) ; sur Android, utilisez « Partager » → « Ajouter à l’écran d’accueil » sur iPhone et iPad ; ou « Fichier » → « Ajouter au Dock » dans Safari 17+ sur Mac. L’application s’ouvre alors dans sa propre fenêtre avec sa propre icône, et comme elle s’exécute entièrement dans votre navigateur, elle continue de fonctionner hors ligne. Firefox sur ordinateur de bureau ne permet pas d’installer d’applications web. Comment fonctionne l’installation.

Outils similaires