About the YAML Editor
YAML punishes small mistakes: one stray tab, an unquoted colon inside a value, or an item indented a space too far, and a deploy fails with a message that points at the wrong line. This editor parses the document on every keystroke and reports the parser's own line and column, so a mistake is caught while your cursor is still near it.
What appears on the right depends on the mode. Formatted YAML is the document re-emitted from the parsed value with consistent indentation and no line wrapping. Keys sorted orders mapping keys alphabetically at every level, which is the fastest way to compare two environment files by eye. Flow style collapses everything into the inline bracket and brace syntax, useful for a one-line value inside a CI variable. JSON gives you the same data with JSON types, handy when checking whether on or no was read as a boolean.
Because output is regenerated from the parsed value, comments and anchor names do not survive a round trip; the expanded value of an anchor does. That behaviour matches how most YAML libraries load and dump a file. Edit in the left pane, download from the right. If you only want a tidier layout with quoting control, use YAML Pretty Print, and for a read-only tree open the YAML Viewer.
How to use
- Paste YAML, upload a
.ymlfile, or start from the sample. - Edit in the left pane. Parse errors appear with a line and column as you type.
- Switch the output mode between formatted, sorted, flow style and JSON.
- Copy or download the version you want to keep.
Common questions
- Are my comments preserved?
- No. The result is regenerated from the parsed data, and the YAML loader discards comments. Keep the original file if the comments matter.
- What happens to anchors and aliases?
- They are resolved, so every alias is replaced by a copy of the value it referenced.
- Can it handle multi-document files?
- Editing works on the first document. For multi-document files with
---separators, YAML Pretty Print keeps every document. - Why did my value 08:00 change?
- Unquoted values that look like numbers or times are parsed as such. Quote them to keep them as strings.