CSS gradient generator
Build linear, radial, and conic CSS gradients — drag stops, pick colors, copy the CSS.
background: linear-gradient(135deg, #B7FF3E 0%, #0a0a0a 100%);Add up to six color stops, drag the position slider, and copy the CSS.
About the CSS gradient generator
Handytool's CSS gradient generator builds linear, radial, and conic gradients with up to six color stops. Drag a stop's position, change its color, switch the gradient type, and the live preview and CSS declaration update instantly. Start from one of the built-in presets — Lime Swiss, Sunset, Sky, Aurora — or design your own from scratch.
CSS gradient generator features
- 01
Linear, radial, and conic
Linear is the everyday background gradient; radial is great for highlights and vignettes; conic is perfect for pie charts, color wheels, and rotating backgrounds.
- 02
Up to six color stops
Add and remove stops, set each one's position with a slider, and pick its color via the system color picker or a hex value. Stops re-sort by position automatically.
- 03
Copyable CSS declaration
The output is a complete background: ... declaration that you can paste straight into a stylesheet, a styled component, or a Tailwind arbitrary-value class.
CSS gradient generator FAQ
- What's the difference between linear, radial, and conic?
- Linear gradients run in a straight line at a given angle; radial gradients spread outwards from a center; conic gradients sweep around a point like a clock hand. Each one suits a different visual effect.
- How many color stops should I use?
- Two stops is the classic two-color gradient. Three or four lets you create realistic transitions (sunset, aurora). More than six tends to look noisy — that's why this generator caps at six.
- Can I use this for backgrounds in an email template?
- Most email clients still don't support modern CSS gradients reliably — provide a solid fallback color in addition to the background gradient if you copy this into an email template.
- Is the output pixel-accurate?
- Yes — the preview is rendered by the browser's native gradient engine, so what you see is what your CSS will produce.
Related tools
Developer →- Live
Cubic-bezier editor
Visually design CSS cubic-bezier easing curves — drag the handles, preview the motion, and copy the CSS.
DeveloperFreeRuns locallyOpen - Live
CSS box-shadow generator
Design CSS box-shadow values with live preview — offsets, blur, spread, opacity, and inset.
DeveloperFreeRuns locallyOpen - Live
CSS border-radius generator
Visually design CSS border-radius — uniform, per-corner, and elliptical — with live preview.
DeveloperFreeRuns locallyOpen
Explore other tools
All tools →- Live
PDF to JPG
Convert each page of a PDF into a sharp JPG, PNG, or WebP image right in your browser — no upload, no quality loss.
PDFFreeRuns locallyOpen - Live
Remove background
Erase the background of a photo using an in-browser AI model — no upload, your images stay on your device.
ImageFreeRuns locallyOpen - Live
Trim Video
Cut the start or end of a video with frame-level precision.
VideoFreeOpen - Live
Trim audio
Cut a section of an audio file.
AudioFreeRuns locallyOpen - Live
Markdown to HTML
Convert Markdown into clean HTML right in your browser.
DocumentFreeRuns locallyOpen