CSS Flexbox Generator

Runs locally in your browser

Build Flexbox layouts visually and copy CSS, HTML or Tailwind

Live Preview

Main axis →
Cross axis ↓

Main axis → · Cross axis ↓ · row / nowrap

Hatched area shows gap spacing: Row gap 12px · Column gap 12px

Source = position in HTML. order = CSS order, which changes visual placement only.

Runs locally in your browser. Layout settings may be saved in browser storage on this device.

CSS Flexbox Generator

Build Flexbox layouts visually and copy production-ready CSS, HTML or Tailwind classes.

How to Use

Pick a preset or adjust the container. Click or keyboard-select an item to edit flex-grow, flex-shrink, flex-basis, order and align-self. Add, remove and reorder items, then copy or download CSS, HTML + CSS or Tailwind.

Visual Learning Aids

Guides draw the main and cross axes for the current direction and wrapping, label each item with its source position and CSS order, and hatch the gap spacing between items and lines.

Limits and Privacy

Up to 24 items. Lengths accept nonnegative px, rem, em, %, vw and vh values; calc() and custom CSS are not accepted. Previews assume a horizontal, left-to-right writing mode. Everything runs in your browser and settings may be saved in local storage.

CodingTool is officially live on

Launched on StartupBaseCodingTool.dev - Free, Fast & Easy Developer Tools in One Place | Product HuntCodingTool - Featured on Startup FameFazier badgeListed on Turbo0Featured on Twelve ToolsFeatured on Findly.tools