YAML Diff — Compare YAML Files
Find config changes without formatting noise. Compare local files, inspect exact values, and share a diff your teammate can reopen.
Drop a local UTF-8 file here.
Drop a local UTF-8 file here.
List matching & ignored fields
For example, match containers by name. Lists without this field stay positional; partial or duplicate identities fail.
One pointer per line, relative to each document. Field names apply at every depth. Use ~1 for a slash and ~0 for a tilde. These rules do not remove data from shares.
Find in source files
Local processing · 5 MiB per file · YAML 1.2 core + merge keys
Changes
Original value
Modified value
Resolved values are shown as YAML flow values; aliases and merges may point to the alias in your original source. Downloads include every change, not just filtered rows.
Compare YAML values, not reordered lines
A semantic YAML diff compares parsed mappings, lists and scalars. Moving a mapping key, changing indentation or editing a comment does not alter its resolved value. List order still matters by default: reordering a command’s arguments can change behavior. Use unordered matching only for lists whose order is irrelevant, or pair object records by a unique field to inspect changes inside a reordered container list.
Kubernetes, Helm values and Docker Compose
YAML files may contain several documents separated by ---. Match Kubernetes manifests by resource identity to avoid comparing a Deployment to a ConfigMap just because their positions changed. Namespace is part of that identity; omitted and explicit namespaces are not assumed equivalent. For Helm, compare rendered manifests or values files. This tool does not evaluate templates, contact a cluster, apply changes, or validate the Kubernetes API schema.
Ignore generated fields removes noise from resource versions, timestamps, managed fields and top-level status. It does not automatically ignore annotations or labels: those may change application behavior. Exact integers and decimals stay distinguishable, while quoted numeric strings remain strings. Duplicate mapping keys, circular aliases and unsupported tags fail explicitly instead of producing a reassuring but ambiguous diff.
Try a two-change Kubernetes example with reordered resources and containers ↗
Related: YAML Viewer · YAML ↔ JSON · JSON Diff · Text Diff for comments and line changes
YAML comparison questions
How do I compare two YAML files online?
Paste or open an original and modified YAML file, then choose Compare YAML. The semantic diff lists added, removed and modified values by exact pointer. Select a change to copy its resolved value or jump to its source line. Comments, indentation and mapping key order are ignored.
Can I compare multi-document Kubernetes manifests?
Yes. Document position compares YAML streams in their original order. Kubernetes resource matching pairs documents by apiVersion, kind, metadata.namespace and metadata.name even when reordered. Missing namespaces remain unspecified; the tool does not assume your cluster namespace. Duplicate resource identities are rejected.
Can I ignore list order or match containers by name?
Choose positional matching, ignore list order, or match records by a unique field such as name. Unordered lists retain duplicate counts. Lists with that field are matched by identity; lists without it remain positional. Partially populated or duplicate identities are rejected. The report includes original and modified source positions and the number of keyed lists.
Does YAML Diff support aliases and large numeric IDs?
Anchors, aliases and merge keys are compared by resolved values. Circular aliases and oversized expansions are rejected. Integers and decimal tokens are compared without JavaScript rounding; numerically equivalent values such as 1 and 1.0 match. Quoted numeric strings remain distinct from numbers.
Can I ignore generated Kubernetes fields?
Ignore generated fields excludes metadata.managedFields, metadata.resourceVersion, metadata.uid, metadata.creationTimestamp and the top-level status field. Custom ignore rules accept exact pointers per document or field names at every depth. Filtering is not redaction: shared links still contain the complete original inputs.
Are my files uploaded, and can I share or export a YAML comparison?
Files are read and compared locally in your browser. Share comparison offers an embedded URL fragment or an optional stored short link that explicitly uploads the shared state. Both retain inputs and comparison settings. JSON and TXT reports include all changes, not just the search-filtered view. Anyone with a share link can read its contents.
Which YAML syntax and file sizes are supported?
The tool uses YAML 1.2 core types plus merge-key support. Unknown or non-core tags, YAML 1.1 directives, duplicate keys and non-string mapping keys produce errors rather than misleading comparisons. Each input supports 5 MiB, 250 documents, 100,000 resolved nodes and 100 levels of nesting. A comparison supports 5,000 changes. This is not Kubernetes schema validation or a live-cluster diff.