Flexbox Generator
Try CSS flexbox visually: flex-direction, justify-content, align-items, flex-wrap, align-content and gap, with a live preview and copy-ready container CSS.
Runs in your browser. Nothing is uploaded.
About Flexbox Generator
Change each flex container property from a dropdown and watch numbered items of different heights move in the preview. It's the fastest way to see what space-between or align-items: baseline actually does.
The CSS output only includes the properties you need, ready to paste onto your container.
How to use Flexbox Generator
- Open the tool above and add your file or text.
- Adjust the options to suit.
- Download or copy the result. Nothing is uploaded at any point.
Frequently asked questions
What is the difference between justify-content and align-items?
justify-content positions items along the main axis (horizontal in a row), align-items along the cross axis (vertical in a row).
When does align-content do anything?
Only when items wrap onto more than one line. It spaces the lines, not the items.
Is Flexbox Generator free and private?
Yes. Flexbox Generator is completely free with no sign-up. Everything runs in your browser, so whatever you type or paste never leaves your device.