CSS & Layout

CSS Shape Generator

Pick a shape, drag the sliders and watch the live preview react. Copy the CSS, download it as a file or share a link — everything runs in your browser and nothing is sent to a server.

Runs in your browser v1.0.0

Shape controls

160 px

3- or 6-digit hex, with or without the leading #.

Live preview

updates as you change

CSS output


                    

How it works

Basic shapes use border-radius; polygons, stars, badges and tags are cut out with clip-path: polygon(…) where each point is a percentage of the box, so the shape scales with its element. A speech bubble combines a rounded box with a ::after border triangle for the tail. The preview above is rendered from the same declarations that end up in the copied CSS, so what you see is what you get. The optional share link stores the shape in the URL fragment, which never leaves your browser.