Pinatool

CSS Shape-Outside Generator

Wrap real text around circles, ellipses, insets, and polygons. Tune float side, dimensions, and shape margin in a live reflow preview, then copy clean production CSS.

Real Text Reflow Preview

Inline copy dynamically contours around the computed silhouette

Editorial Typography with Non-Rectangular Flow

CSS Shapes revolutionize editorial and commercial web design by allowing typography to wrap around organic contours, circular portraits, product silhouettes, and geometric polygons rather than being constrained by ordinary rectangular bounding boxes.

The shape-outside property defines the virtual boundary used to position adjacent inline text nodes. Notice how the text lines immediately recalculate their line boxes and step naturally around the curved or angled perimeter.

Adding shape-margin introduces buffer breathing room between the outer edge of the shape and the start of each line, ensuring comfortable readability across both high-density desktop displays and responsive mobile screens.

Ready to customize CSS shape-outside.

Ready to customize CSS shape-outside.

Export Ready CSS

Ready to paste into your stylesheet or component rules

.wrapped-shape {
  float: left;
  width: 240px;
  height: 240px;
  shape-outside: circle(45% at 50% 50%);
  shape-margin: 20px;
  clip-path: circle(45% at 50% 50%);
}

Shape Controls

Shape Function
Float Alignment
Circle Geometry
Dimensions & Spacing

How It Works

1

Pick Shape & Float Side

Choose Circle, Ellipse, Inset, or Polygon, and decide whether the floated graphic aligns to the left or right edge.

2

Adjust Geometry & Margin

Configure radii, centers, or polygon vertices. Add shape-margin to ensure comfortable reading distance between image and text.

3

Copy Production CSS

Copy clean CSS with optional matching clip-path, or download a standalone stylesheet ready for your website or CMS.

CSS Shape-Outside Generator Key Features

Four Shape Functions

Seamlessly toggle between circle(), ellipse(), inset(), and polygon() syntax with live coordinate editing.

Real Document Reflow

Experience real multi-paragraph text wrapping in editorial flow, proving that your margins and contours are comfortable to read.

Synchronized shape-outside & clip-path Output

Automatically pairs shape-outside with matching clip-path and shape-margin rules so the visible element and the invisible text-wrap contour stay aligned.

Frequently Asked Questions

Why does shape-outside require float: left or float: right?

The CSS Shapes specification defines shape-outside specifically as a modifier for floated layout boxes. Surrounding inline content calculates its line boxes against the float area. Without a float property, the element remains in standard block formatting flow where shape-outside has no effect.

What is the purpose of shape-margin?

shape-margin adds a virtual buffer area around the computed shape boundary. It pushes adjacent lines of text outward, giving the text breathing room so that glyphs do not physically collide with the edge of the shape or photo.

How is shape-outside different from clip-path?

clip-path controls what is visually painted (clipping off pixels outside the boundary), but leaves the surrounding layout box as a rectangle. shape-outside modifies where surrounding inline text flows. Enabling both allows the visual graphic and the text reflow boundary to match each other perfectly.

Can I use custom polygon shapes?

Yes. The tool includes built-in polygon presets (Triangle, Diamond, Hexagon, and Slant) as well as direct coordinate inputs for each point so you can craft custom polygonal flow areas.

Why do explicit dimensions matter for shape-outside, and how do you keep it responsive?

CSS shape-outside needs a defined float box (explicit width and height or an image with intrinsic dimensions) to resolve percentage coordinates for circle(), ellipse(), inset(), and polygon(). Using percentage coordinates with responsive widths or media queries lets the text wrap adapt cleanly across screen sizes.