BuildUtilities

CSS Grid Generator – Free Online Tool

Design CSS Grid layouts visually and export the code.

Runs in your browser. Nothing you type or paste is uploaded, saved, or sent to an AI.

8px
8px
1
2
3
4
5
6
7
8
9
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: auto auto auto;
column-gap: 8px;
row-gap: 8px;

Example

Input

3 columns (1fr 2fr 1fr), 2 rows, gap: 16px

Output

display: grid;
grid-template-columns: 1fr 2fr 1fr;
grid-template-rows: auto auto;
gap: 16px;

A 3-column grid with the middle column twice as wide, separated by 16px gaps.

How to Use CSS Grid Generator

  1. 1

    Define Grid

    Set the number of columns and rows with their sizes.

  2. 2

    Preview

    See the grid layout update visually.

  3. 3

    Copy CSS

    Copy the generated grid CSS.

Common Use Cases

  • ✦Building responsive page layouts
  • ✦Creating dashboard grid structures
  • ✦Designing photo gallery layouts

Also available as

More CSS Tools

Visual CSS generators with live preview and copy-paste output.

View all CSS tools
Tip Jar