Toffeekit
  • Home
  • All tools513
  • Recent
  • Favorites
Categories
  • Images51
  • Video21
  • PDF33
  • AI24
  • Data21
  • SEO12
  • Developer32
  • Text27
  • Design18
  • Files13
  • Utilities5
  • Productivity17
  • Finance26
  • Math39
  • Education19
  • Date & Time29
  • Converters43
  • Fun & Random24
  • SaaS13
  • Business17
  • Social11
  • Media5
  • Security13
Buy me a coffee
ToffeekitDesignCSS Grid Generator

CSS Grid Generator

Build a grid layout with named areas by dragging over cells. Runs entirely in your browser — nothing is uploaded.

Help
Runs locally Instant, no sign-up Works offline
Use cases

One click to the right settings

Holy grail layout

Header, footer, two sidebars and a main column.

Dashboard

Sidebar, top bar and a grid of panels.

Magazine page

A big feature story with smaller ones beside it.

How it works

How to use CSS Grid Generator

  1. 01Pick a layout such as Holy grail, Dashboard or Magazine, or set Columns and Rows yourself.
  2. 02Type track sizes like 1fr, 200px, auto or minmax(0, 1fr) under Track sizes, and set the gaps.
  3. 03Drag across empty cells in the preview to create an area, then click it to rename or delete it.
  4. 04Choose Named areas or Line numbers for Item CSS, then copy the CSS, HTML or Tailwind classes.
Questions

CSS Grid Generator FAQ

6 answers to what people ask most about the CSS Grid Generator.

What is grid-template-areas?

It lets you draw the layout as text: each quoted string is a row and each word names the area in that cell. Items join an area with grid-area.

What does the fr unit mean?

One fr is one share of the free space. Columns of 1fr 2fr split the leftover width into thirds, giving the second column two of them.

Why must grid areas be rectangles?

The CSS spec only allows rectangular areas. That is why this tool only lets you drag rectangles and blocks overlapping ones.

Why use minmax(0, 1fr) instead of 1fr?

A plain 1fr column won't shrink below its content's minimum width, so long words or wide images can push it wider. minmax(0, 1fr) lets it shrink evenly.

How do I make a responsive grid without media queries?

Use grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)). Columns are then added or removed as the container width changes.

Is CSS Grid Generator free and private?

Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so what you type or paste never leaves your device. It works on phones and computers alike.

Something not working? Tell us and we'll fix it.

Report an issue
More tools
Color Picker & Converter

Pick a color and convert HEX, RGB, HSL, OKLCH, CMYK.

Design
Gradient Generator

Build linear, radial and conic CSS gradients.

Design
Contrast Checker

Check WCAG contrast and find passing colors.

Design
Palette Generator

Make harmonious palettes from one base color.

Design
Something off with CSS Grid Generator? Report an issue or ask for a feature.Send feedback
© 2026 Toffeekit/Runs locally · No uploads · Free
AboutContactFeedbackPrivacyTermsCookiesSettingsllms.txt