Pattern Generator
Generate seamless geometric patterns.
The motif repeats every 40 px — drag the sliders and the tiling stays seamless.
background-color: #0B1120;
background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2240%22%20height%3D%2240%22%20viewBox%3D%220%200%2040%2040%22%3E%3Cdefs%3E%3Cpattern%20id%3D%22tj-pattern%22%20width%3D%2240%22%20height%3D%2240%22%20patternUnits%3D%22userSpaceOnUse%22%3E%3Crect%20width%3D%2240%22%20height%3D%2240%22%20fill%3D%22%230B1120%22%2F%3E%3Ccircle%20cx%3D%220%22%20cy%3D%220%22%20r%3D%228%22%20fill%3D%22%232DD4BF%22%2F%3E%3Ccircle%20cx%3D%2240%22%20cy%3D%220%22%20r%3D%228%22%20fill%3D%22%232DD4BF%22%2F%3E%3Ccircle%20cx%3D%220%22%20cy%3D%2240%22%20r%3D%228%22%20fill%3D%22%232DD4BF%22%2F%3E%3Ccircle%20cx%3D%2240%22%20cy%3D%2240%22%20r%3D%228%22%20fill%3D%22%232DD4BF%22%2F%3E%3Ccircle%20cx%3D%2220%22%20cy%3D%2220%22%20r%3D%228%22%20fill%3D%22%232DD4BF%22%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Crect%20width%3D%2240%22%20height%3D%2240%22%20fill%3D%22url(%23tj-pattern)%22%2F%3E%3C%2Fsvg%3E");
background-repeat: repeat;How to use Pattern Generator
What this tool does
This pattern generator builds seamless, repeating geometric textures that you
can drop straight into a website, a design file or a printed piece. Pick a
pattern family — dots, a grid, a checkerboard, triangles, stripes, chevrons or
hexagons — then adjust the tile size, motif scale, rotation and colours. The
preview area fills with the pattern tiled edge to edge, so you can see at a
glance that the repeat is genuinely seamless. When you are happy, export a
tileable SVG, a PNG image, or copy a ready-made CSS background snippet.
Every pattern is created as a single SVG tile with a <pattern> definition,
the same mechanism browsers and design software use for true repeating fills.
The page opens with a pleasant default pattern already on screen, so there is
nothing to set up before you start experimenting.
When you’d use it
Repeating patterns are everywhere once you start looking. Web designers use them as subtle section backgrounds, hero textures and card fills that add depth without distracting from the content. Presentation makers use them behind title slides or as divider pages. Hobbyists and crafters export tiles for scrapbook paper, gift wrap, fabric print and digital planners. Game developers use them as floor tiles, UI panels and parallax layers. Educators hand out patterned worksheets and use the rotation and scale controls to demonstrate symmetry and tessellation. Because the output is both a vector file and a CSS snippet, the same pattern can serve a print project and a web project without any re-export.
How to use it
- Choose a Pattern type from the menu — the preview updates immediately.
- Set the Tile size to control how large the repeating unit is; smaller tiles read as fine texture, larger tiles as bold motifs.
- Adjust Motif scale or Line thickness when the chosen pattern offers them, to make shapes fuller or lines heavier.
- Drag Rotation to tilt the whole pattern — diagonal stripes and chevrons often look more dynamic at 30 or 45 degrees.
- Pick a Motif colour and a Background colour with the swatches.
- Press Randomize for an instant new combination to spark ideas.
- Use Download SVG for a scalable file, Download PNG for a raster image, or Copy CSS to paste the pattern into a stylesheet.
Tips for great results
For a background that supports content rather than fighting it, keep the motif colour close to the background in lightness — low-contrast patterns feel like texture, while high-contrast ones become a feature in their own right. Small tile sizes give a refined, almost paper-like grain; large tiles make a statement. Rotation transforms a pattern completely: rotated stripes become diagonal lines, and a rotated grid becomes a diamond lattice. Hexagons and the grid pattern use the line-thickness control, so a thin stroke gives a delicate wireframe and a thick stroke a chunky, modern look. When building for the web, the CSS snippet is the lightest option because the pattern travels inside the stylesheet with no extra request. Pair this tool with the gradient generator to layer a pattern over a colour wash, and the colour palette generator to choose a motif and background that harmonise. For non-repeating artwork, the spirograph generator and the CSS doodle generator are good companions.
Privacy
This generator runs entirely in your browser. The SVG markup, the tiled preview, the PNG rasterisation and the CSS snippet are all produced by JavaScript on your own device. No pattern is uploaded, nothing is saved on a server, and there is no tracking of the designs you make. When you close the tab everything is discarded except the files or snippets you saved yourself, and once the page has loaded you can keep generating patterns offline.
Frequently asked questions
What does seamless or tileable mean?
Should I export SVG, PNG, or copy the CSS?
How do I use the copied CSS in my own page?
Is my pattern private when I use this generator?
Can I use these patterns commercially?
Related tools
CSS Doodle Generator
Generate decorative patterns made of pure CSS.
Spirograph Generator
Generate hypnotic spirograph patterns.
Noise Texture Generator
Generate subtle noise textures for backgrounds.
Gradient Generator
Build linear, radial, and conic CSS gradients.
SVG Icon Generator
Generate simple SVG icons from basic shapes.
Palette from Base Color
Generate a full palette from a single base color.