CSS Gradient Generator
Build linear and radial CSS gradients with multiple color stops and angle control.
background: linear-gradient(90deg, #6366f1 0%, #ec4899 100%);A CSS gradient is an image the browser draws that blends between two or more colors. It can be linear, along a line, or radial, outward from a center point. Sites use gradients for backgrounds, buttons and other visual effects.
Because the browser draws them, gradients need no image files. You can layer them with other backgrounds or animate them with other CSS properties.
Web design
Background gradients for websites and landing pages
CSS development
CSS you can paste straight into a stylesheet
UI components
Gradient fills for buttons, cards and other elements
Brand assets
Reuse the same gradient across marketing materials
How do I create a CSS gradient?
Pick a gradient type, then set the colors, stop positions and angle with the controls. The preview updates as you go. Copy the generated CSS and paste it into your stylesheet.
What is the difference between linear and radial gradients?
A linear gradient changes color along a straight line at the angle you set. A radial gradient changes color outward from a center point in a circle. Linear gradients are more common for backgrounds. Radial gradients suit spotlight and circular effects.
Can I use multiple colors in a gradient?
Yes. Add as many color stops as you need. Each stop has a color and a position from 0% to 100%, and the browser blends between the stops in order.
How do I make a gradient transparent?
Use rgba() or hsla() values for your color stops. For example, rgba(255,0,0,0) is fully transparent red. You can also use the transparent keyword, which equals rgba(0,0,0,0).
What browsers support CSS gradients?
All current browsers support CSS gradients, including Chrome, Firefox, Safari, Edge and Opera. Gradients are plain CSS and need no JavaScript.
Private by default
The tool builds gradients in your browser and sends nothing to a server.
Related tools
JSON Formatter
Format JSON online in your browser. Paste or upload JSON to tidy it with 2 or 4 space indents, find syntax errors, minify it or browse it as a collapsible tree.
JavaScript to JSON
Convert JavaScript object literals to valid JSON
JSON Merge
Merge two JSON objects online with a deep or shallow strategy and choose how arrays combine. Useful for config files and API responses. Free, no signup.