PatternBackground Generator

Choose a pattern, set its colours, size and strength, and see it repeat live. Copy it as CSS for your website, or download it as an SVG or a PNG for stories, slides and wallpapers.

  • Free forever
  • No sign-up
  • Runs in your browser

Pattern

24px
2px
35%

Preview

CSS

background-color: #f4f8fd;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg opacity='0.35'%3E%3Cpath d='M10 12a2 2 0 1 0 4 0a2 2 0 1 0 -4 0Z' fill='%232875c5'/%3E%3C/g%3E%3C/svg%3E");

SVG tile

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect width="24" height="24" fill="#f4f8fd"/><g opacity="0.35"><path d="M10 12a2 2 0 1 0 4 0a2 2 0 1 0 -4 0Z" fill="#2875c5"/></g></svg>

The CSS repeats one small SVG tile, so it costs almost nothing to load and stays sharp on every screen. The PNG and SVG are full-size backgrounds: 1920 × 1080 for desktops and slides, 1080 × 1920 for stories and 1080 × 1080 for posts.

How to use the Pattern Background Generator

  1. 1

    Start from a preset or pick a shape: dots, grid, stripes, diagonal, waves or checks.

  2. 2

    Set the pattern and background colours.

  3. 3

    Adjust the scale, thickness and opacity until it feels right.

  4. 4

    Copy the CSS or SVG, or download a PNG or SVG at the size you need.

How seamless patterns work

A seamless pattern is one small square, called a tile, repeated across and down. The tile is designed so its edges line up with the next one, so you can't see where one ends and the next begins. Scale here is the tile's size in pixels: small for a fine texture, large for a bold print.

Diagonal stripes and waves need a little care to join up. This tool draws the parts that cross the tile's edges on both sides, so lines run on without breaks.

Using the CSS on a website

The CSS sets a background colour and puts the tile in background-image as an SVG data URL. Paste it into any style rule. There's no image file to host, it's only a few hundred bytes, and it stays sharp on every screen because SVG is drawn as shapes, not pixels.

To change the scale later, change the tile's width and height, or add background-size, like background-size: 32px 32px. To fix the pattern while the page scrolls, add background-attachment: fixed.

Tips for patterns that don't distract

Patterns work well as a backdrop for link-in-bio pages, story backgrounds, slide decks and product photos, where a plain colour feels flat but a photo would compete.

  • Keep the opacity low, around 10% to 30%, behind text.
  • Use two colours close in lightness for a subtle texture.
  • Bigger tiles with thin lines feel calmer than small, busy ones.
  • Put text on a solid panel above the pattern when you need it to read easily.

PNG or SVG download?

Download the PNG for apps that don't take SVG, like Instagram, TikTok and most phone wallpapers. Pick 1080 × 1920 for stories, 1080 × 1080 for posts and 1920 × 1080 for desktops and slides. The SVG download is the same full-size background as shapes, which design apps like Figma and Canva can edit.

Frequently asked questions

How do I make a repeating pattern background in CSS?

Set background-image to a small image or SVG tile; it repeats by default. This tool writes the CSS with the SVG inlined as a data URL, so there's no file to upload.

Will an SVG background slow my site down?

No. A pattern tile is usually a few hundred bytes, far smaller than a photo, and it's inside the CSS so there's no extra request.

How do I make a polka dot background?

Choose Dots, set the dot size and the scale, which is the space between dots, and pick your colours. Copy the CSS or download a PNG.

Can I use the patterns for commercial work?

Yes. The patterns are simple shapes you make here, so you can use them anywhere, including products and client work.

Why does the pattern look blurry in my app?

Some apps shrink or compress images. Download the PNG at the exact size the app asks for, or use the SVG where it's supported.

Embed this tool on your site

Want the Pattern Background Generator on your own page? Copy the embed code and paste it where you want it to show up.

  • Free to use on your blog or site, with no account.
  • It sizes itself to fit and works on phones.
  • Keep the credit line so readers know where it's from.
your-site.com/blog

Free Pattern Background Generator by Hiyaly

Put it allon one link.