CSS Gradient Generator
Design a gradient by eye, then copy the CSS or download it as an image.
- Free & unlimited
- No sign-up
- Instant results
How to use CSS Gradient Generator
- Pick a type (linear, radial or conic) and set the angle or centre.
- Add, drag and colour the stops, or start from a preset.
- Copy the CSS or download a 1920 × 1080 PNG.
Using the CSS
Paste the two lines into any CSS rule. The first line is a solid colour for very old browsers; the second is the gradient. Gradients work in every modern browser without prefixes.
Tips for nice gradients
- Use colours that sit near each other on the colour wheel to avoid a muddy grey middle.
- Two or three stops usually look better than many.
- Lower a stop's opacity to fade into the background or over a photo.
- Conic gradients make pie charts and colour wheels.
Frequently asked questions
Can I move a colour stop?
Yes. Drag the circles on the bar, use the arrow keys, or type a position.
Can I use transparency?
Yes; set a stop's opacity below 100.
Is the PNG exactly the same?
Yes for linear and conic. Radial ellipses and repeating gradients may differ slightly; use the CSS on websites.
Is it free to use the gradients?
Yes, for anything.
Related tools
CSS Box Shadow Generator
Create CSS box shadows with several layers.
Color Converter
Convert HEX, RGB, HSL, HSV and CMYK colours.
Color Picker from Image
Pick any colour from a picture and get HEX, RGB and HSL.
CSS Minifier
Shrink CSS by removing comments and spaces.
More Developer Tools
JSON Formatter & Validator
Format, validate and minify JSON with clear error messages.
JSON to CSV Converter
Convert a JSON array to CSV for Excel or Google Sheets.
CSV to JSON Converter
Convert CSV or Excel data into a JSON array.
Base64 Encode & Decode
Encode text to Base64 or decode Base64, UTF-8 safe.
URL Encode & Decode
Percent-encode or decode URLs and split them into parts.
UUID Generator
Generate random v4 or time-ordered v7 UUIDs in bulk.
JWT Decoder
Decode a JSON Web Token and check when it expires.
Hash Generator
MD5, SHA-1, SHA-256 and SHA-512 hashes for text or files.