CSS Pattern Generator

Make stripes, dots, grids, checkerboards and zig-zags with pure CSS backgrounds.

Enter your values

Result

CSS

background-color: #EEF2FF;
background-image: linear-gradient(90deg, #6366F1 50%, transparent 50%);
background-size: 24px 24px;

Every pattern is made from CSS gradients repeated with background-size, so it scales perfectly and needs no image file.

Live preview

How to use CSS Pattern Generator

  1. Enter pattern, pattern colour and background colour.
  2. The result updates instantly as you type, with no button to press.
  3. Read the formula box to see how it was calculated, then copy the result.

Features

Instant results
Results update as you type, with no Calculate button and no page reload.
Formula explained
See exactly how the answer is worked out, so you can check it or learn the method.
Private & free
Everything runs in your browser. Nothing you enter is uploaded or stored.

Frequently asked questions

How does the CSS Pattern Generator work?

It uses this method: Every pattern is made from CSS gradients repeated with background-size, so it scales perfectly and needs no image file.

Is this CSS Pattern Generator free?

Yes. It is 100% free, needs no sign-up and works on mobile and desktop. Your numbers never leave your device.

Free, no sign-up. Your files and numbers are processed in your browser and are not uploaded.

Related tools

View all

Share this Tool

Did CSS Pattern Generator work well for you?