Skip to content
hateitall

Pattern Generator

Get a seamless background pattern you can drop into CSS as a tiny inline SVG, or save as an image.

Processed locallyIn: ColourOut: SVG, CSS, PNG, JPEG

Loading tool…

How to use pattern generator

  1. Choose one of fourteen patterns.

  2. Set the tile size, line or dot weight and opacity.

  3. Pick the pattern and background colours, or make the background transparent.

  4. Copy the CSS, download the tile SVG, or save a full PNG, JPEG or SVG at any size.

What this tool does

  • Tiles join without seams: shapes that cross an edge are drawn on both edges of the tile.
  • The CSS inlines the tile as an SVG data URL, so there is no extra file to host.
  • Exports a full size SVG that repeats the tile with a pattern element, or a PNG or JPEG up to 8192 pixels.
  • Supports a transparent background for overlays.

How the result is verified

Image exports are decoded again and their size checked before saving, and the preview uses the same data URL as the CSS.

Frequently asked questions

Is an SVG pattern better than a PNG?

For simple shapes, yes: the SVG tile is a few hundred bytes, stays sharp on any screen density and can be recoloured by editing the CSS. Use PNG when the target only accepts images, such as a slide or a social post.

How do I make the pattern subtle?

Lower the pattern opacity to around 10 to 20 percent and pick a pattern colour close to the background. Thin lines and small dots also read as texture rather than decoration.

Is my data uploaded to a server?

No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.

Grids, dots, stripes and checks made only of CSS gradients

Colour→ CSSLight on device

Seamless grain on a colour or as a transparent PNG overlay

Colour · Number→ PNGLight on device

Minify SVG, strip editor metadata, verified by pixel comparison

SVG · SVGZ→ SVGLight on device