All Tools › Developer & Data › CSS Grid Visualizer

CSS Grid Visualizer

Visualize and build CSS Grid layouts. Adjust columns, rows, gap, and alignment live.

Click cells to toggle spanning (grid-column: span 2)

Design CSS Grid layouts visually

CSS Grid is powerful but abstract — it's hard to picture how grid-template-columns and row definitions will lay out until you see them. This visualizer lets you build a grid by adjusting columns, rows, and gaps, and shows the result live alongside the CSS it produces, so you can learn the properties by watching them take effect and copy the code when it looks right.

How to use it

  1. Set the number of columns and rows, and the gaps.
  2. Watch the grid update, and adjust until the layout matches your design.
  3. Copy the generated CSS into your stylesheet.

What you'll learn

Questions people ask

Grid or Flexbox? Grid suits two-dimensional layouts (rows and columns together); Flexbox suits arranging items along a single line.

Is anything uploaded? No — the preview and CSS are generated in your browser.