Build Bootstrap 5.3 flex layouts visually and copy the exact utility classes — d-flex, justify-content, align-items, order, grow and more.

Preview Click an item to edit it
Generated HTML

Everything runs in your browser — nothing is uploaded.

Classes you set apply from this breakpoint and up. Switch breakpoints to build responsive layouts.

Container
Items
0
Selected item

About Bootstrap Flex Playground

The Bootstrap Flex Playground lets you build flexbox layouts with real Bootstrap 5.3 utility classes instead of raw CSS. Configure the container — direction, wrapping, justify-content, align-items, gap — with segmented controls, click any item to set its own align-self, order, grow and shrink utilities, and watch the live preview rearrange instantly.

The breakpoint switcher is what makes it more than a toy: pick sm, md, lg, xl or xxl and the classes you set from that point gain the responsive infix — justify-content-md-between, flex-lg-row — exactly as Bootstrap’s mobile-first system applies them from that breakpoint and up. Add up to 12 items to simulate a realistic component.

When the layout looks right, copy the generated HTML or just the container classes and paste them straight into your project. Everything runs in your browser and nothing is uploaded.

How to use Bootstrap Flex Playground

  1. Set the container utilities — direction, wrap, justify-content, align-items and gap — with the segmented controls.
  2. Add or remove items (2 to 12) to match your real component.
  3. Click an item to give it its own align-self, order or flex sizing utilities.
  4. Switch breakpoints to add responsive variants that apply from sm, md, lg, xl or xxl upward.
  5. Check the live preview, then copy the generated HTML or the container classes.

Frequently asked questions

Bootstrap is mobile-first: a class set at a breakpoint applies from that width and up. Setting justify-content-between while md is selected produces justify-content-md-between, which kicks in at 768 px and stays active on larger screens.

This tool outputs Bootstrap 5.3 utility classes (d-flex, justify-content-center, order-2) ready for a Bootstrap project. The Flexbox Playground generates plain CSS properties instead — pick whichever matches your stack.

Yes. Click any item in the preview to select it, then set per-item utilities such as align-self, order, grow and shrink. The generated HTML shows each item with exactly the classes you assigned.

Between 2 and 12. That range covers everything from a simple two-column header to a full utility bar, and keeps the preview readable while you experiment.

Yes, it is free and runs entirely in your browser — no sign-up, and nothing you build is uploaded anywhere.


Popular searches
bootstrap flex playground bootstrap flexbox generator bootstrap 5 flex utilities d-flex class generator justify-content align-items bootstrap bootstrap flex classes builder responsive flexbox bootstrap tool
Need help?
Found an issue with this tool? Let our team know.
Report an issue

Add this free tool to your own website — copy and paste the code below.