Semantic YAML Diff in Your Browser

Compare Two YAML Files with Structural Context

A semantic YAML diff tool that understands mappings, sequences, and scalar values. Review value changes, type mismatches, and missing keys with path context.

Base YAML

Contrast YAML

YAML Documentation

Follow a complete configuration review or examine the rules that determine how parsed YAML values are matched.

Compare YAML step by step

Work through a service configuration, from Base and Contrast to original-source results, Git Diff, URL loading, and sharing privacy.

Read the YAML getting started guide

Understand YAML comparison rules

Learn how mappings, sequence strategies, scalar types, comments, case options, and numeric strings affect Data Compare.

Explore YAML comparison rules

Semantic YAML diff vs. text diff

Data Compare examines parsed mappings, sequences, and scalar values. Git Diff remains available when you need to inspect the exact original text.

Values over presentation

Mapping key order and flow-versus-block notation do not create a difference when they produce the same values. These mappings compare as equal.

service: billing
enabled: true
{ enabled: true, service: billing }

Comments stay out of the data

Comments do not become comparison values. Data Compare treats these inputs as equal; Git Diff still shows their source-text edit.

# deployed
retries: 3
# proposed
retries: 3

Data Compare maps semantic difference paths back to your original YAML source lines for display, retaining comments and layout in the aligned editors. Git Diff compares the untouched input text line by line.

Need details about sequence matching, scalar types, and comparison options? Read the YAML comparison rules

New to YAML comparison? Follow the YAML getting started guide

Choose YAML comparison rules

Start with what positions, order, duplicates, casing, and scalar types mean in your configuration.

Sequence methodUse it whenTrade-off
By Index

Each sequence position has a stable meaning, such as fixed slots or ordered snapshots.

An insertion shifts later positions and can make many following items look changed.

LCS

Order matters and insertions or deletions should align through the longest common subsequence.

It preserves order, so moving an item is represented as deletion and insertion rather than a move.

Unordered

Item order is irrelevant, such as tags or permission lists.

It uses multiset matching: duplicate occurrence counts still affect the comparison result, so duplicates are not discarded like a set.

Mapping key case

Ignore key case only when Service and service mean the same mapping key in your configuration.

String value case

Use case-insensitive values for normalized text, not for case-sensitive identifiers, tokens, paths, or user content.

Numeric string equivalence

Enable Numeric String Equals Number only when a quoted value such as "8080" and the number 8080 are interchangeable.

YAML Diff Use Cases

Use structural YAML comparison to review configuration changes across development and deployment workflows.

Kubernetes Manifests

Compare deployment manifests, ConfigMaps, or Helm values across environments. Review changed fields and sequence entries before a rollout.

CI/CD Pipeline Configs

Review workflow changes between branches or repositories, including build steps, triggers, environment values, and references to secrets.

Compose & Service Config

Compare Compose files, infrastructure definitions, or service settings across versions and environments using their parsed values.

Application Configuration Review

Review feature flags, environment settings, and API endpoints without mapping-order or comment edits obscuring value changes in Data Compare.

FAQ

01Is my YAML data sent to a server?
Entering or pasting YAML for comparison does not upload it. Parsing and comparison run locally in your browser. Using Share uploads the compared content to our share server. Data placed in URL query parameters is sent with page requests and may be recorded in hosting logs, so do not place sensitive data in URLs. Importing from a URL sends a request to the source you specify.
02Do comments and formatting affect Data Compare?
Comments do not become comparison values. Mapping key order, quote style, and flow-versus-block notation also do not create a difference when they produce the same parsed values. Data Compare maps results to your original source lines for display; use Git Diff to review source-text edits.
03Why do a number and a quoted numeric string differ?
YAML scalar types are significant by default, so 8080 and "8080" are a number and a string. Enable Numeric String Equals Number only when that distinction is irrelevant for the field. Key-case and value-case options are separate settings.