Short answer
Normalize.css and Sanitize.css are different projects that both quiet browser defaults, and Sanitize.css is built on top of the normalizations. Normalize's site says it targets only the styles that need normalizing. Sanitize's README says every normalization is included and opinions are marked. One does not replace the other by changing a version number.
Last verified against the sources listed below.
Key takeaways
- Normalize.css 8.0.1 describes itself as a modern alternative to CSS resets and preserves useful defaults.
- Sanitize.css 13.0.0 wraps rules in :where() and marks opinionated defaults in comments.
- Sanitize's README says it is developed alongside normalize.css and kept in sync.
- Normalize's package license is MIT. Sanitize's package license is CC0-1.0.
- Author styles, including a reset, beat user-agent styles unless the user-agent rule is important.
- Sanitize ships extra files for forms, typography, assets, and reduced motion. They are not in the base file.
Normalize CSS vs Sanitize CSS is a comparison of two small stylesheets, not of two names for one file. Normalize’s project site says Normalize.css makes browsers render elements more consistently and in line with modern standards, and that it targets only the styles that need normalizing. The download line on that page is v8.0.1.
Sanitize’s README says Sanitize.css provides consistent, cross-browser default styling of HTML elements alongside useful defaults, that it is developed alongside normalize.css, and that every normalization is included. Opinions are marked. As of December 2026, Sanitize’s package.json lists version 13.0.0 and the license CC0-1.0. Normalize’s package.json lists 8.0.1 and MIT.
How do the two projects differ?
They are different projects. Sanitize includes the normalizations and then adds opinions.
Normalize’s README calls the file a modern alternative to CSS resets. It preserves useful defaults, normalizes a wide range of elements, corrects bugs and common browser inconsistencies, improves usability with subtle modifications, and explains the code in comments.
Sanitize’s README uses a similar list, then swaps “preserves useful defaults” for “provides common, useful defaults.” The differences section on that README says normalize.css styles adhere to CSS specifications, while sanitize.css styles adhere to common developer expectations. It also says reset.css unstyles everything, and that the two projects are maintained in sync.
| Topic | Normalize.css 8.0.1 | Sanitize.css 13.0.0 |
|---|---|---|
| Role | Alternative to resets that keeps useful defaults | Normalizations plus opinionated defaults |
| Selector style | Element selectors in the source | :where() wrappers the README calls zero-specificity |
html line-height |
1.15, as a correction | 1.5 on :where(:root), commented as opinionated |
body margin |
Removed | Removed, commented as opinionated |
box-sizing |
content-box on hr; border-box on legend, checkbox, and radio |
border-box on *, ::before, and ::after |
| License | MIT | CC0-1.0 |
| Extra files | The package ships the one CSS file | forms, typography, assets, reduce-motion, system-ui, ui-monospace |
Version numbers come from the package.json files in each repository, checked against the 8.0.1 label on Normalize’s site. They are not file-size measurements. This article does not claim a kilobyte count.
What does Normalize.css change?
Normalize.css corrects specific browser bugs and leaves other defaults alone.
The v8.0.1 source sets line-height: 1.15 on html and blocks iOS text-size adjustment after orientation changes. It sets body { margin: 0 }. It makes main a block for old Internet Explorer, and it sets h1 to font-size: 2em with margin: 0.67em 0 so headings inside section and article stay consistent in Chrome, Firefox, and Safari.
hr gets box-sizing: content-box. pre, code, kbd, and samp get font-family: monospace, monospace and font-size: 1em. The README says the duplicated monospace is intentional, to fix inheritance and scaling.
Form controls in that file inherit font-family, use font-size: 100% and line-height: 1.15, and drop the margin Firefox and Safari add. Images lose the border Internet Explorer 10 drew inside links, via img { border-style: none }. sub and sup are pulled out of the line box with a smaller font size, line-height: 0, and a relative position. The README explains that those elements otherwise change line-box height in all browsers.
The source header names the MIT license and the GitHub repository. Browser names on the README match the project site: Chrome, Edge, Firefox ESR+, Internet Explorer 10+, Safari 8+, and Opera. The file does not set box-sizing on every element, and it does not remove list markers.
What does Sanitize.css add?
Sanitize.css keeps the bug fixes and then sets defaults the README marks as opinions.
The base source starts with box-sizing: border-box, background-repeat: no-repeat, and mask-repeat: no-repeat on *, ::before, and ::after. Comments label the box and the repeat rules as opinionated. ::before and ::after inherit text decoration and vertical alignment.
:where(:root) sets cursor: default, line-height: 1.5, overflow-wrap: break-word, and a tab size of 4, and it keeps the iOS text-size adjustment. :where(body) removes the margin. :where(h1) uses the same 2em and 0.67em 0 margin as Normalize.
The base file carries further opinions the README also describes. Navigation lists lose their markers and their padding. audio, canvas, iframe, img, svg, and video use vertical-align: middle.
An svg without a fill attribute uses currentColor. Tables collapse borders. Textareas resize vertically.
Those rules are why Sanitize feels like a small design opinion, not only a bug list.
Separate files stay out of the base sheet. The project site and the README both show forms.css for form controls and typography.css for system interface fonts. The README also documents assets.css (a max-width of 100% and height: auto on replaced elements), reduce-motion.css (near-zero animation and transition times under prefers-reduced-motion: reduce), system-ui.css, and ui-monospace.css.
Install is npm install sanitize.css. The package.json "files" list matches those extra sheets.
How does the cascade treat a reset?
Author styles override user-agent styles, unless the user-agent declaration is important.
MDN’s cascade introduction says the cascade picks a value when more than one origin sets the same property. It also says that, unless a user-agent rule is marked !important, author styles, including a reset, take precedence over user-agent styles no matter which selector is more specific. That is why a one-line body { margin: 0 } in either file beats the browser’s default body margin.
Specificity still matters inside the author origin. MDN’s order, after origin and importance, compares specificity, then scoping proximity, then source order. Sanitize’s :where() wrappers are the project’s way of keeping its opinions easy to override.
A rule you write later in your own sheet, with an ordinary element or class selector, is the rule the element will use when both match. CSS is the language both files are written in. The cascade is what decides the winner after you link one of them.
Which file should you link?
Link Normalize when you want bug fixes and the browser’s other defaults left in place. Link Sanitize when you want those fixes plus the opinions above.
Normalize fits a project that will set its own box-sizing, line height, and list styles, and that only wanted the h1, pre, and form-font corrections. Sanitize fits a project that is fine with border-box everywhere, a 1.5 line height, and nav lists without bullets, and that wants those choices documented as opinions in the file.
Do not stack them hoping the second file only fills gaps. Overlapping declarations, such as the h1 margin and the body margin, come from both sources. Pick one base.
Add a Sanitize extra file only for the job that file names. If a rule you like is easier to keep as a utility, the CSS to Tailwind converter can turn a plain CSS rule, including a single reset snippet, toward Tailwind utilities. That does not import either project for you.
You still choose the stylesheet.
Frequently asked questions
Which browsers does each README list?
Normalize's README lists Chrome, Edge, Firefox ESR and newer, Internet Explorer 10 and newer, Safari 8 and newer, and Opera. The project site repeats Chrome, Edge, Firefox ESR+, IE 10+, Safari 8+, and Opera next to the 8.0.1 download. Sanitize's README lists the last two versions of Chrome, Edge, Firefox, Opera, Safari, and iOS Safari, plus Firefox ESR and Internet Explorer 9 and newer. Those lists are support claims on the READMEs, not a test log.
Do you load both files?
Sanitize's README says every normalization is included, and that both projects are maintained in sync. Loading Normalize and then the Sanitize base file means the later file wins conflicts under the cascade's order of appearance, after origin and specificity. The usual choice is one base file. Add Sanitize's forms.css or typography.css only when you want that extra file.
What does :where() change here?
Sanitize's README says the library wraps styles in zero-specificity selectors using :where(). A later author rule with a normal selector can override those defaults without raising its own specificity. Normalize 8.0.1 writes element selectors such as html, body, and h1 directly. Those selectors carry the specificity of an element selector, which is still low, and they are not wrapped in :where() in that file.
Who maintains the two projects?
Sanitize's README says the project is by Jonathan Neal, built upon normalize.css, which it also attributes to Jonathan Neal, co-created with Nicolas Gallagher. The GitHub repository for Normalize is necolas/normalize.css. The Sanitize repository is csstools/sanitize.css. The names on those pages are the credits the projects print, not a staffing chart.
Is a full reset the same thing?
No. Sanitize's README says reset.css unstyles all elements, while Normalize and Sanitize correct browser bugs and document the changes. Normalize's README says it preserves useful defaults, unlike many CSS resets. If your goal is to strip every margin, heading size, and list marker, neither base file claims to be that kind of reset.
Sources
- normalize.css · Nicolas Gallagher, 2026
- Normalize.css project site · Nicolas Gallagher, 2026
- sanitize.css · csstools, 2026
- sanitize.css project site · csstools, 2026
- normalize.css source · Nicolas Gallagher, 2026
- sanitize.css source · csstools, 2026
- Introduction to the CSS cascade · MDN, 2026