Skip to content
Merlin Tools

Text compare (diff)

Paste two versions and see what changed, line by line, with additions and removals highlighted. In the browser.

Genuinely free. No sign-up, no email, no limits, no cookies. We don't store the URL you analyse.

Paste two versions of a text to compare them.

What this tool cannot see

The comparison is line-by-line and runs in your browser: the texts are never sent anywhere. For character-by-character differences within a line you need a different tool.

What it's for

Comparing two versions of a text is a daily task: seeing what changed between two config files, two API responses, two drafts. Spotting added and removed lines at a glance saves time and reduces mistakes.

With the other tools: the code formatter (handy for aligning two files before comparing) and the regex tester.

Frequently asked questions

How does the comparison work?

We use an LCS (longest common subsequence) algorithm on lines: it finds the longest common sequence between the two texts and shows non-matching lines as additions or removals. It's the same principle as the diffs used by version control systems.

Is it line-by-line or character-by-character?

Line by line. It's the most readable granularity for comparing configs, logs, texts and code blocks. A changed line shows as a removal plus an addition.

Are my texts sent anywhere?

No. The comparison happens entirely in your browser: you can compare confidential content too, nothing is sent or stored.