Home Developer Tools Bootstrap Grid Generator
Dev

Bootstrap Grid Generator

Visually build Bootstrap 5 grid layouts. Choose columns, gutters, breakpoints and copy the ready-to-use HTML instantly.

⚡ Live preview 📋 Copy CSS in one click 🚫 No login required ✅ Free forever

📖How to Use the Bootstrap Grid Generator

  1. 1
    Choose your layout

    Select the number of columns, gutter size and container type (fluid or fixed-width).

  2. 2
    Set breakpoints per column

    Assign column widths at xs, sm, md, lg and xl breakpoints using the selectors for each column.

  3. 3
    Copy the HTML

    Click Copy HTML to get the ready-to-paste Bootstrap 5 row and col markup.

CSS Tools in This Suite

ToolBest For
Bootstrap GridResponsive layouts
Border RadiusRounded corners
Box ShadowDepth & elevation
CSS VariablesDesign tokens
Flexbox1D layouts
Media QueryResponsive CSS

Frequently Asked Questions

What version of Bootstrap does this generator use?

The generator outputs Bootstrap 5 markup. It uses the standard .container, .row and .col-{breakpoint}-{size} class naming convention from Bootstrap 5.x.

What is the Bootstrap 12-column grid?

Bootstrap's grid divides each row into 12 equal units. A col-md-6 takes up 6 of those 12 units (50% width). You can mix and match columns as long as their sizes add up to 12 or less per row.

What is the difference between .container and .container-fluid?

.container has a fixed max-width at each breakpoint, centering your content with horizontal padding. .container-fluid stretches to 100% of the viewport width at all sizes.

What do xs, sm, md, lg and xl breakpoints mean?

These are Bootstrap's responsive breakpoints. xs applies from 0px up, sm from 576px, md from 768px, lg from 992px and xl from 1200px. Classes stack upward — a col-md-6 applies to md and all wider screens.

Can I nest rows inside columns?

Yes. Bootstrap supports nesting — you can place a .row inside a .col element, and the inner row will again have 12 columns relative to the outer column's width.

What is the gutter in Bootstrap's grid?

Gutters are the horizontal and vertical gaps between columns. Bootstrap 5 uses gx-* (horizontal) and gy-* (vertical) utility classes on the .row element to control gap size, from g-0 (no gap) to g-5 (large gap).

Do I need to include Bootstrap CSS for this to work?

Yes. The generated HTML uses Bootstrap class names which only work when Bootstrap's CSS is loaded in your project — either via CDN link or npm package.

What is col-auto?

col-auto makes a column as wide as its content, without consuming a set number of the 12 grid units. Useful for columns that should be just wide enough to fit their contents.

Can I use Bootstrap grid without Bootstrap JS?

Yes. The grid system is purely CSS-based. Bootstrap JS is only required for interactive components like modals, dropdowns and tooltips — not for the grid layout.

How do I make a full-width column on mobile but half-width on desktop?

Use col-12 col-md-6. This makes the column 12 units (full width) by default, switching to 6 units (half width) at the md breakpoint and above.