Gradient Generator
Design linear, radial or conic gradients with draggable colour stops, copy ready CSS and Tailwind code, or download a PNG at any size.
Free, no sign-up
Your data stays on your device
Works offline after first open
The tool
Loading the tool…
How to use
- Choose the gradient type, or start from a preset.
- Drag the colour stops along the bar, and click the bar itself to add a stop. Select a stop to change its colour and opacity.
- Copy the CSS or Tailwind code, or set a size and download a PNG.
Privacy & how it works
Processes your data in the browser and stores nothing.
- Engine: lightweight in-page code, no external libraries.
- Works offline after you open it once.
Frequently asked questions
Is the PNG the same as the preview?
Very close. The image is drawn pixel by pixel with the same geometry as CSS (gradient line length, farthest-corner for radial, angle from the top for conic), blending premultiplied colours like browsers do.
How do I move a stop with the keyboard?
Tab to the stop, move it with the left and right arrows (Shift moves 10%), and press Delete to remove it. At least two stops must remain.
Why does the Tailwind code have underscores?
Tailwind writes arbitrary values inside [ ] and turns _ into spaces. The code works with Tailwind 3 and later.
Related tools
Mesh Gradient GeneratorSoft backgrounds from colour points you drag and blend. Randomise with one tap, download a PNG at any size, or copy a CSS approximation made of layered gradients.Pattern GeneratorSeamless repeating patterns: dots, grid, stripes, checker, zigzag, waves, crosses and triangles. Get them as CSS (SVG or pure gradients) or download SVG and PNG for slides and designs.Box Shadow GeneratorDesign multi-layer box-shadow: offset, blur, spread, colour with opacity and inset, plus a one-tap smooth layered shadow. Copy ready CSS or Tailwind code.Colour PickerPick any colour from an image with a tap, or type its code, and get HEX, RGB, HSL, HSV and CMYK values, WCAG contrast and a palette extracted from the image. All on your device.