Skip to main content
Workbench

JSON to YAML Converter

Convert JSON into clean YAML 1.2. Key order from your JSON is preserved, and the conversion runs entirely in your browser so your data stays on your machine.

Inputjson
Loading editor…
JSON○ Not checked0 lines0 chars0 B

How to use the json to yaml

  1. Paste or upload JSON.
  2. Choose your YAML output indentation and version (1.2 by default).
  3. Press Convert to YAML. Key order from your JSON is preserved.
  4. Copy or download the .yaml result.

Example: Converting a config object

Input
{"service":"api","replicas":3,"env":{"DEBUG":false}}
Output
service: api
replicas: 3
env:
  DEBUG: false

Frequently asked questions

Is key order preserved?
Yes. The converter keeps the order of keys exactly as they appear in your JSON.
Which YAML version is produced?
YAML 1.2 by default. You can select 1.1 if you need compatibility with older parsers.
Are strings kept as strings?
Yes. Values that look boolean-like or numeric but are strings in your JSON stay quoted so their type is not changed.