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
What is CSS Grid Generator?+
Create a CSS Grid layout: set columns, rows, gap and alignment, preview it live and copy ready-to-use CSS and HTML. Use equal columns or your own template like 1fr 2fr 1fr.
How do I use CSS Grid Generator?+
Open CSS Grid Generator on this page, then: 1. Set columns and rows 2. Check the preview 3. Copy the code. Everything runs in your browser on a phone or computer.
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.
Also searched as: css grid generator · css grid builder · grid layout generator · css grid generator free online · css grid generator tool

