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.

60 characters of YAML

How to use it

  1. Paste JSON.
  2. Review the YAML block. Strings that could be misread as numbers or booleans are quoted.
  3. 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: 1

Frequently asked questions

Processing stays in this browser tab. What you paste is not uploaded, and this tool does not write it to local storage.