Upload any photo
Drag and drop or click to upload PNG, JPG, or WEBP images. All processing runs locally in your browser — nothing is uploaded to a server.
Upload any photo and instantly get a CSS gradient built from its dominant colors. Perfect for hero backgrounds, card overlays, and design mockups that feel cohesive with your imagery.
Drag and drop or click to upload PNG, JPG, or WEBP images. All processing runs locally in your browser — nothing is uploaded to a server.
Dominant colors are extracted via pixel quantization and assembled into a smooth linear or radial CSS gradient.
Get a one-line CSS background property you can paste directly into your stylesheet, Tailwind config, or design tool.
Click or drag an image here
PNG, JPG, WEBP supported
Step 1
Click the upload area or drag and drop a PNG, JPG, or WEBP image onto the tool.
Step 2
Choose linear or radial type, pick a direction, and set how many colors to include in the gradient.
Step 3
Click 'Copy CSS' to grab the ready-to-use background property and paste it into your code.
The tool samples the image pixels using the browser Canvas API, groups similar colors through 32-bucket quantization, ranks them by frequency, and assembles them into a CSS gradient in order of dominance.
No. All processing happens entirely in your browser. Your image is never sent to any server, making this tool completely private.
A linear gradient transitions colors along a straight line in a chosen direction. A radial gradient radiates outward from the center of the element.
Yes. Use the 'Colors' slider to choose between 2 and 8 stop colors. Fewer stops produce a cleaner gradient; more stops capture more detail from the image.