YAML Minifier

Minify YAML to a compact form instantly — no upload, fully private. 100% free.

Runs 100% in your browser. Your data never leaves this page.

Built for Obsidian, Hugo, Jekyll, and CI pipelines.

How to use

  1. Paste your YAML into the input box.
  2. The minified YAML appears on the right.
  3. Copy or download the compact result.

Collapses your YAML into a compact flow style to reduce size.

Example

Input
name: demo
config:
  debug: true
  level: 3
items:
  - a
  - b
Output
{name: demo, config: {debug: true, level: 3}, items: [a, b]}

When this works best

Minifying switches to flow style, which can hurt readability for deeply nested data. Anchors and aliases are inlined, so shared references are duplicated.

How it differs from related tools

The YAML Formatter keeps block style and only re-indents; the Minifier condenses everything into one-line flow style.

Frequently asked questions

Is the YAML minifier free?

Yes, it runs in your browser and is free with no sign-up.

Does minifying break my YAML?

No. It preserves the data while reducing whitespace.

Will minified YAML still parse?

Yes. It is valid YAML in flow style; only the layout changes, not the data.

Does it keep anchors?

Anchors and aliases are inlined (noRefs), so shared references are duplicated in the output.

Related converters

Learn more about YAML