CSS GRADIENT GENERATOR
Build linear, radial, and conic gradients with a live preview — calculated right here in your browser.
In short
Build linear, radial, and conic CSS gradients with a live preview. Add color stops, pick a preset, and copy the CSS — all generated locally in your browser.
deg
%
%
background: linear-gradient(90deg, #ff6a35 0%, #ffe17d 100%);
How to build a gradient
- 1
Choose a gradient type: linear, radial, or conic.
- 2
Drag the angle slider to set the direction (linear and conic gradients).
- 3
Add, remove, or drag color stops, and edit each stop's color and position.
- 4
Pick a preset for a quick starting point, or randomize the stops for inspiration.
- 5
Click Copy to grab the generated CSS and paste it into your stylesheet.
Questions
- What's the difference between linear, radial, and conic gradients?
- A linear gradient transitions colors along a straight line at a chosen angle. A radial gradient transitions outward from a center point in a circle. A conic gradient sweeps colors around a center point like a color wheel, useful for pie charts and spinners.
- How many color stops can I add?
- Up to 8 stops. Each stop has its own color and position (0-100%), so you can build anything from a simple two-color fade to a multi-color rainbow.
- Can I use this CSS directly in my stylesheet?
- Yes. Copy the generated `background: ...;` line and paste it into any CSS rule, inline style, or Tailwind arbitrary value.
- Is anything uploaded or saved?
- No. The gradient is calculated and rendered entirely in your browser with JavaScript — nothing is uploaded, logged, or stored.
Related tools
- Box Shadow GeneratorBuild single or layered box-shadows and copy the CSS.
- CSS Border GeneratorBuild a border with per-corner radius and copy the CSS.
- CSS Clamp GeneratorBuild a fluid clamp() value that scales between a min and max size.
- CSS Custom Scrollbar GeneratorStyle a scrollbar's width, corner radius, track color, thumb color, and hover color, and copy the CSS.
- CSS Transform GeneratorBuild a translate/rotate/scale/skew transform with a live preview and generated CSS.
- CSS Ken Burns Effect GeneratorBuild a slow zoom-and-pan Ken Burns effect for a background image, tune scale/pan/duration, and copy the CSS.
- CSS Variables GeneratorBuild a set of named CSS custom properties and get the generated :root block.
- CSS Entrance Animation GeneratorBrowse a copy-ready gallery of entrance animations — fade up/down, blur in, scale in, slide in, flip in, zoom in — and copy the CSS.
Updated