Skip to content
Developer & CodeLocal · Stays on device

Flexbox Playground

Experiment with flex container and item properties on a live preview and copy the CSS.

  • Works on desktop and phone
  • Free to use
  • No sign-up or watermark
flexbox-playgroundOn this device
1
2
3
4
5
6
7
8
9
10
1
2
3
4
5
6
7
8
9
10

About this tool

Change flex-direction, wrapping, justify-content, align-items, align-content and gap on the container, then select any item to set its grow, shrink, basis, order and align-self. The preview is real flexbox and can be resized by dragging its corner, so you can see exactly when items wrap or stretch.

The CSS leaves out values that are already the defaults and uses flex shorthand keywords such as auto and none where they apply. Everything runs in your browser. Nothing you enter is uploaded, logged or stored.

  1. Input

    Your code or text

    Pasted or opened from a file

  2. Processing

    Processed in this browser

    Instant, in-browser. Nothing is uploaded.

  3. Output

    Your result

    Ready to download or copy

Local processing pipelineInstant, in-browser

How to use it

  1. 1

    Set the container properties on the left.

  2. 2

    Click an item in the preview to edit its own flex settings.

  3. 3

    Resize the preview to test wrapping, then copy the CSS.

Zero-upload architecture

How to use Flexbox Playground for free, with no upload

Free, with no sign-up or watermark · Your files stay on your device

  1. 1

    Open Flexbox Playground

    Launch the app and add your file. There is nothing to install and no account to create.

  2. 2

    Work through it

    Click an item in the preview to edit its own flex settings.

  3. 3

    Get your result

    Resize the preview to test wrapping, then copy the CSS.

  • Local

    CSS Grid Generator

    Build CSS grid layouts with track sizes, gaps and named template areas, previewed live.

    Open tool
  • Local

    Box Shadow Generator

    Design layered CSS box shadows visually and copy the CSS or a Tailwind class.

    Open tool
  • Local

    HTML Preview Sandbox

    Preview HTML and CSS safely in an isolated, offline sandbox at phone, tablet and desktop widths.

    Open tool
  • Local

    CSS Gradient Generator

    Design linear, radial and conic CSS gradients with draggable colour stops and copy the code.

    Open tool