A · Original
B · Modified

Loading diff editor…

What is YAML diff?

Compare two YAML files with side-by-side change highlighting.

YAML diff works like JSON diff but for YAML — the human-friendly format used in Kubernetes manifests, CI pipelines, and many config files. Paste or import two YAML documents and see line-level additions, deletions, and edits instantly.

YAML is sensitive to indentation and quoting, so small formatting changes can look like large diffs. Use the per-side format and sort actions to normalise structure before comparing when you care about semantic changes, not whitespace.

Not sure when to use YAML vs JSON? See JSON vs YAML: when to use each.

How to use

Compare two YAML files in seconds.

Quick start paste or import
  1. Paste or import YAML into A and B using the toolbar above each side.
  2. Differences highlight in real time — additions in green, deletions in red.
  3. Press F7 to jump between changes.
Sort & format options per-side toggles

Use the Sort toggle on each side to alphabetically sort keys before comparing — this removes false diffs from key reordering. Use Format or Minify to normalize layout independently on A and B.

Features

Side-by-side diff

Monaco diff highlights every insertion, deletion, and changed line.

Per-side sort

Toggle sort on A or B to ignore key-order noise in config files.

100% local

Your YAML never leaves the browser. No server uploads.

FAQ

Is my data uploaded?
No. All comparison runs locally in your browser.
Why do I see many changes when the data looks the same?
Key order often differs between YAML files. Turn on Sort for both sides to compare by content, not key order.

Other tools