All free tools

CSS gradient generator

Pick a gradient type, set the angle and colours, and copy the CSS. The preview updates as you change anything, and the presets give you a starting point.

Runs in your browser. Nothing is sent to or stored by EpiFive.

Type
Colour stops (2 of 6)
  1. #ff7e5f
  2. #feb47b

Presets

CSS

background-color: #ff7e5f;
background-image: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);

The solid background-color is a fallback for very old browsers and shows while the page loads.

How to use it

  1. Choose Linear, Radial or Conic.
  2. Set the angle (or the shape and centre for radial and conic gradients).
  3. Pick colours and move each stop’s position. Add up to six colours, or start from a preset.
  4. Copy the CSS and paste it into your stylesheet.

Tips

  • Keep text readable: check contrast against the lightest and darkest parts of the gradient.
  • Two close shades of one colour look more refined than two unrelated colours.
  • Gradients can be layered: separate several with commas in one background-image.
  • Favicon generator: Make favicon.ico and PNG app icons from an image, text or emoji, with the HTML to paste.
  • Image converter: Convert images between PNG, JPG and WebP in your browser, one file or many.
  • Meta tag generator: Title, description, canonical, robots, Open Graph and Twitter tags with a live Google preview.
  • Regex tester: Test JavaScript regular expressions with live match highlighting, capture groups and flags.

Questions people ask

What is the difference between linear, radial and conic gradients?

A linear gradient changes colour along a straight line at an angle. A radial gradient spreads out from a centre point as a circle or ellipse. A conic gradient sweeps around a centre point like a colour wheel or pie chart.

Do CSS gradients work in all browsers?

Linear and radial gradients work in every current browser without prefixes. Conic gradients work in all current versions of Chrome, Edge, Firefox and Safari. The generated background-color line is a fallback for anything older.

How do I make a hard colour edge instead of a blend?

Put two stops at the same position, for example red 50% and blue 50%. The colour switches sharply at that point, which is how stripes and flags are made.

Should I use a gradient or an image?

Use CSS. A gradient is a few bytes of code, scales to any screen without blurring and loads instantly, while an image adds a download and can look soft on high-resolution phone screens.