About this HTML comparison
Comparing HTML is useful when a template change breaks a layout, when a CMS rewrites your markup, or when you need to check that the meta tags of two pages match. The diff shows the changed elements and marks the attribute values and text inside them.
Meta tags matter for search engines too, so comparing the head of two versions of a page is a quick SEO check.
What changed in this sample
- The
<title>changed from “My Web Page” to “Sample Page”. - All three meta tags were edited: description, keywords and author.
- The main
<h1>and the paragraph text were rewritten, and the footer copyright line followed the new name.
Tips for comparing HTML
- Format first
- Minified HTML sits on one line. Run both versions through a formatter so each element gets its own line before comparing.
- Ignore case for old markup
- Older pages often mix
<DIV>and<div>. Turn on Ignore case so only real changes remain. - Check rendered output
- To compare what a server actually sent, use View Source in each browser tab and paste that in.
- Spot attribute edits
- Inside a changed tag, only the attribute value that changed is marked, so a new class name or URL is easy to see.
How to compare HTML online
- Paste the older version into Original and the newer one into Changed, or open a file on each side.
- Check that the syntax menu says HTML, then pick split or unified view.
- Step through the changes with the arrows or Alt ↓, and use Settings for options such as ignoring blank lines.
- Save the comparison in your browser, share a link, or download it as a .diff, HTML or PDF.
HTML comparison: questions
Can I compare two web pages by URL?
Not directly. Open each page, view its source, and paste the HTML into the two panes.
Does it render the HTML?
No. The markup is shown as highlighted source, never rendered, so scripts in it cannot run.
Can I compare email templates?
Yes. Email HTML is still HTML; paste both versions in and compare them the same way.