Reformats and normalizes YAML with 2-space indent.
The YAML Formatter parses your YAML and re-serializes it with clean, consistent 2-space indentation and normalized spacing, so messy or hand-edited configuration becomes tidy and readable. It also surfaces syntax errors immediately, making it a quick way to validate that a YAML document is well-formed. It is handy any time you need to clean up Kubernetes manifests, CI pipelines, or app config files.
No. The formatter runs entirely in your browser and your YAML never leaves your device or gets sent anywhere.
It always re-indents the document using 2 spaces per level for nested mappings and sequences.
No. Line wrapping is disabled, so long scalar values stay on a single line instead of being folded across multiple lines.
The tool reports an error instead of producing output. Common causes include tab characters used for indentation, inconsistent structure, or more than one document in a single stream.
The formatter re-serializes the parsed data, so flow-style mappings and sequences become block style, redundant quotes are dropped, and ambiguous values like yes are quoted to keep them as strings.