What is a mesh gradient?
A mesh gradient blends several colours from different points so they flow into one another in every direction, unlike a linear gradient that runs in a straight line. It's the soft, glowing, colourful background behind many modern product launches, apps and wallpapers.
Choose a base colour, add up to six colour points, move each one with sliders and set how widely they blend. The preview shows numbered markers where each colour sits. Copy the result as pure CSS, or download it as a high-resolution PNG wallpaper.
How to use the Mesh gradient generator
1.Place the colours
Pick up to six colours and set where each one sits.
2.Blend
Adjust how far colours spread, or press Randomise for ideas.
3.Export
Copy the CSS, or download a PNG wallpaper.
Example: the default four-colour mesh
A dark navy base with four colours:
- Base
- #1b2340
- Colours
- blue top left, red top right, cyan bottom, purple bottom left
- Blend
- 55%
- Output
- 4 radial-gradient layers
A rich, glowing background that shifts from blue to red to cyan across the section.
Mesh gradients in plain CSS
CSS has no true mesh gradient, but stacking soft radial gradients, each fading from one colour to transparent at its own position, over a base colour gives the same flowing look. It weighs a few hundred bytes and stays sharp at any screen size.
Randomise keeps the colours in one hue family on a dark base of the same hue, which tends to look harmonious. The PNG wallpaper closely matches the CSS and comes in desktop, phone, square and 4K sizes.
Frequently asked questions
Does it work in every browser?
Yes. Layered radial gradients work in all current browsers.
Can I animate it?
Animating background-position or using a CSS @property for the positions can make the colours drift.
Why does the PNG look slightly different?
CSS gradients stretch into ellipses on wide areas, while the PNG uses circles, so edges can differ a little.
Can I share a gradient?
Yes. The colours and positions are in the page address.
Related tools
CSS Gradient Generator
Linear, radial and conic gradients with up to six stops.
Noise texture generator
Seamless grain and noise textures as PNG tiles or SVG CSS.
Blob generator
Random smooth organic shapes as SVG or CSS clip-path.
CSS Box-Shadow Generator
Layered, inset and soft shadows with a live preview.
CSS Border-Radius Generator
Rounded corners, linked or per-corner, in px or %.
CSS clamp() Generator for Fluid Sizes
Fluid font sizes and spacing that scale between two viewport widths.
More Developer tools
JSON & data
CSV tools
Network & system
Web & API
Git & releases
Encoding & security
- Base64 encode & decode
- URL encode & decode
- JWT decoder
- Hash generator
- HTML entity encoder
- Text to binary
- Morse code translator
- Caesar cipher & ROT13
- Random string generator
- Secret key generator
- 2FA code generator (TOTP)
- Encrypt & decrypt text
- Encrypt & decrypt files
- SSH key generator
- Base32 encoder and decoder
- Unicode escape converter
- Nano ID generator
- JWT generator
Text & code
- Regex tester
- Text diff checker
- Cron expression explainer
- Lorem ipsum generator
- Markdown previewer
- Slug generator
- Strip HTML tags
- Unicode character inspector
- URL parser
- Markdown TOC generator
- cURL converter
- Whitespace visualizer
- Markdown link extractor
- Regex escape
- Regex match extractor
- Split text by regex
- HTML, CSS and JS playground
- Mock data generator
- Keyboard event tester
- ASCII table