Runs in your browser
YAML Formatter
Parse and re-emit YAML with consistent 2-space indentation using js-yaml, preserving nested objects, arrays, and data types along the way.
ReadyMarkup ToolsFree · No account required
Related tools
Features
- Consistent 2-space indentation
- Preserves nested objects, arrays, and data types
- Real parsing with js-yaml, not string manipulation
How to use
- Paste your YAML into the input.
- Click Format.
- Copy or download the result.
Example
Input
a: 1 b: - x - y
Output
a: 1 b: - x - y