CSS Color & Property Extractor

Extract every color used in a stylesheet and see your real palette. Paste CSS or drop CSS, SCSS and HTML files, and the extractor lists each distinct color as a swatch with how often it's used — after normalizing, so #FFF, white and rgb(255, 255, 255) count as one. Switch to properties to list every CSS property and its values. Export the palette as CSS custom properties or JSON. It's free, runs in your browser, and your files never leave your device.

Formats that collapse to one color

Written asNormalized
#FFF#ffffff
white#ffffff
rgb(255, 255, 255)#ffffff
hsl(0 0% 100%)#ffffff
rgba(0, 0, 0, 0.5)#00000080

When to use it

  1. Audit how many near-identical grays a stylesheet really uses.
  2. Turn a legacy site's colors into design tokens.
  3. Find every place a brand color is hard-coded before a rebrand.
  4. List all properties used before migrating to a utility framework.

How to Use

  1. Paste CSS, or drop CSS, SCSS or HTML files.
  2. Browse the color swatches, sorted by how often they're used.
  3. Click a swatch to copy it, or export the palette.
  4. Switch to Properties to see every property and value.

Features

  1. Deduplicated color palette with counts
  2. Normalizes hex, rgb(), hsl() and names
  3. Property and value inventory
  4. Export as CSS custom properties or JSON
  5. Multiple files, including HTML
  6. 100% client-side

FAQs

Does it treat #fff and white as the same color?

Yes. Every color is normalized to hex before counting, and the original spellings are listed under each swatch.

Can I upload several files?

Yes. Drop multiple CSS, SCSS, LESS or HTML files, or a folder, and they're combined into one report.

What about colors in HTML?

For HTML files, colors in <style> blocks and style attributes are read.

Which color formats are found?

Hex (3, 4, 6 and 8 digits), rgb(), rgba(), hsl(), hsla(), named colors, and modern functions like lab() and oklch().

Is my CSS uploaded?

No. Everything is processed in your browser.

Technical Details

The extractor reads declarations — property: value pairs inside rule blocks, media queries and inline style attributes — after removing comments, so a color mentioned in a comment or a selector such as a:hover is never mistaken for a value. In color mode it finds hex colors of every length, rgb(), rgba(), hsl(), hsla() and the newer color functions, and named colors, then normalizes each one through a color parser to lowercase hex with alpha only when it isn't opaque. That's what makes the palette honest: #FFF, #ffffff, white and rgb(255, 255, 255) collapse into one swatch with a count of four, and the original spellings are listed under it. Keywords like inherit, currentcolor and transparent are skipped, as are url() values. Colors the parser can't convert, such as oklch(), are kept by their text. Property mode counts every property and its distinct values. CSS files, preprocessor sources and HTML pages can be dropped together; for HTML, the <style> blocks and style attributes are read.

Web & CSS Tools

Web & CSS Tools

  • Responsive Breakpoint Cheatsheet
  • Google Fonts Pair Finder
  • CSS Clamp Generator
  • Fluid Type Scale Generator
  • CSS Flexbox Generator
  • CSS Grid Generator
  • CSS Border Radius Generator
  • CSS Box Shadow Generator