Skip to main content
CSS Tools
Popular
Recently added

Gradient Generator

Create linear-gradient CSS from two colors and a direction.

Introduction

CSS Gradient Generator helps you craft linear gradients for UI backgrounds and buttons. Preview updates live and CSS is ready to copy.

Features

  • Two-color linear gradients
  • Common directions plus 45deg
  • Live preview
  • Copy CSS

How to use

  • 1
    Set color 1, color 2, and direction.
  • 2
    Copy the generated CSS.

Example

Blue fade

Input
#1976d2 → #42a5f5
Output
background: linear-gradient(to right, #1976d2, #42a5f5);

Benefits

  • Use Gradient Generator without installing a desktop app or browser extension.
  • Works well alongside Box Shadow and Color Picker for adjacent steps in the same workflow.
  • Results stay in this browser tab until you copy or download them.

FAQs

This tool focuses on linear gradients.

Currently two stops. You can edit the CSS after copying.

No.

Pair Gradient Generator with Box Shadow, Color Picker, HEX ↔ RGB. See Related tools on this page.


Developer resources