⚡
usefultools.dev
J→Y

JSON to YAML Converter

Convert JSON data to clean YAML format instantly. Useful for Kubernetes configs, Docker Compose, and CI/CD pipelines.

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.

⚡

Exemples rapides

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

Object
{"name":"Alice","age":30}
name: Alice age: 30
Array
{"tags":["dev","ops"]}
tags: - dev - ops
Nested
{"db":{"port":5432}}
db: port: 5432
Quoting
{"enabled":"yes"}
enabled: 'yes'
Quoting
{"v":"1.0"}
v: '1.0'
📖

Présentation

YAML is the preferred format for infrastructure configuration files, including Kubernetes manifests, Docker Compose files, GitHub Actions workflows, and Ansible playbooks. JSON data from APIs or configs often needs to be converted to YAML for these use cases.

This tool converts any valid JSON to properly indented, readable YAML when you click Convert. Objects become mappings, arrays become "-" lists, and strings that YAML could misread, such as "yes" or "123", are quoted automatically.

Everything runs 100% in your browser using the js-yaml library: there is no backend, and the JSON you paste is never uploaded.

For example, you may have a JSON response from an API or an exported settings object and need it as a values.yaml for Helm or a service block for Docker Compose. Paste the JSON, click Convert, then press Copy and drop the YAML straight into your file.

Pourquoi utiliser cet outil ?

  • Write Kubernetes manifests from existing JSON configs
  • Convert package.json or tsconfig.json data to YAML for CI tools
  • Prepare Docker Compose configuration from JSON templates
  • Convert API response samples to YAML documentation format
⭐

Fonctionnalités

⚙️

DevOps Ready

Output is compatible with Kubernetes, Docker Compose, GitHub Actions, and Helm charts.

🎯

Proper Indentation

Uses standard 2-space YAML indentation for maximum compatibility.

🛡️

Safe Quoting

Strings like "yes", "true", or "123" are quoted so they stay strings in YAML.

✅

JSON Validation

Invalid JSON shows a clear error message instead of broken output.

📋

Copy Output

A Copy button on the output copies the YAML to your clipboard and confirms with "Copied!".

🛠️

Mode d'emploi

1

Paste your JSON

Enter or paste valid JSON data into the JSON input box.

2

Click Convert

The equivalent YAML appears in the output box below, or an error message if the JSON is invalid.

3

Copy and use

Click Copy and paste the YAML into your config file or CI/CD pipeline. Use Clear to start over.

🤔

Questions fréquentes