YAML formatter
Format and validate YAML with even indentation, and see the line of any error.
Missing a feature or found a bug in YAML formatter? Tell me on X (@_andrewtran) or by email.
How to use YAML formatter
- Paste your YAML in the input pane.
- Choose the indentation, and tick Sort keys if you wish.
- Copy the result or download it as a file.
Questions and answers
Is my data sent anywhere?
No. Everything runs in your browser on this device. Nothing you paste is uploaded or stored.
Are my comments kept?
No. Formatting reads the data and writes it out again, and comments are not part of the data. The status line tells you when comments were dropped.
How do I know if my YAML is valid?
Valid YAML shows a formatted result. Anything else shows what is wrong, with the line and column.
Related tools
Placeholder image generator
Make a dummy image of any size and colour, as SVG, PNG or a data URI to paste into code.Favicon generator
Turn an image, letter or emoji into favicon.ico, PNG icons, an Apple touch icon and a web manifest.App icon generator
Make every iOS and Android app icon from one image, letter or emoji, ready for Xcode and Android Studio.Sprite sheet generator
Pack icons or animation frames into one PNG, with the CSS to show each one.