Skip to content
Input
YAML
Limit
1 MiB
Runtime
Browser

Compact YAML into flow-style output

Serialize a parsed document with compact flow collections for a smaller transport or fixture representation while preserving its data model.

Local processingNo sign-upNo content logging

Minify YAML

Inputs are limited to 1 MiB and stay in this browser tab.

Paste or edit the source. Tool Swim does not upload or save it.

Compact YAML

Nothing is placed in a URL, account, preset, or remote log.

What this tool does

Strict, bounded, local processing

YAML minification is normalized compact serialization, not gzip compression. The result favors size over hand editing and should remain a generated artifact.

Flow collections reduce structural whitespace

Block mappings and sequences depend on indentation and line structure. Flow-style braces and brackets allow the same parsed collections to be serialized more compactly without treating whitespace inside scalar values as formatting.

The operation parses before writing and reports output bytes. It does not promise the size savings of HTTP or archive compression, which operate across repeated content.

Compact YAML is not a good editing source

Dense flow output obscures nested configuration and creates noisy diffs. Keep readable source in version control and create compact YAML only when a receiving system or bounded fixture specifically benefits from it.

Primary references

Questions and answers

Related YAML tools