Pattern Generator
Tile stripes, dots, grids or checkers: set size, colors and angle, preview live, copy CSS or SVG.
Pattern
Tiled preview
Generated CSS and SVG
The angle slider only affects stripes. The CSS block uses gradients, while the SVG block uses a pattern element, so pick whichever fits the target: HTML elements take CSS, exports and editors take SVG.
How to use it
- Pick a type: stripes, dots, grid or checker. Each one tiles from a single small unit, so the pattern never breaks at screen edges.
- Set the tile size. That is the repeat unit: 24 px gives a fine texture, 60 px and up reads as a deliberate motif.
- For stripes, drag the angle to rotate the repeat unit. The slider disables itself for the other three types, which do not use it.
- Choose a foreground color for the motif and a background color for the gaps, then watch the preview tile.
- Copy the code. The CSS block applies straight to any HTML element; the SVG block wraps the same geometry in a
<pattern>element for exports and design tools.
Common use cases
- Section and card backdrops - a low-contrast dots pattern behind a pricing table or feature grid.
- Print and presentation slides - SVG patterns scale without pixelation, unlike a raster texture.
- Empty states and login screens - stripes at a shallow angle add texture without pulling focus.
- Wireframe decks - checker fills mark placeholder regions while staying visually quiet.
Why it stays private
Every value is turned into code inside the page and the preview is styled by the very CSS it generates. Nothing is uploaded and no pattern image is ever produced on a server.
FAQ
Q: Why is the angle slider disabled for dots and grid? A: Those patterns are built from axis-aligned tiles: a circle and two straight lines. Rotating them would need a wrapper transform, which the snippet avoids, so the slider only applies to the diagonal stripes.
Q: How do I make the pattern cover only part of a page?
A: Apply the CSS to a specific element instead of the body. The .pattern-area class in the snippet is there to be renamed to whatever your markup uses.
Q: Can I combine two patterns?
A: Yes. CSS supports multiple background layers, so paste a second background-image line and give each its own background-size. Keep the first layer semi-transparent if you want both to show.
Q: Which should I choose, CSS or SVG? A: Use the CSS block for anything rendered in a browser. Use the SVG block when the target is a design tool, a PDF or an image export, where CSS gradients do not travel well.
Your data stays on this device
Pattern Generator runs 100% locally. Everything you paste or drop is processed by your own browser and never transmitted. Nothing is stored on our servers — close the tab and it is gone.
Nothing you type is sent to a server, logged, or used for analytics. The page works even with your network disconnected after first load.