YAML formatter and YAML to JSON converter
Paste YAML to check and tidy it, or convert between YAML and JSON in either direction.
- Free, no sign-up
- Your files and data stay on your device
- No watermarks or limits
0 bytes uploaded. Everything happens in this tab.
How to use it
- Choose YAML to JSON, JSON to YAML or Format YAML.
- Paste your text. The result appears immediately and errors show the line number.
- Pick the indentation, optionally sort the keys, then copy the result.
Example
YAML and the same data as JSON:
name: ThisTab
tags: [files, privacy]
→ {"name": "ThisTab", "tags": ["files", "privacy"]}About this tool
YAML is a human-friendly format for configuration files such as Docker Compose, Kubernetes manifests, GitHub Actions and many CMS settings. It relies on indentation, so a single misplaced space can break a file.
This tool parses your YAML with a standards-based library and reports errors with the line and column where the problem was found. It can output the same data as JSON, convert JSON back into readable YAML, or simply re-format YAML with a consistent indentation and optional sorted keys.
Comments and the original key order of YAML are not kept when converting, and anchors are expanded into plain values. Do not paste secrets into tools you do not trust; here the text is processed in your browser and not sent anywhere.
Frequently asked questions
Why does my YAML show an indentation error?
YAML uses spaces, never tabs, and nested items must be indented consistently. The error message gives the line and column.
Are comments kept when I format?
No. Comments are not part of the parsed data, so they are dropped when the YAML is re-written.
Does it support multiple documents in one file?
Not in this version. Paste one document at a time.
Is my data uploaded?
No. Parsing and conversion happen locally.