CSS Grid Generator

Build responsive CSS Grid layouts visually with copy-ready code. Define rows, columns, and gaps. Free online tool, no signup.

Preparing private browser tool…

Your file will stay on this device.

Frequently asked questions

What does 1fr mean?
fr is a fractional unit representing a share of available free space. 1fr 1fr creates two equal columns.
Responsive without media queries?
Use repeat(auto-fit, minmax(200px, 1fr)) to fit as many 200px columns as possible.
gap vs grid-gap?
gap is the modern shorthand and works in both Grid and Flexbox. grid-gap is deprecated.
Which column presets are offered?
Two, three, four, and six equal columns, 1fr 2fr 1fr, 200px 1fr, and repeat(auto-fit, minmax(200px, 1fr)) for a responsive layout without media queries.
Can I type my own track list?
Yes. The columns and rows fields accept any valid track list, so repeat(), minmax(), percentages, and named sizes all work and show up in the preview immediately.