One-click search and extract all hexadecimal color codes from the text
Paste CSS, HTML, design notes, or any text that contains hex colours. The tool finds codes like #0F5C8C and #abc, then lists them for copy or download. Processing runs in your browser.
Remove duplicate colors — keep each colour once.Standardize format (uppercase) — normalize to uppercase hex.Include short form colors (#abc) — also match 3-digit hex.Expand short form to 6-digit (#abc → #AABBCC) — turn #abc into #AABBCC when short form is enabled.Show color previews — display swatches next to values.
#0F5C8C, #ff5733 (with or without # depending on context in text)#abc, #F00 (when “Include short form” is enabled)#abc → #AABBCC when expand is enabledRGB/HSL functions are not converted here — this tool only extracts hexadecimal colour codes.
With “Include short form”, “Expand short form”, “Remove duplicates”, and “Standardize format” enabled:
| Input CSS | Extracted colours |
|---|---|
.btn {
color: #ff0000;
background: #abc;
border-color: #FF0000;
outline: #0F5C8C;
} | #FF0000 #AABBCC #0F5C8C |
#ff0000 and #FF0000 collapse to one uppercase value. Short #abc expands to #AABBCC.
No. Extraction runs locally in your browser. Your text is not sent to our servers.
Enable Include short form colors. Optionally enable Expand short form to list the 6-digit equivalent.
Not on this page. Use a dedicated colour converter if you need RGB ↔ Hex conversion (for example Hex to RGB / RGB to Hex).
Most matched colours include #. Enable standardize/uppercase to keep a consistent list for design systems.
All matching happens on your device with JavaScript. We do not store the text you paste or the colours you extract.