Gradient to Image Converter
Paste a CSS linear, radial, conic or repeating gradient. Set dimensions and save a transparent PNG or an opaque JPEG.
Check CSS Gradient Pixels in a PNG
Gradient preview
960 × 540 px · PNG
Gradient to Image Converter: how to use it
- Paste one CSS gradient value or choose a sample. A single background or background-image declaration also works.
- Set width, height and output format. For JPEG, choose the background color and quality.
- 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.