HTML Site Comparator β€” Free Online

Upload two website zip files to instantly compare every file. See what changed, what was added, and what was deleted β€” with a line-by-line diff viewer for changed files. Runs entirely in your browser.

Site A β€” Original
πŸ“
Drop a .zip file here, or
Site B β€” Updated
πŸ“
Drop a .zip file here, or
0
Unchanged
0
Added
0
Deleted
0
Changed

What This Tool Does

The HTML Site Comparator takes two zip files β€” each containing a complete website β€” and compares every file between them. It extracts both archives in your browser, matches file paths, and categorises each file as unchanged, added, deleted, or changed.

For changed files, you can click through to a line-by-line diff viewer that highlights exactly what was added or removed. This is essential for reviewing site updates, verifying deployments, auditing template changes, or comparing staging vs production builds.

How to Use the HTML Site Comparator

Use Cases

ScenarioHow This Tool Helps
Pre-deployment reviewCompare your staging build against production to verify only intended changes are present
Template auditingEnsure a CMS template update did not introduce unintended changes across pages
Version trackingCompare two saved snapshots of a static site to see what changed between releases
CollaborationReview a colleague's changes to a static site without requiring Git
Migration validationAfter migrating a site to a new platform, compare the output HTML to confirm nothing was lost

How the Diff Algorithm Works

The comparator uses a longest common subsequence (LCS) algorithm to produce line-by-line diffs. This is the same fundamental approach used by diff on Unix systems and by Git internally. It finds the longest sequence of lines that appear in both files in order, then marks everything else as an addition or deletion.

The result is a clear, colour-coded view where green lines show content that exists only in Site B (additions), red lines show content that exists only in Site A (deletions), and grey lines show unchanged context. Line numbers for both the original and updated file are displayed side by side.

Privacy & Security

All zip extraction and file comparison runs in your browser using JavaScript and JSZip. No files are uploaded to any server. This is especially important when comparing websites that contain API keys, internal URLs, authentication tokens, or customer data in their HTML or configuration files.

πŸ’‘ Need to compare plain text instead of entire websites? Use the Text Compare tool for a quick side-by-side diff. For formatting HTML before comparing, try the HTML Formatter.

Related Guides & Tutorials

Comparison Workflow Tools

Frequently Asked Questions

What file formats does the HTML Site Comparator accept?
The tool accepts standard .zip files. Each zip should contain the HTML, CSS, JavaScript, and other files that make up your website. The tool reads all text-based files inside the zip and compares them.
Does this tool upload my website files to a server?
No. All processing happens entirely in your browser using JavaScript. Your zip files are read locally, extracted in memory, and compared client-side. No data is transmitted to any server.
How does the diff viewer work?
The diff viewer uses a longest common subsequence (LCS) algorithm to compare files line by line. Added lines are shown in green, deleted lines in red, and unchanged lines in grey. Line numbers from both the original and updated file are displayed.
Can I compare non-HTML files like CSS and JavaScript?
Yes. The tool compares every text-based file inside the zip archives, including HTML, CSS, JS, JSON, XML, SVG, and any other text file.
What if my zip files have a root folder?
The tool automatically detects and strips a common root folder prefix. If your zip contains a folder like 'my-site/' wrapping all files, it will be removed so that file paths match correctly between the two archives.
Is there a file size limit?
There is no enforced limit, but very large zip files (over 50MB) may be slow to process depending on your browser and device memory.