T

Text Machine

Powerful text tools, in your browser

CSS Gradient Generator

Design linear and radial CSS gradients with a live preview. Add color stops, set the angle, and copy clean background CSS — all in your browser.

Preview
Gradient

Angle

90°

Color stops

#f5530c

%

#ffa94d

%

CSS

background: linear-gradient(90deg, #f5530c 0%, #ffa94d 100%);

How to use CSS Gradient Generator

  1. 1

    Choose a gradient type

    Switch between Linear and Radial. A linear gradient also lets you set the direction with the angle slider, measured in degrees.

  2. 2

    Add and color your stops

    Click a swatch to pick each color, and set its position from 0 to 100 percent. Use Add color stop for multi-color blends, or remove a stop to simplify.

  3. 3

    Preview live

    The preview panel shows your gradient exactly as it will render in a browser, updating with every change you make.

  4. 4

    Copy the CSS

    Copy the generated background line and paste it into your stylesheet. It is standard CSS that works in every modern browser.

Frequently asked questions

How do I create a CSS gradient?
Choose linear or radial, set the angle, and add as many color stops as you like. The preview updates live, and the ready-to-use CSS appears below as a background property you can copy straight into your stylesheet.
What is the difference between a linear and a radial gradient?
A linear gradient blends colors along a straight line, and you control its direction with the angle in degrees. A radial gradient blends outward in a circle from the center. Both use the same color stops; only the shape of the blend changes.
What are color stops?
A color stop is a color paired with a position from 0 to 100 percent along the gradient. Two stops give a simple two-color blend, while adding more lets you build rich multi-color gradients. Change the position value to move where each color sits.
How do I use the gradient in my project?
Copy the generated line and paste it as the background property of any element, such as a div or a section. Because it is plain CSS, it works in every modern browser with no images or libraries required.
Is my data uploaded to a server?
No. Everything runs entirely in your browser. Nothing you create is uploaded, logged, or stored, so your work stays completely private and the tool keeps working even when you are offline.

Related tools

Keep going with these handy tools

HTML to Text Converter

JSON Formatter

Regex Tester

JWT Decoder

CSS Box Shadow Generator

Text to HTML Converter