CSS Grid Generator
Lay out a CSS Grid without memorizing the syntax. Set the number of columns and rows, size each track however you like (1fr, auto, fixed pixels, minmax, whatever CSS takes), and choose the column and row gaps. The tool writes the grid-template-columns, grid-template-rows, and gap declarations for you, collapsing equal tracks into repeat() the way you'd write them by hand. A live preview shows the cells as you go, and presets cover common layouts like a sidebar, the holy-grail three-column page, and an even photo gallery.
Build a CSS Grid layout by hand. Set how many columns and rows you need, size each track (1fr, auto, 200px, anything CSS accepts), pick the gaps, then copy the rule. The preview updates live.
Column sizes
Row sizes
CSS
.grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(2, auto);
gap: 16px;
}Preview (6 cells)
1
2
3
4
5
6