How to use CSS Clip-Path and Shape Generator
- Choose Polygon, Circle, Ellipse or Inset rectangle. Only the relevant shape fields are used.
- For a polygon, edit the points grid, choose an example, or enter tab-separated X/Y percentages in the text field. For other shapes, set the center and radius or inset edges.
- Inspect the local outline, then select Create clip path and copy or download the CSS. Replace .clipped-shape with your selector and test the rule at the target element’s real sizes.
Example: CSS Clip-Path and Shape Generator
Make a triangle from three percentage points. Circle, ellipse and inset settings are unused in polygon mode.
Options
- Polygon points
- The text field accepts 3 to 30 rows with X and Y percentages separated by a tab. Use at least three distinct points; the last point connects to the first. The point grid supports up to 12 rows, so use the text field for a larger polygon.
- Circle and ellipse
- The center and radii use percentages from 0 to 100. A circle’s percentage radius uses the reference box’s normalized diagonal; ellipse X and Y radii use the corresponding box dimensions. Check a nonsquare target rather than relying only on the square preview.
- Inset rectangle
- Enter top, right, bottom and left percentages from 0 to 100. Opposing edges must total less than 100% so the shape remains visible.
- Actual target
- Clipping changes the painted area while the layout box remains. The sample does not assess another element’s content, interaction or focus outline. Keep meaningful information and focus visible.
Supported inputs and limits
- Up to 30 polygon vertices and documented percentage values.
- No arbitrary CSS, URLs or external resources.
- Clipping hides visual content and can hide focus outlines; preserve an accessible fallback.
- The generated shape does not implement a visual drag editor or certify browser compatibility.
- Point rows supplement advanced input.
More details
Pointer dragging and SVG-mask export are not provided.
Where your input is processed
This tool does not upload your inputs. See the limits for anything saved on your device.
Clipping changes visibility
A clipped element still needs a usable focus state and readable content. Check the copied rule on the actual box, especially after it resizes or gains text. A successful polygon can cut away meaningful information or part of an interactive control. Keep an unclipped alternative when the shape is decoration rather than essential structure.
Questions about CSS Clip-Path and Shape Generator
Does clipping change the element’s layout box?
No. The surrounding layout still uses its box even when some of its drawing is clipped.
Can I clip an interactive control safely?
Check focus visibility and interaction in the actual page; a decorative preview does not establish that behavior.
Can coordinates reference a remote SVG?
No. This generator creates the supported local basic shapes only.