JSON to YAML Converter
Parse JSON, then emit a YAML 1.2-style document for those values. The converter does not read YAML comments, anchors, or tags.
Output is block YAML for JSON values only. Anchors, tags, and comments are not produced.
YAML
name: Ada title: "a: b" ok: true items: - id: 1 - id: 2
60 characters of YAML
How to use it
- Paste JSON.
- Review the YAML block. Strings that could be misread as numbers or booleans are quoted.
- Copy or download the .yml file.
Common mistakes
- This is JSON to YAML only. Pasting YAML will fail the JSON parser.
- Comments in the JSON source are not valid and are not preserved.
- Anchors, merge keys, and custom tags are outside this converter.
Examples
Quoted colon
{ "title": "a: b" }
title: "a: b"Array of objects
{ "items": [{ "id": 1 }] }
items:
- id: 1Frequently asked questions
Processing stays in this browser tab. What you paste is not uploaded, and this tool does not write it to local storage.