Processing...
Paste the sample below into the input and leave comment removal, empty-line removal and spacing minimization enabled. Keep structure preservation enabled for a block-style result. The comment disappears while name remains demo and enabled remains true. Review the output and the displayed size difference before copying or downloading it. Short documents may become larger after serialization.
Turn structure preservation off only when flow-style output is appropriate for the receiving parser. To retain the original layout exactly, disable all minification options while keeping structure preservation on. Other combinations that request comment or empty-line preservation are rejected instead of silently losing those elements. Keep the original readable configuration for maintenance, and test the generated document with the program that will consume it.
Compare parsed values and size before replacing a configuration; smaller output alone does not prove equivalence.
# demo
name: demo
enabled: true
β
name: demo
enabled: true
The minifier parses one YAML document and serializes its value. Options control comment removal, empty lines, spacing, and block versus flow presentation. It is not gzip or dictionary encoding, and no saving percentage is guaranteed. Comments are source presentation rather than data; keep a readable original when they contain maintenance instructions.
For generated output, comment and empty-line removal must both be enabled. A request to preserve either one is rejected. The exact-layout path returns the original input when all minification options are off and structure preservation is on. This avoids pretending that parsing and dumping can preserve arbitrary source formatting.
Supply a single parseable YAML document. Unrendered template expressions and application-specific tags may fail generic parsing. Multi-document bundles need to be separated before using this single-document workflow. Even valid output should be checked with the consuming application, since YAML syntax alone does not validate its configuration schema.
The file upload accepts .yml or .yaml files up to 100 MiB. Source and output occupy browser memory, which can limit smaller files. Statistics compare representations, not network compression, deployment speed, or parser performance. Negative savings mean output grew. For tiny documents, preserving readability may be more useful than reducing the serialized size.
Processing runs in your browser. Choosing Share uploads the selected tool state; anyone with the link can open it. Signing in to save sends content to your account library and records save history. Review the selection before either action. Closing the page does not delete those copies. Copying locally does not create a server share.