YAML to TOML Converter
NOUVEAUConvert YAML to TOML in your browser: paste or upload a file, pick how nulls are handled, then copy or download.
Fonctionne à 100 % dans votre navigateur — vos données ne sont jamais envoyées ni stockées sur nos serveurs.
Cet outil n'est pas encore entièrement traduit : une partie du texte est encore en anglais. L'outil lui-même fonctionne de la même façon dans toutes les langues.
TOML limits: the top level must be a table (a YAML mapping), TOML has no null, and only one document can be written — a file with several --- documents is rejected with a message. YAML dates and timestamps become TOML dates; anchors and aliases are expanded.
Exemples rapides
Des entrées typiques et les résultats produits par cet outil.
Présentation
YAML to TOML Converter rewrites a YAML document as TOML, the key-value format used by Cargo.toml, pyproject.toml and many other config files. Nested mappings become [tables], lists of mappings become [[array tables]], and YAML dates stay real TOML dates.
TOML is stricter than YAML, so the tool explains what cannot be carried over. The top level must be a mapping, null has no TOML equivalent and a file with several --- documents cannot be merged. Each case gets a plain message, with the line number for syntax errors in your YAML.
Everything runs in your browser, so config files with internal hostnames or tokens are not uploaded.
Pourquoi utiliser cet outil ?
- Moves a config between YAML and TOML without retyping brackets and quotes
- Reports TOML limits (null, top-level lists, multiple documents) in plain words
- YAML syntax errors show the line, column and the offending text
- Nothing is uploaded — the conversion happens in your browser
Fonctionnalités
Paste or upload
Type YAML into the box or open a .yaml / .yml file up to 2 MB.
Real dates
YAML dates and timestamps are written as native TOML dates, not strings.
Null handling
Choose between a clear error with the key path, or leaving null keys out.
Error locations
Invalid YAML is reported with its line, column and the line itself.
Swap direction
Send the TOML straight to the TOML → YAML tool to check the round trip.
Copy or download
Copy the result or save it as a .toml file named after your input file.
Mode d'emploi
Add your YAML
Paste it, open a file with Upload file, or press Load sample.
Choose null handling
Keep the default to get an error on null, or switch to omit those keys.
Read the notices
Fix any red error; amber notes list what was dropped or may be unsupported.
Copy or download
Use Copy or Download .toml, or Swap to convert back the other way.