Geometric pattern generator — grids of shapes in your palette

Set a grid of columns and rows, choose a shape family and a colour palette, and the tool fills every cell with a rotated shape to make a bold, Bauhaus-style SVG pattern.

Live demo · real result from this tool
Change the number for another variation. The same seed always gives the same result.

Press Generate to create a result.

Processed on your device — nothing is uploaded.

How to use the geometric pattern generator

  1. Choose Shapes: Mixed, Triangles, Circles, Quarter circles, Half circles, Lines or Squares.
  2. Set Columns and Rows (1–30 each) and the Cell size in pixels (10–200).
  3. Paste your colours into Palette (hex, comma-separated).
  4. Pick a Background colour that shows between and behind the shapes.
  5. Change Seed until the layout feels balanced, then download geometric-pattern.svg.

What it does and when to use it

Grids of simple shapes in a few strong colours are a popular look for posters, book covers, slide title pages, event banners and blog headers. Making one by hand means drawing and rotating dozens of shapes; this tool does the placement for you and lets you try many layouts quickly.

Unlike a repeating tile, every cell here is chosen on its own, so the pattern does not repeat. If you need a small tile that repeats seamlessly, use the SVG pattern generator instead. For loose, overlapping shapes rather than a strict grid, try the abstract background generator. To build a palette that suits your brand first, the colour palette generator can help.

How it works

The tool walks the grid row by row. For each cell it uses a seeded random number generator to choose:

  • the shape (only when Shapes is Mixed),
  • a rotation of 0°, 90°, 180° or 270° around the cell centre,
  • one colour from your palette.

The shapes are drawn inside each cell: a right triangle covering half the cell, a circle with a radius of 20–45% of the cell, a quarter circle filling one corner, a half circle on one edge, a centred square at 60% of the cell, or a thick diagonal line. Each cell becomes a <g> element moved into place with translate and rotate. The tool runs in your browser and uploads nothing.

Worked examples

Default grid. Mixed shapes, 8 columns, 5 rows, 60 px cells, seed 1. The file is viewBox="0 0 480 300" with a #fefae0 background rectangle and 40 shape groups.

Four circles. Circles, 2 × 2, cell 50. The first cell holds <circle cx="25" cy="25" r="13.3" fill="#2a9d8f"/>; the other three get different sizes and colours from the default palette.

Two-colour quarter circles. Quarter circles, 2 × 1, cell 40, palette #111827, #f59e0b. The first shape is <path d="M0,0 H40 A40,40 0 0 1 0,40Z" fill="#111827"/>, turned 270°, and the second is amber, turned 90°.

Limits and tips

  • Up to 30 × 30 cells (900 shapes). Big grids make larger files, so keep cells as large as the design allows.
  • Three to five colours with one dark and one light usually read more clearly than many similar shades.
  • Every shape stays inside its cell except the diagonal lines, whose square ends poke slightly past the cell corners.

Frequently asked questions

How big is the finished SVG?
Columns times cell size wide, and rows times cell size tall. The defaults, 8 × 5 cells of 60 px, give a 480 × 300 image. Because it is vector, you can scale it up without losing sharpness.
Can I mix only some shapes, for example circles and squares?
Not directly. Mixed picks from all six shape types; any other choice uses one type only. To combine two types, make two versions with the same grid and edit the SVG, or choose the single shape that is closest.
What happens if a palette colour is not a valid hex code?
It is skipped. If none of the entries is a valid hex code, the tool falls back to its default five-colour palette.
Will the same seed always give the same pattern?
Yes, as long as the shape type, grid size and palette stay the same. Changing the number of columns or rows shifts every later cell, so the whole layout changes.

Written by the ToolsRift team · Last updated

Pages are drafted with AI assistance and checked by automated tests. How we write and check pages.

Was this tool useful?

Report a problem

Start typing to search every tool.

↑ ↓ to moveEnter to openEsc to close