01What is Gradient Mesh Generator?
Design apps call it a mesh gradient, but CSS has no mesh gradient type. What you can do is stack several radial gradients, each a soft blob of color that fades to transparent, over a solid background color. Done well, it looks like the flowing blurred backgrounds you see on many product sites, and it costs a few hundred bytes instead of a large image. This generator builds that stack. Each color point has four values: Color, X%, Y% and Size%. X and Y go from 0 to 100 and place the center of the blob. Size goes from 20 to 100 and sets where the color has fully faded out. Every point becomes one layer written as radial-gradient(at X% Y%, color 0px, transparent Size%). That syntax comes from the CSS Images Module Level 3 spec, which defines radial gradients and their color stops. You can have between two and six points. Add Point creates a new one with a random color, a position between 10% and 89% on each axis, and a size between 40% and 69%. The trash icon on a card removes that point, but the tool stops you at two. Randomize throws everything away and makes four to six new points plus a random Background color. The Sunset Mesh, Ocean Breeze and Forest Canopy examples load four hand-picked points each and set the Background back to white. A small worked case. Two points, coral #ff6b6b at 0% 0% and teal #4ecdc4 at 100% 100%, both at size 50, over #1a1a2e. The output is a background-color line and a background-image list with two radial-gradient layers. The dark navy shows through in the opposite corners, where neither blob reaches. The order of layers matters. In CSS the first background image is painted on top, so Point 1 sits above Point 2 wherever they overlap. Some limits to keep in mind. You can't drag points on the preview. You type numbers or use the spinners instead. There is no blur or noise option, so banding on wide gradients is up to you to fix. The CSS is built right in your browser tab, and nothing you pick is uploaded.
Front-end developers and indie makers who want a colorful landing page background as plain CSS instead of an exported image. The tool runs entirely in your browser, so your data never leaves your device.
02How to use Gradient Mesh Generator
- Load Sunset Mesh, Ocean Breeze or Forest Canopy from the examples, or click Randomize.
- In the Color Points list, change each point's Color, X%, Y% and Size%.
- Use Add Point (up to 6) or the trash icon on a card (down to 2) to change how many blobs there are.
- Pick the Background color that shows where no point reaches.
- Click Copy CSS and paste the two declarations into your selector.
03Worked examples
- Input:
Background #1a1a2e; points #ff6b6b at 0% 0% size 50 and #4ecdc4 at 100% 100% size 50 - Result:
background-color: #1a1a2e; background-image: radial-gradient(at 0% 0%, #ff6b6b 0px, transparent 50%), radial-gradient(at 100% 100%, #4ecdc4 0px, transparent 50%); - Each point becomes one layer. The navy background shows in the two corners neither blob reaches.
- Input:
Sunset Mesh example, Background left at #ffffff - Result:
background-color: #ffffff; background-image: radial-gradient(at 20% 20%, #ff6b35 0px, transparent 60%), radial-gradient(at 80% 10%, #f7c59f 0px, transparent 50%), radial-gradient(at 30% 80%, #d63384 0px, transparent 55%), radial-gradient(at 75% 70%, #6f42c1 0px, transparent 65%); - Four warm points. The white base keeps the gaps light.
- Input:
Ocean Breeze example, Background left at #ffffff - Result:
background-color: #ffffff; background-image: radial-gradient(at 10% 30%, #0077b6 0px, transparent 70%), radial-gradient(at 70% 20%, #00b4d8 0px, transparent 55%), radial-gradient(at 40% 70%, #90e0ef 0px, transparent 60%), radial-gradient(at 85% 80%, #023e8a 0px, transparent 50%); - The 70% size on Point 1 lets the deep blue cover most of the left side.
- Input:
Forest Canopy example, Background changed to #081c15 - Result:
background-color: #081c15; background-image: radial-gradient(at 15% 25%, #2d6a4f 0px, transparent 65%), radial-gradient(at 75% 15%, #52b788 0px, transparent 55%), radial-gradient(at 25% 75%, #95d5b2 0px, transparent 50%), radial-gradient(at 80% 80%, #1b4332 0px, transparent 60%); - Same points as the preset. A dark green base makes the gaps blend in instead of showing white.
- Input:
Sunset Mesh, then Point 4 Size% changed from 65 to 30 - Result:
radial-gradient(at 75% 70%, #6f42c1 0px, transparent 30%) - Only the changed layer is shown. The purple blob now fades out much closer to its center.
04Common use cases
- Making a soft hero background for a landing page without exporting a PNG
- Giving a pricing section or feature card a branded color wash that scales to any size
- Generating a quick backdrop to test a glassmorphism card against
- Swapping a heavy background image for a few lines of CSS to cut page weight
- Exploring color combinations with Randomize before settling on brand colors
- Creating blurred-blob wallpapers for slides or social images by screenshotting the preview
05Tips
- Point 1 is painted on top. If one color swallows the others, lower its Size% or move it later in the list by editing the copied CSS.
- Set Background before loading an example, because examples keep whatever background is already there.
- Put points near the corners with large sizes for a calm wash, and points near the middle for a bright focal spot.
- On large screens, overlay a faint noise image if you see color banding in the fades.
- Check text contrast against the brightest blob that sits behind your copy, not the average color.
06Related concepts
Mesh gradient, radial-gradient, CSS background layers, Color stops, Glassmorphism.
Frequently Asked Questions
What is Gradient Mesh Generator?
Gradient Mesh Generator is a free, browser-based developer tool on AIDToolStack. Generate CSS mesh gradient backgrounds It requires no installation or sign-up and works entirely in your browser.
Is Gradient Mesh Generator free to use?
Yes. No sign-up, no fees and no usage cap.
Does Gradient Mesh Generator store my data?
No. It runs in your browser; nothing is uploaded.