SVG Pattern Generator screenshot

SVG Pattern Generator

Generate a repeating SVG pattern — circle, square, triangle or wave — with tile size, two colours and rotation. Copy a complete SVG file.

Privacy First
0 Runs
Updated 2026-11-06
No upload
Instant
No signup

What the SVG pattern generator does

The output is a real SVG tile: a defs/pattern with your shape inside, and a rect that fills itself from that pattern, so the file repeats at any size without a sprite sheet. Circle, square and triangle centre their mark in the tile; wave repeats a quadratic curve so the stroke meets itself at both edges. Two colours keep the background and the mark separate, and the rotation turns the tile grid through up to 90 degrees. Rotation is also the honest limitation: the tiles rotate with the pattern rather than the canvas, so the pattern does not align with the outer edges and a diagonal seam can show at the border. Give each inlined copy its own pattern id.

How to use it

The SVG Pattern Generator page needs no pasted input: set Shape (default "circle"), Tile size (px), default "40", Background colour (default "#0f172a"), Shape colour (default "#38bdf8") and Rotation (degrees), default "0", then press Run to build a new SVG.

Worked example

Input:


Output:

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="240" height="240" role="img" aria-label="Geometric pattern">
  <defs>
    <pattern id="pattern-tile" width="40" height="40" patternUnits="userSpaceOnUse" patternTransform="rotate(0)">
      <rect width="40" height="40" fill="#0f172a"/>
      <circle cx="20" cy="20" r="10" fill="#38bdf8"/>
    </pattern>
  </defs>
  <rect width="240" height="240" fill="url(#pattern-tile)"/>
</svg>

Why it runs in your browser

The result is produced on this page with JavaScript, so it works offline after the page loads and nothing you enter is sent anywhere.

The output is a real SVG tile: a defs/pattern with your shape inside, and a rect that fills itself from that pattern, so the file repeats at any size without a sprite sheet. Circle, square and triangle centre their mark in the tile; wave repeats a quadratic curve so the stroke meets itself at both edges. Two colours keep the background and the mark separate, and the rotation turns the tile grid through up to 90 degrees. Rotation is also the honest limitation: the tiles rotate with the pattern rather than the canvas, so the pattern does not align with the outer edges and a diagonal seam can show at the border. Give each inlined copy its own pattern id.

Generate a repeating SVG pattern — circle, square, triangle or wave — with tile size, two colours and rotation. Copy a complete SVG file.

How to use it

The SVG Pattern Generator page needs no pasted input: set Shape (default "circle"), Tile size (px), default "40", Background colour (default "#0f172a"), Shape colour (default "#38bdf8") and Rotation (degrees), default "0", then press Run to build a new SVG.

Why it runs in your browser

The result is produced on this page with JavaScript, so it works offline after the page loads and nothing you enter is sent anywhere.

What to Expect

What this tool keeps

  • The result is produced on this page with JavaScript, so it works offline after the page loads and nothing you enter is sent anywhere.

Sample output

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="240" height="240" role="img" aria-label="Geometric pattern"> <defs> <pattern id="pattern-tile" width="40" height="40" patternUnits="userSpaceOnUse" patternTransform="rotate(0)"> <rect width="40" height="40" fill="#0f172a"/> <circle cx="20" cy="20" r="10" fill="#38bdf8"/> </pattern> </defs> <rect width="240" height="240" fill="url(#pattern-tile)"/> </svg>

Frequently asked questions

How do I use the svg pattern generator?

The SVG Pattern Generator page needs no pasted input: set Shape (default "circle"), Tile size (px), default "40", Background colour (default "#0f172a"), Shape colour (default "#38bdf8") and Rotation (degrees), default "0", then press Run to build a new SVG.

Is my input uploaded?

Nothing is uploaded. The result is produced on this page.

Is there a size limit?

No: nothing is pasted, so there is no input size to exceed.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.