Home » Developer Tools » YAML Minifier
Paste YAML and get a compact flow style version in seconds, right in your browser.
Your code never leaves your browser. Everything runs locally on your device.
YAML files are easy to read but take up space, because indentation is significant and block style spreads every value over many lines. The YAML Minifier rewrites your YAML in compact flow style, so nested maps and lists sit on far fewer lines while every value stays exactly the same.
Minifying YAML is different from minifying JSON: whitespace cannot simply be stripped, because indentation carries meaning. Flow style is the safe compact form, and comments are dropped when the file is parsed. Everything runs in your browser, so your files are never uploaded to a server.
Yes, it is completely free with no sign up and no limits. You can minify as much YAML as you like, as often as you like.
YAML cannot be shrunk by stripping whitespace, because indentation carries meaning. This tool rewrites your YAML in compact flow style, which is the safe way to make YAML smaller.
Yes. The compact form carries the same values, nesting, and list order, so your config files behave exactly as before.
Comments are dropped when YAML is parsed. Anchors and aliases are kept as shared references, but they may be renamed in the output, so do not rely on the original anchor names.
No. All minifying happens in your browser on your own device, so your files never leave your computer.
The tool shows a clear error message and keeps your input untouched, so you can fix the problem and try again.
If you need JSON instead, try the JSON Formatter to format and validate JSON data.