CSS Gradient Generator
100% FreeBuild linear and radial CSS gradients with up to 6 color stops, custom angle/position/shape, live preview, and ready-made presets.
background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
Embed This Tool
Easy to EmbedAdd CSS Gradient Generator to your website or blog in seconds.
- Responsive design
- Lightweight & fast
- No backend required
- Always up-to-date
<iframe
src="https://tools.town/embed/css-gradient-generator/"
width="100%"
height="600"
style="border:none; border-radius:12px;"
loading="lazy"
title="CSS Gradient Generator">
</iframe> Advertisement
How to Use
- 1 Pick linear or radial
- 2 For linear: set angle. For radial: pick shape + position
- 3 Add up to 6 color stops, each with position 0-100%
- 4 Live preview shows the result; copy the CSS rule
Features
- Linear + radial gradient types
- 2-6 configurable color stops
- Angle slider (0-360°) for linear
- Shape (circle/ellipse) + position for radial
- Curated preset library (Sunset, Ocean, Brand, Aurora)
- 100% client-side
Frequently Asked Questions
What's the difference between linear and radial?
How many stops can I add?
Why does my gradient look banded?
Want to understand the math?
Related Tools You Might Like
Border Radius Generator
Visually craft CSS border-radius with per-corner sliders, live preview, unit toggle (px/em/rem/%), and shorthand collapsing.
Box Shadow Generator
Visually craft CSS box-shadow — offset, blur, spread, color, opacity, inset toggle, plus Material-style elevation presets.
Color Palette Generator
Generate harmonious palettes from any base color — complementary, analogous, triadic, tetradic, split-complementary, monochromatic.
Contrast Checker
WCAG 2.1 contrast ratio for any fg/bg pair — pass/fail for AA-normal (4.5), AA-large (3.0), AAA-normal (7.0), AAA-large (4.5).
Color Picker
Native color picker with HEX/RGB/HSL output and recent-colors history. Click the swatch or type a hex — values update instantly.