How to use the CSS gradient generator
- Choose a gradient type – Linear, Radial or Conic. For linear gradients set the Angle; for conic gradients set the Start angle; for radial and conic gradients move the centre with Centre, horizontal and Centre, vertical. Radial gradients also have a Shape switch for Circle or Ellipse.
- Edit the colour stops. Type a colour into each box or use the square colour picker beside it, then drag the slider under it to set where that colour sits, from 0% to 100%.
- Add, remove or rearrange stops with Add stop, the cross button and the up and down arrows. Reverse flips the whole gradient.
- Start from a preset or press Random gradient if you want ideas, then adjust from there.
- Press Copy CSS under the code box and paste the result into your stylesheet.
Features
- Linear, radial (circle or ellipse) and conic gradients.
- Between two and six colour stops, each with its own position slider.
- Accepts HEX, rgb() and hsl() colours, including transparency.
- Large live preview on a checkerboard, plus a thin strip that shows the stops from left to right.
- New stops appear in the widest gap, coloured halfway between their neighbours, so the gradient stays smooth.
- Six original presets and a random gradient button that picks related, balanced hues.
- One clean background declaration with a copy button – no prefixes and no extra markup.
- Clear message naming the stop whose colour can't be read, while the preview keeps showing the last valid gradient.
Getting better-looking gradients
Gradients between two colours that sit far apart on the colour wheel, such as blue and orange, often pass through a dull grey in the middle. Adding a third stop with a bright in-between colour, for example purple between blue and pink, keeps the midpoint lively. The Add stop button does most of this work by mixing the two neighbouring colours for you, and you can then nudge the new colour to taste.
Subtle gradients usually look more professional than loud ones. Try two shades of the same hue a few steps apart, with an angle of 135 or 160 degrees, for card backgrounds and page headers. Keep strong multi-colour gradients for small areas like buttons, badges and illustrations.
If you are placing text on top of a gradient, check it is readable at both ends. The colour converter shows the contrast ratio of any colour against white and black, which is a quick way to test the lightest and darkest stops.
Where the colours come from
Brand colours are the best starting point. If your palette lives in a logo or a screenshot, the image colour picker lets you click a pixel and copy its HEX code, which you can paste straight into a stop here. To give the same element depth, pair the gradient with a soft shadow from the box shadow generator.
Why use Fileora's gradient generator
Writing gradient CSS by hand means guessing angles and percentages, reloading the page and guessing again. Here you see every change instantly, and the code you copy is exactly what the preview shows. The tool is free, needs no sign-up and works on phones as well as desktops. Everything runs in your browser, so your designs never leave your device.