99+ Free Tools
← Back ✕ Close

CSS Grid Generator

Build a responsive grid layout and copy the CSS. Nothing is uploaded or stored.

A website layout wireframe on paper
Only grid layout is generated; the tool does not write the page content.

Layout

Named grid areas (optional)

Each row must have the same number of names as columns, and each named area must form a rectangle.

Set the columns, rows and gap.

Preview

CSS

Set the layout to see the CSS.
How the CSS grid generator works

Breakpoints. The CSS includes two media queries: at 768 px the grid drops to 2 columns, and at 480 px it becomes 1 column. The preview buttons show the same widths.

Auto-fit. repeat(auto-fit, minmax(200px, 1fr)) lets the browser fit as many columns as the width allows.

Local only. All work happens in your browser. Nothing is uploaded, stored or shared.