b2KIT

CSS Shape Outside Generator

Create float wrapping shapes with circle, ellipse, polygon, and image-based shape-outside values.

Tested tool guide Tested browser tools Checked August 16, 2026

What CSS Shape Outside Generator does and how it behaves

Define the contour that adjacent inline content follows around a CSS float. The generator supports circle(), ellipse(), polygon(), and image-based shape-outside values, allowing curved or irregular wrapping instead of the float's usual rectangular boundary. Polygon points represent positions within the selected reference box, while an image shape follows its transparency. The common surprise is that shape-outside changes text wrapping only. It neither crops the element nor works unless the shaped element participates as a float.

How the result is produced

1

Basic shape coordinates

Circle and ellipse values combine radii with a center position. A polygon is an ordered list of x and y coordinate pairs whose connected edges form the wrapping contour. Percentages scale with the shape's reference box, so they are generally more responsive than fixed lengths. If a basic shape omits an explicit shape box, shape-outside uses the float's margin box.

2

Image-derived contours

An image-based shape uses pixel transparency to determine the float area. Transparent regions permit lines to extend farther toward the floated element, while sufficiently opaque regions exclude text. An opaque rectangular background therefore produces a rectangular contour even when the pictured subject looks irregular. Images selected in this browser tool are not uploaded, but any image reference used in deployed CSS must remain available to the page.

Good uses

  • Wrap an article introduction around a circular author portrait while leaving the portrait itself rectangular or styling its appearance separately.
  • Create a diagonal text edge beside a floated product image by defining a polygon whose points follow the composition's open space.
  • Make captions or editorial copy follow the transparent silhouette in an image instead of wrapping around the image element's full rectangular box.

Limits and checks

  • The generated shape-outside value does not activate wrapping by itself. The target must also be floated, normally with float: left or float: right, and it needs dimensions that establish a usable float box.
  • The contour controls line wrapping, not visible geometry. A circle or polygon will not crop the background, border, or image; use a separate visual treatment such as clip-path when matching artwork is required.
  • Percentage coordinates are relative to a reference box rather than the page. Resizing the float, changing its margins, or choosing a different shape box can move polygon vertices and alter the resulting wrap.

Common questions

Why does the text still wrap around a rectangle?

First confirm that shape-outside is applied to the element with float: left or float: right. It has no wrapping effect on an otherwise normal block, flex item, or grid item. For image shapes, also inspect the transparency: an image with an opaque background describes a rectangle, regardless of the visible subject inside it.

Will the generated shape also cut the element into that shape?

No. shape-outside defines the exclusion area used when laying out nearby inline content; it does not clip pixels, backgrounds, or borders. If the element must visibly match the wrapping contour, add an independently compatible clip-path or border-radius. Matching them may require maintaining two declarations because their reference boxes and accepted image behavior are not identical.

References and verification

The behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools