Gradient Generator

Build CSS linear and radial gradients visually, then copy the code.

Tool Panel

Processed locally
Loading tool...
About Gradient Generator

Visual editor for linear gradients: pick the colours and direction and copy the resulting background declaration.

  • 1

    It generates a **two-colour linear gradient**: `linear-gradient(direction, from, to)`. Directions are right, down, 45° and 135° — the diagonals use angles rather than `to top right` because an angle lands predictably, while a `to …` keyword shifts with the element aspect ratio.

  • 2

    Both colours come from a picker or a pasted hex, and the preview updates on either change.

  • 3

    The output is a single `background` line that works on any selector.

Related tools

View all
Design Tools

Color Picker

Pick a colour and read off its HEX, RGB and HSL values.

Design Tools
Design Tools

Contrast Checker

Check foreground and background contrast against accessibility thresholds.

Design Tools
Design Tools

Box Shadow Generator

Tune a box shadow visually and copy the CSS.

Design Tools

Unit Converter

Convert physical units across length, weight, volume and more.

Design Tools
Design Tools

Bytes Converter

Convert between bytes, KB, MB, GB and TB.

Design Tools
Design Tools

Border Radius Generator

Tune each corner visually and copy the CSS border-radius.

Design Tools

Clip Path Generator

Drag the points to shape a polygon and copy the CSS clip-path.

Design Tools

Cubic Bezier Generator

Drag the control points to shape an easing curve and copy the CSS.