🧰GetToolDockAll 91 tools
← Check More Tools
CSS Gradient Generator 100% Free

Gradients, with the CSS done

Blend two or three colors, turn the angle, switch between linear and radial — then copy one line of CSS straight into your project.

Free No sign-up Private — runs in your browser
#2FD3B6
#0A5142
Gradient type
135°
Drag the dial or use the slider — 0° points up, 90° points right.
Slowly rotates the angle in the preview only — your copied CSS stays a normal static gradient. Linear gradients only.
Random
Presets
Your CSS

How it works

Three quick steps — no account, no upload, nothing leaves your device.

1

Pick your colors

Choose a start and end color — and optionally switch on a middle stop for a richer blend.

2

Set angle & type

Drag the angle for linear gradients, or switch to radial for a soft glow from the centre. Or start from a preset.

3

Copy the CSS

One click copies the ready-made background declaration — paste it into any stylesheet or style block.

Frequently asked questions

Quick answers about CSS gradients.

What is the difference between linear and radial gradients?

A linear gradient blends colors along a straight line at the angle you choose — 0° runs bottom to top, 90° runs left to right. A radial gradient blends outward from the centre, like a soft spotlight or glow.

Where do I paste the copied CSS?

Into any CSS rule for the element you want to fill — a page body, a header, a button, a card. For example: .hero { background: linear-gradient(...); } — the generator gives you the full background: declaration.

Do gradients work in all browsers?

Yes. CSS gradients have been supported by every modern browser for over a decade, on phones and desktops alike — no images and no JavaScript needed on your page.

Can I use the gradients commercially?

Of course. A gradient is just colors and numbers — use the output in personal and commercial projects without attribution.

What is the CSS Gradient Generator?

Gradients — colours that blend smoothly into each other — are the background of half the modern web. This generator lets you build one visually: pick colours, set the direction or angle, add extra colour stops, preview it live at full size, and copy the finished CSS code straight into your stylesheet.

It supports linear and radial gradients and shows the exact background code real developers ship, which also makes it a gentle way to learn how CSS gradients work. No code is written by hand and nothing is uploaded — you design in the browser and paste the result into your project.

🧰 Check More ToolsSee all 91 free tools on GetToolDock