Format, indent and beautify JSON.
YAML Formatter
Format YAML configuration with syntax checking, indentation and line wrapping.
Runs in your browserProcessed locally. Your input never leaves your device.
Details
About this tool
Paste YAML and receive a consistently indented document using a YAML-aware parser. Choose two or four spaces, set the preferred line length and control wrapping for prose-like scalar content.
YAML relies on indentation and has rules for sequences, mappings, anchors, aliases and block values. A syntax-aware formatter avoids the corruption that a generic indentation tool could introduce.
The document is parsed and formatted locally, so configuration values and secrets are not sent to the server.
Keep going
Related tools
- Runs in your browserDeveloper
-
Format, indent or minify XML without uploading it.
Runs in your browserDeveloper -
Write Markdown and see a safe, live preview with tables, task lists and code blocks.
Runs in your browserDeveloper
Good to know
Questions people actually ask
- Is this a real YAML parser?
- Yes. The tool uses Prettier's YAML parser, not regular expressions or a generic indentation algorithm.
- Is the source code uploaded?
- No. Parsing and formatting run in the browser. The language engine is loaded on demand and the source stays on the device.
- Can formatting change program behaviour?
- The formatter is designed to preserve the parsed program while normalising indentation and prose wrapping. Review a diff before committing, especially when a repository enforces different style rules.