Extract Hex Color Codes from Text

Paste text or CSS to find and list every hex color code it contains.

Scanning through a CSS file or a chunk of design documentation to manually find every hex color code used is tedious, especially in a larger file with colors scattered throughout many rules.

This tool scans any pasted text or code for valid hex color patterns (both 3-digit and 6-digit formats with a leading #) and lists every unique match found, each shown alongside a small color swatch preview.

This is useful for auditing a stylesheet's color palette at a glance, pulling together a design system's color inventory from existing CSS, or quickly checking which specific hex values appear in a piece of code.

Because everything runs locally in your browser, results appear instantly and nothing you type or upload is ever sent to a server.

Bookmark this page if you expect to use this tool regularly — it loads fast and behaves the same way every time, with no account needed.

This kind of task shows up constantly in everyday writing, coding, design, and admin work, which is exactly why a dedicated, focused tool saves so much back-and-forth.

A tool that does one job well, without a cluttered interface or unrelated features competing for attention, tends to be faster to use than a heavier all-in-one app.

If you find yourself needing this often, keeping this page open in a tab is usually faster than digging through a bigger software suite's menus.

Because there's no sign-up or installation step, you can jump straight from a search result to a working tool in a couple of seconds.

The interface is intentionally simple, so there's no learning curve — the input goes in, the result comes out, and that's the whole interaction.

Unlike a heavier desktop application, there's nothing to download, update, or configure before you can start using this tool.

Frequently asked questions

Does this catch both 3-digit and 6-digit hex codes?

Yes, both shorthand 3-digit hex codes (like #FFF) and full 6-digit codes (like #FFFFFF) are detected.

Are duplicate hex codes listed only once?

Yes, the results show each unique hex code once, even if it appears multiple times throughout the pasted text.