<Diff
Stack/>

YAML Diff Checker

Compare two YAML files — Kubernetes manifests, GitHub Actions workflows, or Docker Compose configs. Review changed values and indentation. Free and private.

Review Kubernetes and CI configuration changes

Upload two YAML files or paste configurations to compare them side by side. YAML syntax highlighting helps you review indentation and changed values in Kubernetes manifests, Docker Compose files, or CI workflows.

How to Compare Two YAML Files

  1. 01.Load your files

    Load both YAML revisions without removing indentation or changing tabs and spaces.

  2. 02.Find differences

    Select Find Differences to compare both versions. Use Try an example to load the sample below and open its diff.

  3. 03.Review the result

    Switch between Split View and Unified View to review additions and removals alongside unchanged context.

YAML comparison example

Original
apiVersion: apps/v1
kind: Deployment
metadata:
  name: api-server
spec:
  replicas: 2
  template:
    spec:
      containers:
        - name: api
          image: registry.io/api:1.4.0
Modified
apiVersion: apps/v1
kind: Deployment
metadata:
  name: api-server
  labels:
    team: platform
spec:
  replicas: 4
  template:
    spec:
      containers:
        - name: api
          image: registry.io/api:1.5.2
          resources:
            limits:
              memory: 512Mi

The Kubernetes Deployment example scales replicas from 2 to 4, updates the image from 1.4.0 to 1.5.2, adds a team label, and sets a 512Mi memory limit. Check the nesting of resources under the container before applying the manifest.

YAML Diff Tips

Indentation changes meaning

In YAML, two extra spaces can move a key into a different mapping. Treat indentation-only diffs in YAML as real structural changes until verified.

Quoting styles are interchangeable

port: 8080, port: '8080', and port: "8080" may or may not be equal depending on the consumer (string vs number). Check how the value is parsed downstream.

Anchors and aliases hide duplication

A change to an anchored block (&defaults) silently changes every alias (*defaults) that references it — the diff shows one change, but the effect is repeated.

Comments and sequence order are literal

A comment-only edit still appears as a line change even though it never reaches the parser. Likewise, list items are order-sensitive: reordering a sequence is a real change, not cosmetic noise.

Before you compare

This is a text diff with YAML syntax highlighting, not a semantic YAML comparison or validator. Reordered mappings still appear as edits, and aliases are not expanded.

Each side supports up to 250,000 characters or 5,000 lines. Each uploaded text file can be up to 256 KB. Compared contents stay in your browser. No account is required.

Working with another format? Try JSON Diff Checker or XML Diff Tool.

Frequently Asked Questions

Clear answers to your comparison queries.