SVG Background Generator
Generate organic blobs, mesh gradients and wave backgrounds as copy-ready SVG.
Generate organic blobs, soft mesh gradients and layered wave backgrounds, then copy the SVG, copy it as a CSS background, or download the file — all in your browser. Free. No sign-up. Runs in your browser, nothing is uploaded.
Base color
Pick a style, pick a base color, and copy a background that is ready to paste: an organic blob for behind a headline, a mesh gradient for a whole section, or layered waves for the edge between two sections. Every export comes three ways: SVG markup, a CSS background, or a .svg file. The colors are derived from your one base color, so the three styles match each other and your brand.
Which style for which spot on the page
| Style | Typical place | Controls | Export size |
|---|---|---|---|
| Blob | Behind a hero image, avatar or illustration; peeking out of a card corner | Complexity 3 to 12 points, randomness 5 to 90, optional soft background | About 0.2 to 0.6 KB |
| Mesh gradient | Full-width hero or a whole landing-page section | 3 to 5 color stops | About 0.9 to 1.4 KB as SVG, 0.3 to 0.4 KB as CSS |
| Waves | Divider between two colored sections, top of a footer | 1 to 5 layers, height 15 to 100 | About 0.3 to 1.1 KB |
Sizes are uncompressed and measured on real exports; your server's gzip or Brotli compression makes them smaller still. A PNG of the same background at full-screen resolution is usually many times larger, and it blurs when stretched.
What the sliders actually do
- Complexity is the number of points placed around a circle before the outline is smoothed. Three or four points give a calm pebble; ten or more give a wobbly, lively shape.
- Randomness sets how far each point may move away from the circle, up to about half the radius. At 5 the blob is nearly round; at 90 it becomes dramatically lopsided.
- Color stops in the mesh are soft radial spots spread across the frame, each in a hue rotated away from your base color, laid over a darker version of that color.
- Layers in the waves stack from darker at the back to lighter at the front, around the lightness of your base color. Height controls how tall the crests are; low values give a gentle edge.
Use Regenerate for a new shape with the same settings, and Random color for a new base hue.
Three ways to put it on the page
Inline SVG gives you the most control. Paste the markup into your HTML or a component, and you can style or animate it with CSS and save a network request.
The CSS export works on any existing element. Blobs and waves come back as a background-image with the SVG encoded into a data URI. Mesh gradients come back as native CSS radial-gradient layers, which is shorter than the SVG and easy to edit by hand. For a plain two- or three-color gradient without shapes, the CSS gradient generator is more direct.
The .svg file is best when the same background is used on several pages, because the browser caches it once. Reference it like any image:
.hero {
background: #f5f3ff url("blob-background.svg") right center / contain no-repeat;
}
.section-divider {
height: 120px;
background: url("waves-background.svg") center / 100% 100% no-repeat;
}
The first rule keeps the blob whole on the right side of the hero. The second stretches the waves across the full width at a fixed height, which works because the waves SVG has no fixed proportions.
Details that save a round of fixes
- Data URIs are bigger than the file. Encoding an SVG for CSS escapes characters like
<and#, which makes it roughly 1.7 times larger. For one background that is irrelevant; for a dozen in one stylesheet, use the file instead. - The viewBox is 600 × 400. Blob and mesh exports scale proportionally from that 3:2 frame. In a tall mobile hero, a mesh gradient set to
covergets cropped at the sides, which is usually fine because it has no edges to lose. - Contrast with text. A mesh gradient changes color across its width, so text on top can be readable on one side and not on the other. Check the lightest and darkest areas behind your headline with the color contrast checker.
- Dark mode. Generate a second version from a darker base color rather than inverting the first; the derived colors stay in the same family.
- Hide decoration from screen readers. A background set in CSS is ignored by assistive technology automatically. An inline SVG is not, so add
aria-hidden="true"to thesvgelement when it is pure decoration, and give animgthat shows the file an emptyalt="". - Motion is optional, but cheap. Because an inline blob is a single path, a slow CSS rotation or scale on the
svgelement adds life without any extra download. Wrap it in aprefers-reduced-motionmedia query so people who turned animations off are not affected.
Cards that sit over the new background usually need a little lift to separate them from it; the CSS box-shadow generator handles that part.
Frequently asked questions
Related tools
All Color tools →- CSS Gradient GeneratorBuild linear and radial CSS gradients with two colour stops, an angle slider and a live preview — then copy the code.
- Color Palette GeneratorGenerate beautiful color palettes — press space, lock the ones you like, share the link.
- Color ConverterConvert any color between HEX, RGB and HSL instantly — pick, preview and copy in one place.
