JSON to YAML
Turn a JSON object into readable, correctly indented YAML. Handy for turning API responses into Kubernetes manifests, Docker Compose files or CI config.
json0 ln / 0 ch
yaml
readyruns locally
local / nothing uploadedAbout this tool
JSON is easy for machines and awkward for people. YAML is the same data with indentation instead of braces, which is why Kubernetes, Ansible and CI pipelines use it. This converts a JSON object into correctly nested YAML.
How to use it
- Paste a JSON object or array.
- The YAML output updates as you type.
- Check indentation and quoting in the preview.
- Copy the YAML into your config file.
Examples
An object
{"name":"api","replicas":3}name: api replicas: 3
Limits and notes
- Key order follows the JSON input order.
- Very deeply nested structures become hard to read regardless of formatting.
Frequently asked questions
- Why are some strings quoted?
- YAML quotes values that would otherwise be ambiguous, such as yes, no or a string that looks like a number. The output is still equivalent data.
- Can I convert arrays?
- Yes, both objects and arrays round-trip correctly, and the same page handles the reverse direction through YAML to JSON.
- Does it preserve number types?
- JSON numbers become YAML numbers. Extremely large integers may lose precision on re-import depending on the consuming parser.
Want the details? Read the full guide: Turning API Output Into a Manifest.
Related Tools
CSV to JSONConvert CSV data to a JSON array of objects. Automatically maps the first row to object keys, perfect for importing spreadsheet data into web applications or APIs.
JSON to CSVConvert a JSON array into a clean CSV file. Extract unique keys to form the header row, perfect for exporting API data for analysis in Excel or Google Sheets.
XML to JSONConvert XML documents to JSON objects. Bridge the gap between legacy SOAP APIs and modern frontend applications while preserving attributes and hierarchical data.
JSON to XMLConvert JSON objects to valid XML markup. Automatically handle arrays, attributes, and special characters, making it easy to integrate with older enterprise systems.
YAML to JSONConvert YAML configuration into JSON, or JSON back into clean YAML. Parse errors report the line and column so you can fix the file quickly.
SQL to JSONTurn INSERT statements into JSON rows, or generate INSERT statements from a JSON array. Handles escaped quotes, NULL, booleans and a union of keys across rows.
JSON to SQLGenerate INSERT statements from a JSON array of objects. Column names are derived from the union of all keys, and values are quoted safely.
JSON ValidatorValidate JSON syntax with detailed error messages. Catch trailing commas, missing brackets, and syntax errors instantly before sending payloads to your API.