About the CSS Background Pattern Generator
Patterned backgrounds don’t need image files. Modern CSS gradients — linear, radial, conic and their repeating versions — can draw stripes, dots, checks and even isometric cubes in a few lines that weigh almost nothing, scale perfectly on retina screens and recolour instantly.
Pick one of twelve patterns, set the size, angle and two colours, and copy the CSS. Each pattern is built from standard properties (background-image, background-size, background-position) that work in every modern browser.
How to use the CSS Background Pattern Generator
- Choose a pattern.
- Adjust size, angle and colours in the live preview.
- Copy or download the CSS.
Features
- Twelve patterns
- Zero image requests
- Live preview
- Retina-sharp at any size
- Copy-ready CSS
Supported formats
- CSS
Frequently asked questions
Are CSS patterns slow?
No — gradients are drawn by the GPU. Very complex layered patterns on huge areas can cost a little on old phones, so keep sizes moderate.
Is my text sent anywhere?
No. Everything runs in your browser, so nothing you paste is uploaded or stored.
Added · Last reviewed · Maintained by Sohail Khax · How we test tools