⚡
usefultools.dev
T→Y

TOML to YAML Converter

NOUVEAU

Convert TOML to YAML in your browser with a 2- or 4-space indent and clear errors that show the line.

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.

Options

TOML comments are not carried over. Dates and date-times stay as YAML timestamps, times of day become strings, and integers beyond 2^53 are written as quoted strings so no digit is lost.

⚡

Exemples rapides

Des entrées typiques et les résultats produits par cet outil.

Key
title = "Demo"
title: Demo
Table
[owner] name = "Ada"
owner: name: Ada
Array
ports = [ 8001, 8002 ]
ports: - 8001 - 8002
Array of tables
[[servers]] name = "alpha" [[servers]] name = "beta"
servers: - name: alpha - name: beta
📖

Présentation

TOML to YAML Converter reads a TOML file and writes the same data as YAML. Tables become nested mappings, arrays of tables become lists of mappings, and strings are quoted only when YAML needs it, for example when they look like numbers or booleans.

Use it to move settings from Cargo.toml or pyproject.toml style files into tools that expect YAML, such as CI pipelines or Kubernetes-style manifests. TOML dates and date-times stay timestamps, times of day become strings, and integers beyond 2^53 are quoted so no digit is lost. Invalid TOML is reported with its line and column.

Nothing leaves your browser.

Pourquoi utiliser cet outil ?

  • Converts TOML settings for tools that only read YAML
  • Quotes ambiguous strings so "true" and "123" do not turn into other types
  • TOML syntax errors point to the line and column
  • Works offline in the browser — your config is never uploaded
⭐

Fonctionnalités

📄

Paste or upload

Paste TOML or open a .toml file up to 2 MB.

🔢

Indent choice

Write nested YAML with 2 or 4 spaces.

🗓️

Dates preserved

TOML dates and date-times are written as YAML timestamps.

🛡️

Safe quoting

Text that could read as a number, boolean or date is quoted.

⇄

Swap direction

Send the YAML to the YAML → TOML tool to test the round trip.

⬇️

Copy or download

Copy the YAML or save a .yaml file.

🛠️

Mode d'emploi

1

Add your TOML

Paste it, open a file, or press Load sample.

2

Choose the indent

Pick 2 or 4 spaces for the YAML output.

3

Review the result

Errors appear in red with the line; amber notes mention very large integers.

4

Copy or download

Use Copy, Download .yaml, or Swap to convert back to TOML.

🤔

Questions fréquentes