Gradient Background Generator

Image

Build a background for a web section, slide or image asset. Copy CSS for a background that scales with a web element, or export an image at a fixed pixel size.

Live preview

Scaled to fit - exports use the real pixel size

Gradient16:91920 × 1080
#6366F1 -> #EC4899 · 135°

CSS Gradient

Copy-paste ready for your styles

background: linear-gradient(135deg, #6366F1 0%, #EC4899 100%);

Gradient Background Generator

Build a background for a web section, slide or image asset. Copy CSS for a background that scales with a web element, or export an image at a fixed pixel size.

How to use this tool

  1. Pick the two endpoint colors and set an angle from 0° to 360°.
  2. Choose dimensions when you need an image export.
  3. Copy the gradient CSS or download PNG, JPG or WebP.

Example and expected result

Try #2563EB and #9333EA at 90° for a blue-to-purple background. Export at 1200 × 630 for a sharing-image starting point, or copy CSS to use the gradient in a responsive page.

FAQ

Does it support radial or multicolor gradients?

This tool provides a two-color linear gradient and a solid color option. It does not provide radial gradients or additional color stops.

When should I copy CSS instead of downloading?

Use CSS for a website background that follows the element size. Download an image for slides, image editors or platforms that require an uploaded file.

Does changing image size affect the copied CSS?

The gradient CSS describes its colors and angle, not a fixed image resolution. Set the element dimensions separately in your stylesheet.

How large can the downloaded image be?

Each side supports 1 to 10,000 pixels, subject to browser memory. Reduce dimensions if a large export fails.