YAML to JSON

Parse one YAML document and format it as JSON

Last updated: October 14, 2026

How to use

  • Paste or type your YAML in the input field
  • Supports complex YAML structures (maps, lists, multi-line strings)
  • YAML anchors and aliases are automatically resolved
  • Choose indentation level (2 spaces, 4 spaces, or minified)
  • Click "Convert" to generate the JSON
  • Use "Copy" to copy the result or "Download" to save as a file

Result actions

Copy or download the tool output, or share a link to YAML to JSON.

Get new tools in your inbox

An occasional email when we ship new free tools. No spam, unsubscribe anytime.

Related tools

Convert a YAML document to JSON

Paste one YAML document and select Convert. The tool parses the document with js-yaml, then serializes the result as JSON with 2-space indentation, 4-space indentation, or no added indentation. Copy the output or download it as data.json.

Invalid YAML produces a parser error. The converter processes one document and does not merge multiple documents from a YAML stream. JSON output follows JavaScript serialization rules for the parsed value.

Conversion happens in your browser; the input is not uploaded.