Hex Color Code Extractor Tool

Find and extract all hex color codes from your text with one click

How to Use This Color Extractor

  1. Paste your text - Insert any CSS, HTML, design files, or text containing color codes
  2. Choose your options:
    • Remove duplicates: Show each unique color only once
    • Standardize format: Convert all codes to uppercase
    • Include short form: Include 3-digit hex codes (#abc)
    • Show color previews: Display visual color swatches
  3. Click "Extract Color Codes" - Find all hex colors instantly
  4. Copy or download - Save your extracted color list

Common Use Cases

  • Extracting color palettes from CSS files
  • Finding all colors used in a website's design
  • Creating color inventories from design documents
  • Analyzing color usage in codebases
  • Building color style guides from existing projects

Example Transformation

Before (CSS with Colors)After (Extracted Colors)
body {
  background: #ffffff;
  color: #333333;
}

.button {
  background: #007bff;
  border: 1px solid #0056b3;
}

.header {
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}
#FFFFFF
#333333
#007BFF
#0056B3
#F8F9FA
#E9ECEF

About Hex Color Codes

Hex color codes are hexadecimal values that represent colors in web design and development:

  • 6-digit codes: #RRGGBB format (e.g., #FF5733)
  • 3-digit codes: #RGB shorthand (e.g., #F53 becomes #FF5533)
  • 8-digit codes: #RRGGBBAA format with alpha transparency

Each pair of digits represents the red, green, and blue components of the color, with values from 00 to FF (0 to 255 in decimal).