CSS Gradient Generator
Create beautiful CSS gradients visually. Copy the generated CSS code for linear and radial gradients.
background: linear-gradient(135deg, #6366f1, #ec4899);How to Create CSS Gradients Online
Choose gradient type
Select between linear gradient (color flows in a straight line) or radial gradient (color radiates from a center point). Linear gradients work well for backgrounds and overlays; radial gradients suit spotlights and circular elements.
Set colors and positions
Add color stops by clicking the gradient bar. Adjust each stop's color and position to control the transition. You can add as many stops as needed — two creates a simple fade, three or more creates complex multi-tone effects.
Adjust direction and copy CSS
For linear gradients, set the angle (0deg = bottom to top, 90deg = left to right). For radial gradients, choose the shape and position. Copy the generated CSS code to use directly in your stylesheet.
Common Use Cases
Creating eye-catching hero section backgrounds for landing pages
Adding subtle depth to card components with gradient overlays
Building gradient text effects for headings and display typography
Designing progress bars and loading indicators with color transitions
Creating glassmorphism effects with semi-transparent gradient overlays
Building mesh-like gradient backgrounds using multiple layered gradients
CSS Gradients: From Basic Fades to Advanced Visual Effects
Frequently Asked Questions
Related Tools
Color Converter
Convert colors between HEX, RGB, HSL, and HSB formats. Pick colors visually with an interactive color picker.
Color Palette Generator
Generate beautiful color palettes with harmonious color schemes. Export as CSS, Tailwind, or image.
JSON Formatter & Validator
Format, beautify, and validate JSON data instantly. Supports minification, tree view, and syntax highlighting.
Base64 Encode / Decode
Encode text to Base64 or decode Base64 strings back to plain text. Supports UTF-8 and binary data.