← All Tools

SVG Pattern Builder🔒 100% local

Create seamless SVG patterns (dots, lines, grids, crosses) for backgrounds and designs.

Pattern Type
Element Size
Spacing
Stroke Width
Color
Background

Related Tools

SVG Blob BuilderSVG CleanerGradient Generator

Builds a seamless tiling pattern as an SVG. Pick dots, diagonal lines, a grid or crosses, then set the element size, the tile spacing, the stroke width, a foreground colour and a background colour. The tool emits a pattern definition plus a rectangle painted with it, and previews the result beside the source.

How to use it

  1. Choose the pattern type from the dropdown.
  2. Set Element Size, Spacing, Stroke Width and the two colours.
  3. Press Generate Pattern to fill the preview and the source box.
  4. Copy the SVG and paste it into your page, scaling the width and height on the consuming element if you need more than one tile.

Worked example

dots, size 20, spacing 40, stroke 1, colour #CC2B22becomes<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"> <rect width="100%" height="100%" fill="none"/> <pattern id="pattern" x="0" y="0" width="40" height="40" patternUnits="userSpaceOnUse"> <circle cx="20" cy="20" r="10" fill="#CC2B22"/> </pattern> <rect width="100%" height="100%" fill="url(#pattern)"/> </svg>

The transparent background becomes fill="none"; the tool's colour field cannot express the word transparent, so this is the state the page opens in.

crosses, spacing 40, stroke 3, colour #000000becomes<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"> <rect width="100%" height="100%" fill="none"/> <pattern id="pattern" x="0" y="0" width="40" height="40" patternUnits="userSpaceOnUse"> <line x1="20" y1="0" x2="20" y2="40" stroke="#000000" stroke-width="3"/> <line x1="0" y1="20" x2="40" y2="20" stroke="#000000" stroke-width="3"/> </pattern> <rect width="100%" height="100%" fill="url(#pattern)"/> </svg>

The source indentation inside the pattern block is carried straight into the output, and stroke-width only appears on this shape.

When to use it

What it does not do