YAML Editor
runs in your browserno sign-upfree
Edit YAML in a full-page editor with live validation, clear error lines and one-click formatting.
Checking…
About this tool
This YAML editor gives you one large editor with syntax highlighting and folding for Docker Compose files, Kubernetes manifests, GitHub Actions workflows and other config files. It checks your YAML as you type and points to the exact line of a mistake, such as wrong indentation or a duplicate key, and shows the number of keys and nesting levels. Format re-indents the file and keeps your comments. Everything runs in your browser.
How to use
- Paste or type YAML into the editor, or open a .yaml file from your computer.
- Watch the status line under the editor: it shows the first syntax error with its line and column, and marks it in the code.
- Press Format to tidy the code or Minify to make it as small as possible.
- Use Full screen for more space, and fold or unfold blocks to focus on one part.
- Copy the code or download it as a .yaml file.
FAQ
Why can I not indent YAML with tabs?
The YAML standard does not allow tabs for indentation, so the editor offers 2 or 4 spaces only.
Does Format keep my comments?
Yes. Comments, anchors and every document in a multi-document file (separated by ---) are kept.
Is there a YAML minifier?
No. YAML uses indentation for its structure, so it cannot be squeezed onto one line the way JSON can. Convert it with the YAML to JSON tool if you need compact data.
Can I undo Format or Minify?
Yes. Press Ctrl + Z (⌘ + Z on Mac) in the editor to undo it, just like a normal edit.
Is my code sent to a server?
No. Editing, checking, formatting and minifying all run in your browser. Your last code is only saved in this browser so it is still there when you come back. Press Clear to remove it.