Code Input Area
Paste YAML here, or drop a .yaml or .yml file.
YAML Formatter & Viewer
Paste YAML to reformat it with consistent indentation and syntax highlighting: config files, CI pipelines, Kubernetes manifests, Helm values or OpenAPI specs.
What you get
- Re-indented by Prettier, keeping your comments and
----separated documents. - Indentation you choose (Settings → Tab size).
- Collapsible mappings and lists in the output.
- Kubernetes CustomResourceDefinitions also open as browsable schema documentation.
Try it
Load a sample YAML document Browse a Kubernetes CRD
Good to know
Input that isn't valid YAML is shown as-is rather than formatted. YAML doesn't allow tabs for indentation, so a tab-indented file won't format until the tabs are spaces.
Related: JSON formatter · Kubernetes CRD viewer · Markdown preview
Try an example
100% in-browser. Nothing you paste is uploaded.
Formatted Code Output
Header
Payload