CSS Grid Generator
Paint named grid areas visually and copy clean grid-template CSS.
See how it works
Watch a quick simulation of this tool in action — no file needed.
How to use CSS Grid Generator
Follow these steps — everything happens instantly in your browser.
- 1
Step 1. Set the number of columns and rows with the sliders.
- 2
Step 2. Adjust the gap and pick a column unit (1fr, auto, minmax, fixed px).
- 3
Step 3. Select an area name from the palette, then click cells to paint it.
- 4
Step 4. Click a painted cell again to clear it; click Clear to wipe the grid.
- 5
Step 5. Copy the generated grid-template CSS — areas are validated for rectangles.
Why use this tool
Frequently asked questions
Everything you might want to know about css grid generator.
Flexbox Playground
Tune flex-direction, justify, align, wrap & gap — copy container CSS live.
Media Query Generator
Scaffold @media blocks for mobile, tablet & desktop with one click.
Clamp Calculator
Build fluid font sizes with clamp() and preview them across viewport widths.
Box Shadow Generator
Tune x/y/blur/spread/opacity + color and copy clean CSS instantly.