✳tools.stBrowse tools
◈ Processed on your device
◈

Extract HEX colors

Find unique 3-digit and 6-digit HEX colors in text or stylesheets.

Free

Find unique 3-digit and 6-digit HEX colors in text or stylesheets. Find supported HEX color tokens in text and normalize them into lowercase six-digit values. First-seen color order is preserved while equivalent shorthand forms are merged.

◈ Local processingFree

How to use

  1. Enter your text, values, or image.
  2. Adjust the options and run the tool.
  3. Copy or download your result.

Worked example

Example input

Input: color:#fff; background:#FF0000; border:#ffffff

Example result

[
  "#ffffff",
  "#ff0000"
]

Limitations and details

The extractor does not parse CSS grammar or find named, rgb(), hsl() and alpha HEX colors.

Inputs and options

Input
Text

Frequently asked questions

Is this tool free and private?

Yes. All 300 tools are free in this phase. Processing happens in your browser; your input and files are not sent to our servers.

Related tools