YAML Formatter
Paste YAML or upload a file to check that it parses and rewrite it with consistent indentation and quoting. Useful for Kubernetes manifests, CI pipelines and config files. Runs on your device.
Advanced options
Supported conversions
Upload files or paste text straight into the page. JSON and YAML can also be formatted and validated in place: pick the same format as the output. JSON, CSV, TSV and YAML convert into each other in any direction. Markdown converts to a standalone HTML page or plain text. HTML converts to plain text. Any file can be Base64-encoded.
Built for real-world files
Column order is preserved, quotes and commas inside values are escaped properly, and nested JSON becomes dotted columns. Parsing uses well-tested open-source libraries (yaml, PapaParse, marked) running in your browser.
Frequently asked questions
Are comments kept?
No. The YAML is parsed into data and written back out, and comments are not part of the data. Keep a copy of the original if the comments matter.
How do I find a YAML error?
Click Format. Invalid YAML returns the parser message with the line and column, such as a tab used for indentation or a missing colon.
Can I turn YAML into JSON?
Yes. Pick JSON as the output instead of YAML.
Is my file uploaded?
No. Parsing runs inside your browser, so secrets in config files never leave your device.