SVG pattern generator
Make lightweight, seamless background patterns for websites, slides and mockups. Choose dots, grid lines, stripes, diagonal lines, a checkerboard, zigzags, waves, triangles, crosses, hexagons, circles or diamonds, then set the tile size, line thickness, foreground and background colours, opacity and rotation. The preview fills a large area so you can see how the tile repeats. Copy a CSS background-image declaration with the SVG embedded as a URL-encoded data URI, which is smaller than base64, or download the tile as an .svg file.
How to use the SVG Pattern Generator
- 1
Choose a pattern
Twelve geometric patterns.
- 2
Style it
Size, stroke, colours, opacity, transparency and rotation.
- 3
Use it
Copy the CSS or download the SVG tile.
When to use it
- Add texture to a hero section or card.
- Make placeholder backgrounds for mockups.
- Create print-ready vector patterns.
Limits
- Rotated patterns are drawn as a larger tile, which makes the SVG bigger.
- Very small tiles with thin lines can shimmer on some screens.
Privacy
Generated in your browser.
Frequently asked questions
Why SVG instead of a PNG?
An SVG tile is usually a few hundred bytes, stays sharp on high-density screens and can be recoloured by editing two values.
How do I use the CSS?
Paste the background-image line into a rule for your element. Add background-size if you want to scale the tile.
Why is the data URI not base64?
URL-encoding only the special characters keeps SVG smaller than base64 and still works in every modern browser.
Can I make a transparent pattern?
Yes. Tick “Transparent background” and put the pattern over any colour or image.
Will it repeat without seams?
Yes. Each pattern is drawn so its edges line up when the tile repeats.
Related tools
- CSS Gradient GeneratorLinear, radial and conic CSS gradients with colour stops, live preview and copyable CSS.
- CSS Animation GeneratorPick an effect, tune the timing and copy clean @keyframes CSS.
- SVG OptimizerSafely shrink SVG files by removing editor data and rounding coordinates, with a side-by-side preview.
People also use
- JWT Generator & SignerCreate and sign JSON Web Tokens with HMAC, RSA or ECDSA keys, entirely in your browser.
- Base64 Encoder & DecoderEncode and decode Base64 and Base64url, text or files.
- URL Encoder & DecoderPercent-encode or decode URLs and see their query parameters.
- CSV to JSON ConverterConvert CSV ⇄ JSON with correct quoting, types and nested data.
Last updated November 24, 2026 · How we build and test our tools