OomTools

CSS Grid Layout Generator

Sketch a CSS Grid quickly: choose the number of columns and rows and the gap, see the cells laid out live, and copy the `display: grid` rule. It runs entirely in your browser.

  • 100% free
  • Private & safe
  • Runs in your browser
Read our complete guide: CSS Flexbox vs CSS Grid: Complete Cheatsheet & Code Examples

Why use CSS Grid Generator?

CSS Grid Generator is a quick, no-nonsense developer utility that runs entirely client-side, so your code and data never leave your machine.

  • Runs instantly in your browser — nothing to install, nothing uploaded.
  • Completely free, with no account, no watermarks and no usage limits.
  • Output: CSS for a grid container
  • Set the number of columns and rows.
  • Works on any device — desktop, tablet and phone — and is fully keyboard accessible.

How to use CSS Grid Generator

  1. Set the number of columns and rows.
  2. Choose the gap between cells.
  3. See the grid preview update live.
  4. Copy the grid container CSS.

Examples

  • A 3×2 card grid.
  • An even 4-column gallery.

Supported formats & limits

  • Output: CSS for a grid container

Limitations

  • Uses equal 1fr tracks; custom track sizes are edited by hand.

Frequently asked questions

Can I set custom column widths?

It generates equal 1fr tracks; edit grid-template-columns in the copied CSS for custom widths.

Is it responsive?

The output is a starting point; wrap it in media queries or auto-fit/minmax for responsiveness.

Uploaded?

No — generated locally in your browser.

Was this tool helpful?

From the blog