CSS Grid Generator
Design ToolsVisual CSS grid builder with code to copy
.grid{background:#e0f2fe;border-radius:12px;padding:10px}.cell{min-height:44px;padding:10px;background:#0284c7;color:#fff;font:700 15px sans-serif;border-radius:8px;text-align:center}.cell:nth-child(5n){background:#0369a1}
.grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-auto-rows: auto;
gap: 12px;
}<div class="grid"> <div class="cell">1</div> <div class="cell">2</div> <div class="cell">3</div> <div class="cell">4</div> <div class="cell">5</div> <div class="cell">6</div> <div class="cell">7</div> <div class="cell">8</div> <div class="cell">9</div> </div>
The .cell styles in the preview are only for display — copy .grid for your layout.
Embed this tool on your websiteFree
- Choose how tall the frame should be.
- Press Copy code.
- Paste it into your page, blog, WordPress or Notion HTML block.
The tool runs inside your visitor's browser, nothing is uploaded, and a small "Powered by ToolCloak" line stays under it. The second line (script) is optional: it makes the frame fit the tool's height.
Similar tools you may like
History
All history →CSS Grid Generator — at a glance
Visual CSS grid builder with code to copy.
How to use it — step by step
Just your input — nothing to install or sign up for.
Set columns and rows
Choose columns, gap and alignment, or type your own template.
Check the preview
Items fill the grid as you change the settings.
Copy the code
Press Copy CSS (and Copy HTML) and paste into your project.
Pro tips
Small things that make the result better.
Quick facts
Frequently Asked Questions
Is my data safe?+
Yes. Everything runs inside your own browser. Your text, files and images are never uploaded to any server.
Is this tool really free?+
Yes — completely free, no signup, no watermark and no usage limit.

