TOOL · ON YOUR DEVICE
Free CSS and PNG gradient generator
Create a gradient for your website, a wallpaper or a presentation. You choose the type, the angle and 2 to 8 colours with their positions, and see the result instantly. Copy the CSS or download it as a PNG in desktop, mobile or custom sizes.
- Free account to copy or download
- CSS ready to paste
- PNG up to 4K or custom
- Choose an example or the type
- Adjust the colours
- Copy the CSS or download the PNG
HOW TO USE IT
Three steps.
Choose an example or the type
Start from an example or choose linear, radial or conic, with its angle or centre.
Adjust the colours
Add up to 8 colours, move their positions, space them evenly or reverse them. The preview updates instantly.
Copy the CSS or download the PNG
Copy the code for your stylesheet, or choose a size and press “Download PNG”.
NEXT STEP
Keep going with these tools
Gradient generator: common questions
Does the CSS work in every browser?
Linear and radial gradients work in all current browsers; conic ones work in recent years’ versions of Chrome, Edge, Firefox and Safari.
What is the fine grain for?
It changes each PNG pixel by one level up or down so smooth gradients do not show steps on large screens. The CSS does not change.
How big can the PNG be?
There are desktop, 4K, mobile, square and header sizes, or any size you type, up to 10,000 px per side and 40 megapixels.
Are my images uploaded to a server?
No. The tool runs inside your browser: files are read and processed on your device and are not sent to Cocuyo or to any third party. You can check it in your browser’s network tools: your file is not sent.
Does it use credits?
You can choose and preview the gradient without an account. Copying CSS or downloading PNG requires a free account. Local use does not consume credits or welcome uses.
What changes between linear, radial and conic?
Linear uses an angle from 0 to 360 degrees, 135 by default: 0 points up and 90 points right, as in CSS. Radial starts from a center you set and can be a circle or an ellipse. Conic turns clockwise around a center you set: 0 degrees starts at the top, and the angle you choose rotates that starting point.
What CSS does it give me?
A line you can paste into your stylesheet. The Sunset example gives background: linear-gradient(135deg, #FF7E5F 0%, #FEB47B 100%); Each color is a 6-digit hex value with its position in %, with no transparency. Radial and conic gradients follow the same pattern with their own center.
How do I make a hard edge between two colors?
Put two colors at the same position: the change is sudden instead of gradual. If a color stop’s position is lower than the one above it in the list, the tool moves it up to that same position, as CSS does. The preview shows it straight away.
Why won’t my PNG download?
Check the size. Each side must be at least 16 px, and the image must stay within 10,000 px per side and 40 megapixels. If your browser cannot draw conic gradients to PNG, the tool says so: copy the CSS instead, or try an up-to-date browser.
MORE FREE TOOLS
Other image tools
All free tools
WHEN YOU WANT TO CREATE
Make new images with AI.
Cocuyo’s Studio brings 30+ AI models for image, video and voice together. You see the credit cost before generating, and credits never expire.
































































