Design beautiful background gradients without writing a line of code. Choose from linear, radial, or conic gradient types, pick your colours, drag the colour stops to position them, and copy the ready-to-use CSS with one click. Works in all modern browsers, no sign-up needed.
Gradient Type
Colour Stops
Need a website that looks good and loads fast?
MiinDigital builds fast, SEO-ready websites for small businesses.
See our website building servicesHow to Use the CSS Gradient Generator
- Choose a gradient type. Select Linear (directional), Radial (circular outward from centre), or Conic (rotating sweep). The preview updates instantly.
- Set the angle or shape. For linear and conic gradients, drag the angle slider (0–360°). For radial, choose Ellipse or Circle.
- Pick your colours. Click each colour swatch to open the colour picker. Drag the position slider beneath each stop to control where that colour begins.
- Add or remove stops. Click “+ Add colour stop” to insert a new stop (up to 8). Click × to remove one. You need at least two stops.
- Try Random. Click “Random Gradient” to generate an instant colour combination for inspiration.
- Copy the CSS. Click “Copy CSS” and paste the
background:declaration directly into your stylesheet or page builder.
What Is a CSS Gradient, and Why Does It Matter?
A CSS gradient is a smooth transition between two or more colours, rendered entirely by the browser, no image file required. That means:
- Zero page weight. Gradients are pure CSS, so they add nothing to your page load time, unlike background images.
- Infinitely scalable. As CSS, gradients scale perfectly on any screen resolution, including Retina and 4K displays.
- Full browser support. Linear, radial, and conic gradients are supported in all modern browsers, including Chrome, Firefox, Safari, and Edge.
- Easy to animate. CSS gradients can be transitioned and animated using keyframes for engaging hover effects and loading states.
Digital marketers use gradients for hero sections, button backgrounds, overlays on images, and branded section dividers, all without reaching for Photoshop.
Linear vs. Radial vs. Conic Gradients, Which Should You Use?
Linear gradients flow in a straight line at an angle you control (0° is bottom to top, 90° is left to right, 135° is diagonal). They are the most widely used type, ideal for hero backgrounds, navigation bars, and button fills.
Radial gradients expand outward from a central point in an ellipse or circle shape. They work well for spotlight effects, glowing icons, and soft vignettes.
Conic gradients rotate colours around a centre point like a colour wheel or pie chart. Use them for decorative rings, pie-chart backgrounds, or modern abstract sections.
Frequently asked questions
Is this CSS gradient generator free?
Yes. There are no limits, no sign-ups, and no hidden costs. Generate and copy as many gradients as you need.
Can I use more than two colours?
Yes. You can add up to 8 colour stops. Click “+ Add colour stop” and each new stop is inserted between the existing ones. Use multiple stops to create rainbow effects, tri-colour brand gradients, or subtle multi-tone backgrounds.
What does the position slider do?
Each colour stop has a position (0% to 100%) that controls where along the gradient that colour is fully rendered. Moving a stop towards 0% brings it closer to the start; moving it towards 100% pushes it toward the end. Stops that are close together create sharp colour transitions; stops that are far apart produce soft blends.
How do I add the gradient to my WordPress site?
Copy the CSS output, then open your theme’s Additional CSS field (Appearance → Customise → Additional CSS) or your page builder’s background settings. Paste the background: property into the relevant CSS rule for your element (e.g., .hero { background: linear-gradient(...); }).
Does the generated CSS work in all browsers?
All three gradient types, linear, radial, and conic, are fully supported in Chrome, Firefox, Safari 12.1+, and Edge. Conic gradients require Safari 12.1+ and are not supported in Internet Explorer. If you need IE support, use a solid colour fallback before the gradient declaration.
What is the Reverse button for?
Reverse flips the colour stop positions (e.g., 0% becomes 100% and vice versa), reversing the direction of the gradient without changing the angle. It’s a quick way to see if the inverted version looks better.
Can I animate a CSS gradient?
You cannot transition a gradient directly, but you can animate it using CSS @keyframes on the background-position property combined with a large background size. A common technique is to use a wide gradient and shift its position: animation: moveGrad 4s infinite alternate; with @keyframes moveGrad { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }.
Sources
- MDN Web Docs, “Using CSS gradients“, accessed September 2026.
Related free tools
- Color Scheme Generator: Create colour palettes for your brand or website and copy the hex codes.
- Free Circle Crop Image Tool: Crop any image into a circle for profile photos and avatars, then download it.
- Image Compressor: Make images smaller without visible quality loss so your pages load faster.
- Free QR Code Generator: Create QR codes that never expire, choose the size and colours, and download a PNG. No account needed.
- See all free tools for marketers
