YAML Diff

// Compare two YAML documents line by line

Enter YAML in both panels to see differences

#About YAML Diff

Free online YAML diff tool. Compare two YAML documents side by side and see added, removed, and modified lines with color-coded output. This tool runs entirely in your browser — your data is never sent to a server. Just paste your input, get instant results, and copy with one click. No sign-up or installation required.

#FAQ

How does the YAML diff work?
The tool compares YAML documents line by line using a longest common subsequence algorithm, showing added lines in green, removed lines in red, and unchanged lines in the default color.
Is the comparison structure-aware?
The diff is line-based, which works well for YAML since its indentation-based format aligns structure with lines. For structure-aware comparison, try the JSON Diff tool with YAML converted to JSON first.
</> Embed this tool

Copy this code to embed the tool on your website. Adjust the height to fit your layout.

<iframe src="https://www.browserutils.dev/embed/yaml-diff" width="100%" height="500" frameborder="0" title="YAML Diff"></iframe>

#Related