CSS Grid Template Generator

Design named grid-template-areas visually.

Support
Works Offline
Privacy First
No Login
No API

Named areas

Type an area name in each cell

Preview

header
header
header
sidebar
content
content
footer
footer
footer

Generated CSS

CSS
.container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  grid-template-areas:
  "header header header"
  "sidebar content content"
  "footer footer footer";
  gap: 12px;
}

.header {
  grid-area: header;
}

.sidebar {
  grid-area: sidebar;
}

.content {
  grid-area: content;
}

.footer {
  grid-area: footer;
}

About the CSS Grid Template Generator

Build a CSS grid layout using named grid-template-areas. Set columns and rows, label each cell, and see a live color-coded preview alongside ready-to-copy CSS for the container and each named area.

Examples

Header/sidebar/content/footer

3x3 named areas

Output

grid-template-areas: "header header header" "sidebar content content" "footer footer footer";

Keyboard shortcuts

  • Copy the main outputCtrl / ⌘ + Shift + C
  • Download the resultCtrl / ⌘ + S
  • Share this toolCtrl / ⌘ + Shift + S
  • Reset the inputsAlt + R
  • Open the tool search paletteCtrl / ⌘ + K

Related tools

Frequently asked questions

Read more

Comments

No login needed. Comments appear after a quick review.

Protected by an on-site captcha — no third-party trackers.

Optional: get an alert when your comment is published or replied to, plus new tool announcements. No sign-up.

Loading comments…

Version 1.0.0 · Updated 2026-08-09 · Runs entirely in your browser