Generate seamless CSS background patterns made only from gradients. Choose dots, grid, lines, diagonal stripes, checkerboard, zigzag or cross, set the two colors, tile size, line thickness and stripe angle, and copy a few lines of CSS that tile perfectly with no image files. It's free, runs in your browser, and nothing leaves your device.
| Pattern | Gradient used |
|---|---|
| Dots | radial-gradient |
| Grid, lines, cross | linear-gradient |
| Stripes | repeating-linear-gradient |
| Checkerboard | conic-gradient |
| Zigzag | four angled linear-gradients |
They load instantly with no extra request, stay crisp on high-resolution screens, and change color by editing the CSS.
Keep background-size equal to the gradient's repeat distance. The generated CSS always does this.
Yes. Add more layers to background-image, separated by commas; the first one is on top.
Yes. The checkerboard uses conic-gradient, which every current browser supports.
No. The CSS is generated in your browser.
Every pattern is built from CSS gradients, so it costs no network request, stays sharp at any zoom level and can be recolored by editing two values. Dots are a radial-gradient with a hard edge at the dot radius; grids and lines are linear-gradients that are solid for the line thickness and transparent after; stripes use repeating-linear-gradient at any angle; the checkerboard uses a single conic-gradient with four 25% quadrants; the zigzag layers four angled linear-gradients offset by half a tile. The rule that makes patterns seamless is that background-size must equal the gradient's period, so one tile ends exactly where the next begins — the generator always writes them together. A solid background-color sits underneath so the pattern still has a base if gradients are disabled.