CSS gradient generator
Create linear or radial gradients and download them as CSS, PNG or SVG for backgrounds and designs. Free, runs in your browser, no sign-up.
Tool guide
How to use CSS gradient generator
Create local linear or radial gradients with CSS, PNG and SVG downloads.
- The Live preview panel shows bounded quick information while you edit. Large input, full reports, random generation and exports still use the action button. Live updates do not spend runs, record tool outcomes or save your input. YAML/XML validation and rendered Markdown require Enable live validation/preview or a first explicit processing action.
- Enter the labelled values, choose the settings, then choose Create gradient.
- A 90° linear gradient from #FF0000 0% to #0000FF 100% runs left to right. Choose PNG or SVG for a downloadable image, or CSS for the background declaration.
- 2–12 opaque HEX stops with nondecreasing positions 0–100%. Standard: 2,048 px/side; Extended: 4,096 px/side. PNG preview is at most 640 px/side.
- Preview is browser sRGB canvas interpolation; browser CSS/SVG rendering can vary slightly. Radial uses a centered ellipse reaching the farthest corner. No external images, URLs or fonts.
- Review the complete result before copying or downloading. Editing invalidates old results. Cancel, Clear or leaving stops the worker and discards page-memory results. Inputs and results stay in page memory. Generate only when you choose the action; downloads are not saved to your account.
Common questions
Does the CSS fetch anything?
The generated declaration contains only validated color values and numeric positions. It contains no URLs, images, scripts or fonts.