SVG Pattern Generator
Generate CSS SVG background patterns: dots, stripes, grid, cross-hatch. Copy ready-to-use CSS.
#94a3b8
#f8fafc
20px
1px
background-color: #f8fafc;
background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'20'%20height%3D'20'%3E%3Crect%20width%3D'20'%20height%3D'20'%20fill%3D'%23f8fafc'%2F%3E%3Ccircle%20cx%3D'10'%20cy%3D'10'%20r%3D'3.3333333333333335'%20fill%3D'%2394a3b8'%2F%3E%3C%2Fsvg%3E");
background-size: 20px 20px;SVG Pattern Generator
Generate repeating SVG background patterns for use in CSS. Choose from dots, horizontal, vertical, or diagonal stripes, a grid, or a cross-hatch pattern. Adjust the tile size and stroke width with sliders and pick foreground and background colors. The generated CSS uses an inline data URI so no external image files are needed.
Private & free — this tool runs entirely in your browser.
Recommended: Kinsta — Fast managed hosting — up to $500 + 10% recurring.affiliate
Related Design & CSS tools
Color Converter
Convert a color to HEX, RGB, HSL, HSB, and CMYK at once.
HEX to RGB
Convert HEX color codes to RGB / RGBA values.
RGB to HEX
Convert RGB values into HEX color codes.
CSS Box Shadow Generator
Visually design CSS box-shadow with a live preview and code.
CSS Border Radius Generator
Visually craft border-radius with a live preview.
HEX to CMYK
Convert HEX colors to CMYK print values.
CMYK to HEX
Convert CMYK print values to HEX colors.
HEX to HSB
Convert HEX colors to HSB / HSV values.