CSS Background Pattern Generator
Build pure-CSS background patterns from twelve styles and copy the code. Patterns that CSS gradients express exactly are output as gradients; the rest come with an SVG data URI fallback that tiles perfectly.
Preview
24×24px tile
Even bands at any angle — the workhorse.
Full width
Card
Button
Pattern
Colours
Geometry
Presets
CSS
background-color: #FFFFFF; background-image: repeating-linear-gradient(45deg, rgba(79, 70, 229, 0.9) 0 8px, #FFFFFF 8px 24px); background-size: 24px 24px;
Which output do I get?
- css — stripes, checks, dots, circles, diagonals and crosshatch come out as layered
linear-gradient/radial-gradientvalues. They are crisp at any size and cost nothing to download. - svg — zigzag, triangles, hexagons, waves, bricks and diamonds are emitted as a compact inline SVG data URI, because gradients cannot describe those shapes exactly.
- The background colour is always set separately, so a pattern can sit on any tint.
About this tool
This CSS background pattern generator builds repeating backgrounds without a single image file. Twelve styles are available — stripes at any angle, gingham checks, polka dots, concentric rings, zigzags, diagonal hairlines, crosshatch, triangles, hexagons, scalloped waves, running-bond brick and harlequin diamonds — each with control over the two colours, the pattern opacity, the tile size, the line thickness and the angle.
Where CSS gradients can describe the pattern exactly they are used, which keeps the output tiny and infinitely crisp. The remaining shapes are emitted as a compact SVG tile in a data URI that repeats seamlessly, and the preview can be switched between the two so you can see they match. Patterns are shown at three element sizes so you can judge how the tile reads on a card or a button as well as a full-width section. Everything is generated in your browser and nothing is uploaded.
- 100% free — no account needed
- Runs in your browser
- Nothing is uploaded
Frequently asked questions
Is CSS Pattern Generator really free?
Yes. CSS Pattern Generator is completely free on PureBrowser — every feature, with no account, no trial, and no credit card.
Does CSS Pattern Generator upload my data?
No. CSS Pattern Generator runs entirely inside your browser, so anything you type, paste, or open stays on your own device.
Do I need to sign up or install anything?
Neither. There is no account and nothing to download — open the page and CSS Pattern Generator is ready to use on desktop or mobile.
Does CSS Pattern Generator work offline?
Once the page has loaded, yes. All of the processing happens locally in your browser, so it keeps working without a connection.
More design & visual
CSS Gradient Generator
Create linear CSS gradients with a live preview.
CSS Box Shadow Generator
Build and preview CSS box-shadow values with one-click copy.
CSS Glassmorphism Generator
Generate frosted-glass CSS with backdrop blur and copy-ready styles.
QR Code Generator
Generate custom QR codes for any text or URL.
WiFi QR Code Generator
Generate a scannable QR code to share WiFi credentials instantly.
Letter Profile Picture
Generate avatar images from initials with custom colors.