Gradient Generator
Create a CSS linear or radial gradient. Provide type, first colour, second colour and angle and the tool shows the result immediately.
Your inputs
Your inputs and files stay on your device.
Your result
A little input. A useful answer.
Enter your values and run the tool to see your result here.
What the Gradient Generator does
Create a CSS linear or radial gradient. This image and media tool runs entirely in your browser. You provide type, first colour, second colour, angle and CSS selector.
How to use it
- Set Type.
- Set First colour.
- Set Second colour.
- Set Angle.
- Set CSS selector.
- Press Create gradient.
- Review the result panel, then use Copy result, Print or Download as needed.
Inputs and options
- Type: choose Linear or Radial.
- First colour: enter a colour.
- Second colour: enter a colour.
- Angle: enter a number.
- CSS selector: enter text.
Limits
Maximum source image size: 20 MB. Processing runs in this browser.
Worked example
Using Type = Linear; Angle = 135; CSS selector = .hero, the tool returns:
.hero {
background: linear-gradient(135deg, #1b6b5b, #c6ea89);
}
This example was produced by the tool itself.
Number fields
- Angle starts at 135, minimum 0 and maximum 360.
Use a decimal point for fractions and a minus sign for negative values where they make sense. Fields left empty are treated as missing rather than zero.
Tips for reliable results
- Colour pickers store hex values; use the same hex code elsewhere to reproduce the exact shade.
- Keep units consistent across fields (for example all lengths in the same unit) because the tool does not guess which unit you meant.
- The result is recalculated each time you press the button, so change one field at a time to see how it affects the outcome.
Frequently asked questions
What does the Gradient Generator return?
It shows the processed output in the result panel, which you can copy, print or download.
Does this tool upload my data?
No. Everything you enter is processed by JavaScript on your device, so nothing is sent to a server.
Something not working as expected? Report a problem with Gradient Generator with a sample input and the result you expected.