Color · Made a little simpler

Gradient to Image Converter

Paste a CSS linear, radial, conic or repeating gradient. Set dimensions and save a transparent PNG or an opaque JPEG.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device

Gradient preview

CSS gradient preview

960 × 540 px · PNG

Gradient
Image settings

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

Gradient to Image Converter: how to use it

  1. Paste one CSS gradient value or choose a sample. A single background or background-image declaration also works.
  2. Set width, height and output format. For JPEG, choose the background color and quality.
  3. Check the preview, select Create image, then save the resulting PNG or JPEG.

Limits and notes

Outputs from 1 to 4,096 pixels per side. Supports one self-contained gradient up to 4,000 characters, using colors and position syntax recognized by the browser. PNG retains alpha and JPEG uses an opaque background.

How your privacy works →

Gradient to Image Converter: common questions

Will a CSS stop written in pixels scale with the image?

The gradient renders at the chosen output dimensions. A stop at 20px keeps that pixel position along its gradient line. A percentage stop follows the line length.

Can I include a style sheet or CSS variables?

Paste the single gradient and replace custom properties or page-dependent functions with literal values. The image uses its own drawing area.

Which export keeps a transparent gradient?

Choose PNG to retain transparency. JPEG blends the gradient onto the selected background color.

How do I save a hard edge?

Give adjoining colors the same stop position, or use two positions per color. The preview shows where the transition occurs.

Guides