SVG Pattern Generator
CSS background patterns, seamless
The pattern is one small tile that repeats seamlessly. The CSS embeds it, so there's no image file to host.
About the SVG Pattern Generator
Make a seamless background pattern for a website, slide, poster or app in seconds. Pick one of 15 patterns (dots, polka dots, grid, graph paper, stripes, checkerboard, crosses, zigzag, waves, triangles, hexagons, rings and diamonds), set the colours, size, line thickness and opacity, then copy ready-to-paste CSS. The pattern is a tiny SVG tile embedded right in the CSS, so there's no image to host and it stays sharp on every screen. You can also download it as an SVG or a PNG tile for Figma, Canva or PowerPoint.
- Choose a pattern.
- Set the colours, size, thickness and opacity, or press Random colours.
- Copy the CSS into your stylesheet, or download the SVG or PNG tile.
Using a pattern as a website background
Paste the CSS into the rule for the section you want to fill, for example .hero or body. Keep patterns behind text quiet: a small size, a thin line and an opacity of 10–25% in a colour close to the background. Save bold, high-contrast patterns for empty areas such as headers, dividers, cards and 404 pages.
Layering a pattern over a gradient or photo
Tick Transparent background, copy the background-image line and add your gradient after it, separated by a comma: background-image: url("data:image/svg+xml,…"), linear-gradient(135deg, #1e3a5f, #0b1320). The first layer is drawn on top. The same works with a photo: url("data:…"), url(photo.jpg), with background-size: auto, cover.
Patterns for print, slides and design apps
Download the SVG for vector apps like Figma, Illustrator and Inkscape, where you can scale it to any size without blurring. Download the PNG tile (rendered at four times the size) for Canva, PowerPoint, Google Slides or Word, and use the app's tile or repeat fill option.
Frequently asked
How do I use the CSS?
Paste both lines into the rule for the element you want to fill, for example body { … } or .hero { … }. The tile repeats automatically in both directions, so nothing else is needed.
Can I put the pattern over a photo or gradient?
Yes. Tick Transparent background, then list the pattern first and your image or gradient second: background-image: url("data:image/svg+xml,…"), linear-gradient(#1e3a5f, #0b1320);
Why use SVG patterns instead of an image?
A pattern tile is usually under 1 KB, needs no extra request, stays crisp on high-resolution screens and can be recoloured by changing one value. A PNG background of a whole page can be hundreds of KB.
How do I make the pattern subtle?
Lower the opacity to 10–20% and pick a pattern colour close to the background. Small dots or a light grid at low opacity make a calm texture behind text.
Can I use it in Tailwind CSS?
Yes. Use an arbitrary value: bg-[url("data:image/svg+xml,…")], or add it to your theme as a backgroundImage entry and use it like any other class.
Are the patterns free for commercial use?
Yes. You create the pattern yourself, so you can use it anywhere, including client work and products you sell, with no attribution needed.
Is what I type sent to a server?
No. The tool runs entirely in your browser and there's no server behind it, so what you type never leaves your device and nothing is stored. You can check: it keeps working if you go offline after the page has loaded.
More from the Design & Colour drawer
Other tools kept in this drawer, plus a few favourites from the bench.