How do I create a CSS gradient?
Choose a gradient type, pick your colors, and copy the CSS. The default Ocean gradient is a linear gradient at 90 degrees from #03bdee to #2563eb, and the generated code is: background: linear-gradient(90deg, #03bdee 0%, #2563eb 100%);. Each color stop has a color picker, a hex field and a position percentage, so you can place colors exactly where you want them, and you can add up to 6 stops or remove them down to a minimum of 2. The preview updates live as you type, drag the angle slider, or click one of the six presets (Ocean, Sunset, Forest, Candy, Midnight and Rainbow). When it looks right, copy the CSS into your stylesheet or download the gradient as a 1200 x 675 PNG image for slides, banners and social posts.
What is the difference between linear, radial and conic gradients?
A linear gradient blends colors along a straight line at an angle you choose: 90deg runs left to right, 180deg top to bottom, and 45deg diagonally, like the Sunset preset (linear-gradient(45deg, #f97316 0%, #ec4899 55%, #8b5cf6 100%)). A radial gradient spreads from a center point outward in a circle, good for glows and spotlight effects; the Midnight preset uses radial-gradient(circle, #1e3a8a 0%, #020617 100%). A conic gradient sweeps colors around a center point like a pie chart or color wheel, which is how the Rainbow preset cycles through five colors. All three use the same color stops; only the shape of the blend changes, so you can switch types to compare looks instantly.
How do color stops and positions work?
A color stop is a color plus the position where it sits, as a percentage of the gradient line. With stops at 0% and 100% the blend fills the whole element evenly. Moving a stop changes the balance: in the Sunset preset, pink sits at 55%, so orange gets slightly more than half the space before pink takes over. Stops are sorted automatically in the generated CSS, so you can enter them in any order. Hard stops (two colors at the same position) create sharp stripes instead of blends, which is a classic trick for flags, progress bars and striped backgrounds. Positions are clamped between 0 and 100, and hex codes can be typed in short or long form (#0bd becomes #00bbdd).
Where can I use CSS gradients?
Anywhere a background is needed: hero sections, buttons, cards, headers, overlays on photos, text effects (with background-clip: text), borders, charts and loading skeletons. Because gradients are generated by the browser from a line of CSS, they weigh almost nothing compared with an image file, scale to any screen size without blurring, and can be animated by transitioning background-position or size. The PNG download covers the cases where an image is genuinely required: presentation slides, video thumbnails, email headers (where CSS support is limited) and design tools. A common workflow is to design the gradient here, copy the CSS for the website, and export the PNG for the matching social graphic so both stay consistent.
What makes a good gradient?
Good gradients usually move between colors that are neighbors on the color wheel (blue to teal, orange to pink) rather than opposites, which can turn muddy in the middle. Two or three stops are enough for most designs; more stops work when each color gets a clear zone, as in the Rainbow conic preset. Angle matters for mood: vertical gradients feel calm and stable, diagonals feel energetic. Check contrast if text will sit on the gradient: light text needs the darker end behind it, and the live preview here is large enough to judge that at a glance. If you are stuck, the Random gradient button is a surprisingly good brainstorming tool; click until something clicks, then fine-tune the stops.
Is it free and private?
Yes. The CSS gradient generator is free, with no signup, no account and no limits. Everything runs in your browser: your colors and designs are never sent to a server, stored or logged, and the PNG is rendered locally on your device. For web designers, developers, students and content creators who need a gradient quickly, with copy-ready CSS and an image export in one place, this page does the job in seconds.