YAML Minifier — Compress YAML Online Free
Paste your YAML to strip comments and compress it to the most compact valid form. Free, instant, browser-based.
What is YAML Minification?
YAML minification converts block-style YAML into compact flow style, stripping comments and unnecessary whitespace. The output is valid YAML that any standard parser will process identically to the original. Minified YAML is useful when embedding configuration in environment variables, API payloads, or anywhere where a single-line format is required. Everything runs entirely in your browser using js-yaml.
- Converts block YAML to compact flow style
- Strips all comments (not preserved in YAML data model)
- Shows exact byte savings and compression percentage
- To restore readability, use the YAML Formatter
Frequently Asked Questions
Does minified YAML still work in parsers?
Yes. YAML flow style is fully valid YAML 1.2. Any standards-compliant YAML parser will process minified YAML identically to block-style YAML.
Are YAML comments removed?
Yes. YAML comments are not part of the data model — they are stripped during parsing. Minification cannot preserve them.
Is my data safe?
Yes. All processing happens entirely in your browser using js-yaml. No data is sent to any server.