YAML Formatter and YAML to JSON Converter

Validate and format YAML, convert YAML ⇄ JSON.

WebRuns in your browser

About this tool

Format YAML with consistent indentation, or convert between YAML and JSON in either direction. Documents with several YAML sections separated by --- are handled, and errors point to the line and column.

How to use it

  1. Paste YAML, or JSON if you want YAML back.
  2. Choose to format, convert to JSON or convert to YAML.
  3. Copy the result. A syntax error names the line and column to fix.

Example

Input:

name: Ada
langs:
  - en
  - fr

As JSON:

{
  "name": "Ada",
  "langs": [
    "en",
    "fr"
  ]
}