YAML to JSON Converter

Convert YAML to JSON and JSON to YAML online. Handles nested maps, lists, block scalars, flow style and comments, with clear error lines and an interactive tree.

  • Free, no sign-up
  • Runs in your browser
  • Your data stays private

How to use the YAML to JSON Converter

  1. Paste YAML or JSON.
  2. Leave direction on auto-detect or choose it.
  3. Copy or download the converted result.

Why use this YAML to JSON Converter

  • Two directionsYAML to JSON and JSON to YAML with auto-detection.
  • Real YAML featuresNested mappings, sequences, quoted strings, flow style, comments and | and > block scalars.
  • Clear errorsProblems are reported with the line number, including tabs, bad indentation and duplicate keys.
  • Tree viewExplore the data as a collapsible tree.

Frequently asked questions

How do I convert YAML to JSON?

Paste the YAML and the JSON appears instantly. Errors show the line to fix.

Which YAML features are not supported?

Anchors, aliases, tags and merge keys are not supported, and only the first document is read. You get a clear message if they appear.

Does it keep numbers and booleans?

Yes. Numbers, true and false and null are typed. Values such as 007 stay text so nothing is lost.

Related tools

More Developer Tools

User Reviews

–
No ratings yet
Write a review
Your rating *

Your email is never published. Reviews are moderated, and links aren't allowed.

What users are saying

No reviews yet

Be the first to share your experience with this tool — your feedback helps others.