CSS Background Pattern Generator

Generate seamless CSS background patterns made only from gradients. Choose dots, grid, lines, diagonal stripes, checkerboard, zigzag or cross, set the two colors, tile size, line thickness and stripe angle, and copy a few lines of CSS that tile perfectly with no image files. It's free, runs in your browser, and nothing leaves your device.

Pattern building blocks

PatternGradient used
Dotsradial-gradient
Grid, lines, crosslinear-gradient
Stripesrepeating-linear-gradient
Checkerboardconic-gradient
Zigzagfour angled linear-gradients

When to use it

  1. Add a subtle dot grid behind a landing-page hero.
  2. Make graph-paper or notebook-line backgrounds.
  3. Fill an empty state or placeholder with a light pattern.
  4. Create warning stripes for a beta or maintenance banner.

How to Use

  1. Pick a pattern.
  2. Set the tile size, thickness and angle.
  3. Choose the pattern and background colors.
  4. Copy the CSS.

Features

  1. Seven gradient patterns
  2. Seamless tiling
  3. No images or requests
  4. Two-color control
  5. Live preview
  6. 100% client-side

FAQs

Why use CSS patterns instead of an image?

They load instantly with no extra request, stay crisp on high-resolution screens, and change color by editing the CSS.

How do I stop seams between tiles?

Keep background-size equal to the gradient's repeat distance. The generated CSS always does this.

Can I layer a pattern over a gradient or image?

Yes. Add more layers to background-image, separated by commas; the first one is on top.

Do these work in all browsers?

Yes. The checkerboard uses conic-gradient, which every current browser supports.

Is anything uploaded?

No. The CSS is generated in your browser.

Technical Details

Every pattern is built from CSS gradients, so it costs no network request, stays sharp at any zoom level and can be recolored by editing two values. Dots are a radial-gradient with a hard edge at the dot radius; grids and lines are linear-gradients that are solid for the line thickness and transparent after; stripes use repeating-linear-gradient at any angle; the checkerboard uses a single conic-gradient with four 25% quadrants; the zigzag layers four angled linear-gradients offset by half a tile. The rule that makes patterns seamless is that background-size must equal the gradient's period, so one tile ends exactly where the next begins — the generator always writes them together. A solid background-color sits underneath so the pattern still has a base if gradients are disabled.

Web & CSS Tools

Web & CSS Tools

  • CSS Scrollbar Generator
  • CSS Triangle Generator
  • CSS Text Glitch Generator
  • React Native Shadow Generator
  • CSS Specificity Calculator
  • CSS Color & Property Extractor
  • Responsive Breakpoint Cheatsheet
  • Google Fonts Pair Finder