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.
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 guideUnderstand YAML comparison rules
Learn how mappings, sequence strategies, scalar types, comments, case options, and numeric strings affect Data Compare.
Explore YAML comparison rulesSemantic 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.
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.