CSS Gradient Generator
Build CSS gradients visually.
About this tool
Choose two colours and a type, and copy the CSS gradient value. Linear gradients run top to bottom; radial gradients are circles. This is a simple two-stop generator.
How to use
How it works
The tool writes a gradient with a colour at 0% and another at 100%. Linear output is linear-gradient(180deg,...), which goes from the top edge to the bottom. Radial output is radial-gradient(circle,...), which goes from the centre outwards. Any valid CSS colour string works.
Worked example
A dark to light linear gradient
- Input
- Linear, #111827 to #f3f4f6
- Output
- linear-gradient(180deg, #111827 0%, #f3f4f6 100%)
- Walkthrough
- Use it as background: linear-gradient(180deg, #111827 0%, #f3f4f6 100%);
Limitations
- Exactly two colour stops, at 0% and 100%.
- The angle is fixed at 180deg. Edit it in the output for diagonal or horizontal gradients.
- No conic gradients and no live preview.
Questions
How do I make a CSS gradient?
How do I change the gradient direction?
Can I add more colour stops?
Does it support radial gradients?
Features
- Linear and radial
- Copy-ready value
- Runs in your browser
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
Learn JSON - Full Crash Course
freeCodeCamp.org
JSON is the payload format behind many developer tools here.
Watch on YouTubeTypeScript in 100 Seconds
Fireship
Typed JS snippets often get formatted or hashed nearby.
Watch on YouTube
- Introducing JSON
json.org
Canonical JSON grammar for formatters and validators.
- Introduction to JSON Web Tokens
jwt.io
JWT structure for decoder and debugger pages.