Color · Made a little simpler

SVG Pattern Generator

Choose an SVG motif and set the tile width, gap, offset, mark size and colors. Export the SVG document or pattern definition, a CSS background, or a PNG at the selected size.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device

Vector tile preview

Editable SVG pattern preview

240 × 160 px drawing. Tile repeats every 40 px on both axes before rotation.

The foreground is drawn from editable SVG shapes. The checkerboard in this preview reveals transparent space.

Motif and colors
Tile geometry
Drawing dimensions

Vector pattern export

#7D9065rgb(125, 144, 101)

Preview composited on white. HEX stores alpha in 8 bits; decimal alpha is retained in RGB and HSL.

HEX#7D9065
RGBrgb(125, 144, 101)
HSLhsl(86.512 17.551% 48.039%)
RGB percentrgb(49.02% 56.471% 39.608%)
Normalized RGBA0.4902, 0.5647, 0.3961, 1
CSS variable--color: #7D9065;

Color names use standard CSS keywords, such as red or rebeccapurple.

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

SVG Pattern Generator: how to use it

  1. Choose a motif or load a preset. Set foreground and background colors or turn on a transparent background.
  2. Adjust tile size, gap, offset, rotation and drawing dimensions. Check a few repeated marks in the preview.
  3. Choose an SVG document, CSS background or reusable pattern definition, or download a PNG.

Limits and notes

Drawing dimensions range from 64 to 2,048 px per side. Tiles range from 12 to 240 px before any gap. Colors are sRGB, with alpha support. Image and CSS generation run locally.

How your privacy works →

SVG Pattern Generator: common questions

What stays editable in the SVG?

The document includes the native pattern definition, its geometry and a rectangle that uses it as a fill. Open the SVG in a vector editor or change its shape attributes.

How do the tile side and tile gap combine?

They add to give the repeat distance before rotation. A 32 px tile with an 8 px gap repeats every 40 px along each local axis.

Does the CSS background need a separate SVG file?

The CSS embeds the pattern as a data URI. Its coordinate system fills the destination box and repeats the vector motif inside it.

Guides