Language
English English Vietnamese (Tiếng Việt) Vietnamese (Tiếng Việt) Chinese (简体中文) Chinese (简体中文) Portuguese (Brazil) (Português do Brasil) Portuguese (Brazil) (Português do Brasil) Spanish (Español) Spanish (Español) Indonesian (Bahasa Indonesia) Indonesian (Bahasa Indonesia)
Pattern Generator

Pattern Generator

Create seamless repeating patterns from 32 shapes with custom colors, scale, rotation, and spacing. Export as PNG, SVG, or CSS code.

What Is Pattern Generator?

Pattern Generator is an online tool that lets you create seamless repeating patterns from a library of 32 unique shapes and designs. Whether you need a subtle background for your website, a decorative wallpaper, or a textured print design, this tool gives you full control over every aspect of your pattern.

Choose from geometric shapes like dots, hexagons, and diamonds, organic forms like waves, leaves, and flowers, or abstract designs like confetti, herringbone, and spirals. Customize colors, scale, rotation, spacing, and opacity to create exactly the pattern you envision.

Who Is This For?

Web Developers

Generate CSS background patterns instantly with ready-to-use code snippets

Graphic Designers

Create seamless tiles for print and digital projects in multiple formats

Content Creators

Design unique backgrounds for presentations and social media content

Anyone Creative

Quick, customizable repeating patterns without design software

Your Data Stays Private

100% Client-Side Processing: All pattern generation happens directly in your browser using Canvas API. No uploads, no server processing, no tracking — complete privacy guaranteed.
  • No uploads — Everything is rendered locally using Canvas API
  • No tracking — We don't collect any usage data
  • No account required — Start creating immediately
  • No data transmission — Your patterns never leave your device

How to Use Pattern Generator

1

Choose a Pattern

Browse the pattern gallery on the left panel. Click any thumbnail to select it. The live preview on the right updates immediately to show the tiled result across the entire canvas.

2

Customize Colors

Set your background color and pattern color using the color pickers. For patterns that support dual colors (like Confetti, Fan, Herringbone), enable Color 2 with the checkbox.

You can also click any of the 10 preset palettes for quick color schemes including Indigo, Ocean, Forest, Sunset, Rose, Purple, Mono, Dark, Teal, and Amber.

3

Adjust Settings

Fine-tune your pattern with the adjustment sliders:

  • Scale — Change the size of each pattern element (10-100px)
  • Rotation — Rotate the pattern from 0° to 360°
  • Spacing — Add gap between pattern elements (0-40px)
  • Opacity — Control transparency (5-100%)
  • Stroke — Adjust line thickness for stroke-based patterns (1-8px)
4

Export Your Pattern

Choose your preferred export method based on your needs:

  • Download PNG — A raster tile image ready to use as a repeating background
  • Download SVG — A scalable vector tile for high-quality output
  • Copy CSS — Get ready-to-paste CSS code with the pattern embedded as a data URI

Select your desired tile size (100px to 800px) before exporting.

Pro Tip: Use the Randomize button to generate completely random pattern combinations. It's a great way to discover unexpected designs and find creative inspiration!

Features

32 Pattern Types

A diverse collection of patterns organized into four distinct categories:

Geometric

Clean, structured patterns perfect for modern designs

  • Dots, Lines, Grid
  • Chevron, Zigzag, Diamond
  • Hexagon, Triangle, Cross
  • Plus, Stars, Diagonal Stripes

Organic

Natural, flowing patterns inspired by nature

  • Waves, Circles, Scales
  • Leaves, Flower
  • Spiral

Abstract

Creative, artistic patterns for unique designs

  • Confetti, Crosshatch
  • Polka Dual, Herringbone
  • Brick, Fan

Decorative

Playful, themed patterns for special projects

  • Hearts, Arrows
  • Moon, Rings
  • Eye

Color Customization

Full control over pattern colors with background color, primary pattern color, and optional second color for dual-tone patterns.

Custom Colors

Pick any color using the color picker for unlimited combinations

10 Preset Palettes

Curated color schemes: Indigo, Ocean, Forest, Sunset, Rose, Purple, Mono, Dark, Teal, Amber

Dual-Tone Support

Enable second color for patterns like Confetti, Fan, and Herringbone

Real-Time Preview

Instant Feedback: Every change you make is immediately reflected in the tiled preview area. Adjust any slider or color and see the result in real-time — no waiting, no refresh needed.

Flexible Export Options

Export your pattern in multiple formats to suit different use cases:

Raster Format

PNG Export

  • Fixed resolution (100-800px)
  • Perfect for web backgrounds
  • Smaller file sizes
  • Universal compatibility
Vector Format

SVG Export

  • Infinite scalability
  • Ideal for print projects
  • No quality loss
  • Editable in design software
CSS Export: Get ready-to-paste CSS code with your pattern embedded as a data URI. No separate image files needed — just copy and paste into your stylesheet!

Randomize Function

Click the Randomize button to generate a completely random pattern with random type, colors, scale, rotation, spacing, and opacity. A great way to discover unexpected pattern combinations and find inspiration when you're not sure where to start.

Random Pattern

Selects any of the 32 available patterns

Random Colors

Generates harmonious color combinations

Random Settings

Applies varied scale, rotation, spacing, and opacity

Frequently Asked Questions

What does "seamless" mean?

A seamless pattern tiles perfectly in all directions without visible seams or gaps. When you repeat the pattern horizontally and vertically, the edges connect smoothly to create a continuous design. This is essential for backgrounds that need to cover large areas without showing repetition boundaries.

What is the difference between PNG and SVG export?

PNG is a raster format — the image has a fixed resolution based on the tile size you choose. It's perfect for web backgrounds and general digital use.

SVG is a vector format that can be scaled to any size without losing quality. For web backgrounds, PNG works well. For print or large-format designs where you need perfect clarity at any size, SVG is recommended.

How does the CSS export work?

The CSS export generates a background-image property with your pattern encoded as a data URI. You can paste this directly into your CSS file to use the pattern as a repeating background without needing a separate image file.

This approach reduces HTTP requests and keeps your pattern embedded in your stylesheet, making it easier to manage and deploy.

What is the tile size?

The tile size determines the dimensions of the exported image in pixels. A larger tile size includes more pattern repetitions and produces a larger file.

For most web use cases, 200x200 or 400x400 works well, providing a good balance between quality and file size. For high-resolution displays or print projects, consider using 600x600 or 800x800.

Can I use the patterns commercially?

Yes, absolutely. Patterns you create with this tool are generated entirely in your browser. You own the output and can use it for any purpose, including commercial projects, client work, products for sale, and more.

No attribution required, no licensing fees, no restrictions.

What does the Stroke slider do?

The Stroke slider controls the line thickness for patterns that use outlines instead of fills, such as Lines, Grid, Waves, Circles, Scales, and Arrows.

For filled patterns like Dots, Diamond, and Hexagon, the stroke setting has no visible effect since these patterns use solid shapes rather than outlines.

Pattern Type
Colors
Adjustments
30px
0px
100%
2px
Export
Click a pattern thumbnail to select, then adjust colors and sliders
Enable Color 2 for dual-color patterns like Confetti, Fan, and Herringbone
Use the Randomize button to discover interesting pattern combinations
Click CSS to copy ready-to-use background CSS code for your website
Adjust Rotation to create diagonal or angled variations of any pattern
All processing happens in your browser — no data uploaded
Want to learn more? Read documentation →
1/7
Can't find it? Build your own tool with AI
Start typing to search...
Searching...
No results found
Try searching with different keywords