Convertisseur YAML en JSON
Convertir entre YAML et JSON
Fonctionne dans votre navigateur · Aucun envoi
L’outil et les instructions de cette page sont en anglais pour le moment. Il fonctionne de la même façon : tout se passe dans votre navigateur.
Votre navigateur est trop ancien pour cet outil. Mettez-le à jour, ou utilisez une version récente de Chrome, Edge, Firefox ou Safari.
- Rien ne quitte votre appareil
- Aucune limite de taille imposée par un serveur
- Sans inscription, sans filigrane
- Gratuit
How to convert YAML to JSON
- Choose the direction: YAML to JSON or JSON to YAML.
- Paste your text, open a file, or try the example.
- Copy or download the result.
Good to know
- A file with several YAML documents (separated by ---) becomes a JSON array.
- YAML comments are not part of JSON, so they are left out of the JSON.
- Values such as .inf and .nan have no JSON equivalent and become null; the page points this out.
- YAML follows version 1.2, so yes, no, on and off stay text instead of turning into true and false.
- Very deeply nested aliases ("billion laughs") are stopped to keep your browser responsive.
Questions fréquentes
Why did "yes" not become true?
In YAML 1.2, which this converter follows, only true and false are booleans. Older YAML 1.1 tools also turned yes, no, on and off into booleans, which caused surprises such as the country code NO becoming false.
Is my data uploaded?
No. Everything happens in your browser, and the page is blocked from uploading anything.