Gradient Generator Online Free
Create linear, radial, and conic CSS gradients with a live preview. Add multiple color stops, set angles, and copy the final CSS code with one click. No install needed.
The preview is not a picture of a gradient, it is the gradient
This tool does not rasterise anything. It writes real CSS gradient syntax and assigns it to a preview element’s background property. What you are looking at is produced by your browser’s own gradient renderer, because it is your browser’s own gradient renderer. Copy the string, paste it into a stylesheet, and you get an identical result with no conversion step anywhere in the chain.
That fourth swatch is worth noting. Put two stops close together and the blend compresses into a sharp edge. Put them at the identical position and you get a hard line with no transition at all, which is how CSS stripes and split backgrounds are built without a single image file.
Stops are just a list of pairs
Internally a gradient is nothing more than an array of colour and position pairs, position expressed as a percentage. Adding a stop pushes an entry. Dragging a slider mutates one in place.
Stops do not have to be evenly spaced, and they do not have to be sorted. CSS accepts them in any order and resolves overlaps by clamping, which is exactly how this tool treats them. Bunching three colours near one edge produces a fast transition there and a long lazy blend across the rest.
Because that returns a plain string, the value in the code box and the value painting the preview are the same variable. There is no separate export path that could drift.
Three gradient functions, three mental models
circle, never ellipse. CSS supports both, and the default in the spec is actually ellipse, which stretches to match a non square box. This tool hardcodes circle. In a wide preview the circle will clip against the shorter dimension. That is correct behaviour for the syntax being generated, not a rendering fault.The interpolation problem nobody mentions
Blend blue into yellow and CSS walks a straight line through sRGB, which passes through a muddy grey in the middle. It happens because sRGB is not perceptually uniform, so the mathematical midpoint between two colours is often not the visual midpoint.
Modern CSS can fix this. Colour Level 4 lets you name the interpolation space, and blending through Oklab or LCH keeps saturation intact across the transition:
Browser support arrived across Chrome, Safari and Firefox during 2023, so it is safe for most audiences now. This tool outputs plain sRGB syntax for maximum compatibility, but if a two colour blend looks washed out in the middle, adding in oklab to the copied string is usually the fix.
Stop controls
CSS gradient references
- linear-gradient() on MDN, including the angle convention and how corner keywords resolve.
- radial-gradient() covers the ellipse shape and sizing keywords this tool does not expose.
- conic-gradient() including the hard stop technique used for pie charts.
- CSS Images Module Level 3 is the specification defining all three functions.
- Colour interpolation spaces in Colour Level 4, for the Oklab and LCH syntax above.
- A perceptual colour space for image processing, Björn Ottosson’s original write up on why Oklab blends more cleanly than sRGB.
Design work this speeds up
Building a hero background for a landing page, generating a subtle card overlay for a design system, prototyping a brand colour transition before handing specs to a developer, or grabbing a conic gradient for a progress ring. Because the output is copy and paste CSS rather than an exported image, it drops into a stylesheet with no asset pipeline, no retina variants, and no extra network request.
FAQ: Gradient Generator Online Free
Yes, completely free. No account, no signup, and no payment required at any point.
A linear gradient transitions colors along a straight line at a set angle. A radial gradient radiates outward from a center point in a circular or elliptical pattern. A conic gradient sweeps colors around a center point like a color wheel. Each type produces a visually distinct look and suits different design contexts.
Click the Add color stop button below the existing stops. A new stop appears at 100%. Pick a color and drag its position slider to the spot you want. You can add as many stops as needed.
Click Copy CSS to copy the full background property including the property name. Click Copy value only if you want just the gradient string to use in a shorthand or inside another CSS value. Paste either directly into your stylesheet.
Linear and radial gradients have excellent cross-browser support and work in all modern browsers. Conic gradients work in Chrome, Edge, Firefox, and Safari but may need a prefix or fallback for some older browser versions. Check Can I Use if you need to support legacy environments.
Color stop positions are percentages from 0 to 100 representing where along the gradient each color is fully rendered. A stop at 0% is at the very start, 50% is the midpoint, and 100% is the end. Colors transition smoothly between adjacent stops.
From the blog
Notes on images and colour
Format choices, compression tradeoffs and accessible palettes.