About this CSS comparison
Stylesheet changes are easy to make and hard to spot: a colour shifted by a few shades, a font size one step larger. A CSS diff lists each changed declaration and marks the value that changed.
Use it to review a theme update, compare the output of two builds, or find out why a page looks different in production.
What changed in this sample
- The body background moved from
#f0f0f0to#e0e0e0and the text colour from#333to#444. - The font family switched from Arial to Verdana.
- The heading size went from 24px to 26px and the accent blue darkened to
#0056b3. - Paragraph text grew from 16px to 18px with a 1.6 line height.
Tips for comparing CSS
- Mark changed digits
- Set the inline highlight to Characters under More so only the changed digits of a hex colour or size are marked.
- Properties in a different order
- If the same declarations were only reordered, select one rule from each side and use Sort lines before comparing.
- Unminify first
- Built CSS is often minified. Format both files before comparing so each declaration has its own line.
- Sass sources
- If you work in Sass, compare the .scss sources too; see the SCSS sample.
How to compare CSS 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 CSS, 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.
CSS comparison: questions
How do I compare two CSS files?
Open or paste one stylesheet into each pane. Changed declarations are highlighted, with the exact values that differ marked inside each line.
Can it compare minified CSS?
Yes, but minified CSS is one long line, so format it first for a readable result.
Does it show which elements are affected?
No. It compares the stylesheet text. To see the effect, apply the stylesheet in your browser’s developer tools.