YAML Pretty
YAML formatting makes your code easier to read.
How to useYAML: make code readable.
Paste your code and choose indentation. Your original file stays unchanged. Copy or download the result when you need it.
- 01
Paste code or open a file
UTF-8 YAML file: open it or paste code. Try the Example button first if you like.
- 02
Choose indentation
Choose indentation and click Format code. Any syntax errors appear below.
- 03
Review and save
Copy or download your result. Editing the input clears the previous result.
Start with a simple example.
site: { name: GreatJIN, active: true }Click Example above to try formatting it yourself.
Frequently asked questions
Are comments and multiline strings retained?
The formatter supports comments, anchors, aliases, and multiple documents. Quote and line-break styles may change, so review configuration files before using the result.
Can I indent YAML with tabs?
YAML indentation uses spaces. Choose two or four spaces in this tool.
Does this validate my configuration?
It checks YAML syntax, not duplicate keys, service-specific schemas, or required configuration fields.