Skip to content
Jellykit

CSS Grid Generator

Build a CSS grid layout visually: set columns, rows, track sizes and gap, or make responsive auto-fit columns with minmax(). Copy the CSS and HTML, free.

Runs in your browser. Nothing is uploaded.

About CSS Grid Generator

Set the number of columns and rows, the size of each track (1fr, 200px, minmax(0, 1fr) and so on) and the gap, and the preview fills with numbered items so you can see the layout.

Tick responsive columns to switch to repeat(auto-fit, minmax(..., 1fr)). Columns then wrap on their own as the screen narrows, with no media queries.

How to use CSS Grid Generator

  1. Open the tool above and add your file or text.
  2. Adjust the options to suit.
  3. Download or copy the result. Nothing is uploaded at any point.

Frequently asked questions

What is 1fr?

One fraction of the free space. Three 1fr columns share the width equally.

auto-fit or auto-fill?

auto-fit stretches the items to fill the row when there are few of them. auto-fill keeps empty column slots instead.

Is CSS Grid Generator free and private?

Yes. CSS Grid Generator is completely free with no sign-up. Everything runs in your browser, so whatever you type or paste never leaves your device.

See all design tools →