Skip to content
Toolars
Explore

CSS Gradient Generator

Linear or radial gradients with 2–16 editable stops; add, remove, reverse or randomize colors.

Local processing

Processing details

Tool inputs are processed on your device.

Resources may be downloaded to run this tool. Account services are separate.

Privacy information
Report bug

Task path / input to outcome

How to compose a CSS gradient

  1. 01

    Choose the gradient type

    Open Gradient type and pick Linear for a straight blend or Radial for a circular one. The preview badge shows the current angle as you work. 2–16 Color stops · Linear / Radial · Add / Remove / Reverse / Randomize

  2. 02

    Set the direction or focus

    Direction / focus runs from 0 to 360. For a linear gradient it is the angle in degrees; for a radial one it places the focus point on a ring around the center. The badge tracks the value live, which makes small corrections easy to judge.

  3. 03

    Pick colors and stops

    Add 2–16 color stops. Set every position from 0% to 100% in nondecreasing order; equal positions create a hard edge. Change, remove, reverse or randomize the stops and inspect the preview.

  4. 04

    Control the blend band

    The distance between the two stops is the transition zone: stops 1% apart produce a near-hard edge for two-tone stripes, while stops at 0% and 100% — the defaults — give the softest full-width blend. Watch the preview rather than the numbers.

  5. 05

    Copy the declaration

    Press Copy CSS or Download .css to save toolars-gradient.css. The .gradient rule is a single background declaration — linear-gradient(…deg, …) or radial-gradient(circle at …, …) — matched exactly to your stops.

  6. 06

    Apply and extend it

    Export the current result. HTML includes the current CSS and a working example. Native controls support keyboard input.

Tool facts

Processing
In your browser
Input leaves this device
Never
Retention
Nothing is stored
Price
Free

Your input stays in the browser.

CSS Gradient Generator uses its verified local execution path and does not create a hidden input or output history.

Local execution

Runs inside the current browser tab.

No hidden processing

Active tool data never becomes a Toolars document record.

No account required

Use the core workflow without creating a profile. Favorites sync to your account after you sign in.

Immediate reset

Clear the tab and the active working data is gone.

What CSS Gradient Generator actually does

A hero band that fades from brand blue to teal, a soft radial glow behind a product shot, a hard-stop two-tone stripe on a pricing table — gradients carry more interfaces than any image asset. Radial mode earns its keep for glows and vignettes that a linear blend cannot fake. Composing one visually, with explicit stops instead of guesswork, takes seconds, and because the generator runs in this tab the palette experiments stay private until the design ships. The copied declaration needs no cleanup before it goes into a stylesheet.

Common questions

Why does the preview say CHECK VALUES?
0 ≤ stop[0] ≤ … ≤ stop[N] ≤ 100. Check the source, selected controls and visible validation before exporting. An invalid result cannot be exported.
What does Direction / focus do in radial mode?
For a radial gradient the angle rotates nothing — it positions the circle's focus on a ring 25% out from the center, so 0° pushes the focus right and 180° pushes it left. The exported circle at X% Y% coordinates reflect that exactly.
Which angle gives the direction I want?
Linear angles follow the CSS convention: 0deg blends upward, 90deg points to the right, 180deg downward, and 270deg to the left. The 135deg default runs from top-left to bottom-right, a diagonal that flatters most hero bands.
How do I make a hard-stop stripe?
Color stops: position[i] = position[i+1]. Color.
Can I build a three-color gradient?
Color stops: 2–16. Add / Remove / Reverse / Randomize.
Are my colors uploaded anywhere?
No. Everything is computed in the current browser tab with no account, and no value enters storage, logs, or analytics. Press Reset to return to the default linear blend.

Related tasks, not a dead end.

Move into another focused workspace without returning to the full index.

CSS Loader Generator

264 loader templates: 24 geometries × 11 motion profiles; filter by category and inspect the animation.

Create

CSS Checkbox Generator

24 checkbox templates: eight marks × three transitions; click or press Space in the native preview.

Create

CSS Switch Generator

18 switch templates: six thumb shapes × three transitions; test the native control by click or keyboard.

Create

CSS Clip Path Generator

24 clip shapes, primitive parameters and editable polygon points; export CSS or a declaration.

Create