The preview follows the exported composition
The workspace shows the whole image at its chosen aspect ratio. Export renders the same stop colors, positions and geometry at full output dimensions, so a square or wide composition keeps its framing.

ONELESS / COLOR
Sometimes the next tool needs an image rather than a line of CSS. Gradient Generator creates a flat color background at the exact pixel dimensions you choose. Build a linear sweep or a centered circular glow, arrange the color stops and download the composition as an opaque PNG without uploading anything.
Open Gradient Generator. JavaScript powers the workspace; the full guide is available below.
UNDERSTAND THE RESULT
The workspace shows the whole image at its chosen aspect ratio. Export renders the same stop colors, positions and geometry at full output dimensions, so a square or wide composition keeps its framing.
Stops are sorted by percentage. Equal-position stops retain their insertion order and can create a hard transition. Linear angles follow the CSS convention: 0° upward and 90° toward the right.
Radial mode begins at the image center and ends at the farthest corner. On a wide rectangle, the circle extends beyond the short sides. The angle control does not apply in radial mode.
HOW TO USE IT
A WORKED EXAMPLE
Use #000000 at 0% and #FFFFFF at 100%, select Linear and set 90°. A 1200 × 628 PNG runs from black on the left toward white on the right. Canvas samples pixel centers, so boundary pixels may be a fraction inside the mathematical endpoints.
EVERYDAY USES
Use a landscape preset, then add the saved image to a slide or document. Check any text against the local background colors.
Choose the social or square preset and download the color layer for use in an image editor. This tool does not add logos, type or illustrations.
LOCAL WORKSPACE
The tool processes color values locally. It does not upload the input to a processing server or save it in browser storage. Leaving or reloading the page clears the working state. Copying places the selected result on your clipboard; sharing sends only the page address without your working values.
These tools describe sRGB colors. Browser decoding, color management and the display can affect what you see; they are not an ICC proofing workflow or a print-color guarantee. Read the site privacy policy for information about the surrounding website.
KEEP IT NEARBY
Press Ctrl + D on Windows or Command + D on Mac to bookmark this page. Your browser may also offer Create shortcut or Add to Home Screen. Shortcuts open the tool; they do not include your colors or images.

QUESTIONS, ANSWERED
This tool downloads a raster PNG with exact dimensions. CSS Gradient Generator provides editable CSS with alpha and stop controls for webpages.
This image tool accepts opaque HEX colors and produces an opaque PNG. Use the CSS tool when you need transparent stops or an overlay.
Check every active field: HEX color, 0–100% position, integer dimensions and the 8-megapixel bound. Invalid settings hide the result and disable download.
This release exports PNG. It does not create meshes, animations or additional file formats. PNG preserves the generated pixel values without lossy compression.
No. The output width and height settings determine the PNG pixel dimensions. The preview scales to the available screen space.
A linear gradient follows a direction; a radial gradient spreads outward from its center. Choose the shape based on the composition you need.
They place each color along the gradient’s progression. Moving stops changes how much space each transition occupies without changing the PNG dimensions.
REFERENCES
ANOTHER SMALL STEP
Shape a color atmosphere and save it as an image.
Return to Gradient Generator ↑