CSS Gradient Generator
Pick two colors, choose a linear or radial style, set the angle, and this generator shows a live preview with the ready-to-paste CSS. Copy the background property straight into your stylesheet. Free, instant, and it runs entirely in your browser.
CSS
background: linear-gradient(90deg, #ff0080, #7928ca);Frequently asked questions
Use the background property with linear-gradient() or radial-gradient(), passing an angle (or shape) and two or more color stops — for example background: linear-gradient(90deg, #ff0080, #7928ca). Set your colors and angle above and copy the generated code.
A linear gradient blends colors along a straight line at the angle you set, while a radial gradient blends outward from a center point in a circle. This tool generates both — switch the style to compare them.
Yes — linear-gradient and radial-gradient are supported in every modern browser without vendor prefixes, so the generated code works in current versions of Chrome, Firefox, Safari, and Edge.
Yes — free, no sign-up, and the preview and code are generated entirely in your browser.
More free tools
Password Generator
Generate strong, random passwords with options you control.
Try toolColor Converter
Convert colors between HEX, RGB, and HSL with a live preview.
Try toolColor Palette Generator
Build harmonious color palettes from any base color and copy the hex codes.
Try toolColor Contrast Checker
Check a color pair's contrast ratio against WCAG AA and AAA.
Try toolRandom Number Generator
Generate random numbers in any range, with or without duplicates.
Try toolPassword Strength Checker
Test a password's strength, entropy, and estimated crack time — nothing uploaded.
Try toolReady to take control of your subscriptions?
Track every subscription, catch renewals before they hit, and stop paying for what you don't use — no bank connection required.
- No bank connection required
- No credit card to start
- Works in any country & currency
- Reminders before every charge
- One-time pricing, no recurring fee
- 30-day money-back guarantee
