हिं हिन्दी

    CSS gradient generator

    Design linear, radial or conic gradients and copy the CSS.

    Type

    Colour stops

      Made in your browser. Nothing is uploaded.

      About this tool

      This tool builds a CSS gradient from up to 6 colour stops and gives you the background CSS to copy. Choose linear (with an angle), radial (circle or ellipse) or conic, drag each stop's position, and see the result live. The code includes a solid fallback colour.

      At a glance

      What it does
      Design linear, radial or conic gradients and copy the CSS.
      Price
      Free, no sign-up
      Works in
      Your browser, on phone or computer. Works offline after the first visit.
      Privacy
      What you type never leaves your device.

      How to make a CSS gradient

      1. Choose Linear, Radial or Conic and set the angle or centre.
      2. Pick colours and drag their positions; add up to 6 stops.
      3. Press "Copy CSS" and paste it into your stylesheet.

      Private

      Your text stays in your browser and is never sent to a server.

      Instant

      Results update as you type, with nothing to install.

      Free

      No sign-up, no limits and no ads inside your writing space.

      Frequently asked questions

      What does the angle in linear-gradient mean?

      0deg goes from bottom to top, 90deg from left to right and 180deg from top to bottom. 135deg runs from the top-left corner to the bottom-right.

      Do CSS gradients work in all browsers?

      linear-gradient and radial-gradient work in every current browser, and conic-gradient works in current Chrome, Edge, Firefox and Safari. The first line of the CSS gives a solid colour for very old browsers.

      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 then switches sharply at the halfway point.