CSS colour extractor
Paste CSS and get every colour used, whether hex, rgb, hsl or a named colour, counted, converted to one format and sorted by use.
- Free
- No sign-up
- Works on any device
About CSS colour extractor
Large stylesheets collect many colours over time, often the same colour written in several ways. Paste your CSS and this tool finds every colour in declarations and SVG fill and stroke attributes: HEX in three to eight digits, rgb and rgba, hsl and hsla, and the 148 named colours. They are converted to the format you choose, counted and sorted by use, hue or lightness. The sample finds seven colour values but only four distinct colours, because #ffffff, #FFF and white are the same colour.
How to use CSS colour extractor
- Paste your CSS into the box.
- Choose HEX, RGB or HSL output and how to sort.
- Copy the colour list and counts, and merge duplicates in your stylesheet.
Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.
Also known as
Frequently asked questions
Does it find colours in variables?
It finds colours written as values, including inside custom property declarations such as --brand: #123456. A colour used through var() is not resolved at the place where it is used.
Are transparent colours kept separate?
Yes. A colour with an alpha value is treated as a different colour from the opaque one and is written with an alpha part in the chosen format.
Is my CSS uploaded?
No. Everything runs in your browser and the text stays on your device.
Is CSS colour extractor free?
Yes. CSS colour extractor on Toolipedia is free to use, with no sign-up and no watermark.
Is it safe to use?
Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.
Does it work on my phone?
Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.
Do I need an account?
No. Just open the page and use the tool. There's no sign-up and no email needed.