Compare four polygon shapes, then match the settings in the workspace. Each preview uses the same polygon as its CSS; the exported starting box is 240 × 180 px.
Start with the CSS from any shape above, then add these rules after it. Replace the image path and alt text with your own. The box keeps a 4:3 ratio; object-fit: cover crops the image to fill it without stretching. Percentage coordinates follow the box when it resizes.
<img class="clipped-shape"
src="/your-image.jpg"
alt="Describe your image"
width="240" height="180">
This gallery shows 4 basic polygon examples. The workspace offers 24 shapes; polygon shapes support adding, deleting and moving vertices, while circle, ellipse and inset shapes use parameters. SVG path import and custom curve editing are not included. Use Copy CSS or Download .css in the workspace to save a customized rule. Local PNG/JPEG/WebP image previews stay in this tab and are not uploaded or saved. Preview ratios change the crop only; the image and ratio are absent from CSS/HTML exports.
Task path / input to outcome
How to build a CSS clip-path polygon
01
Choose a starting shape
Choose from 24 shapes. Polygon shapes support adding, deleting and moving vertices; circle, ellipse and inset shapes use parameters. Export a clip-path declaration or full example CSS.
02
Edit the vertices
Drag a numbered point or use the coordinate fields. Arrow keys move a focused point by 1%; Shift + arrow moves it by 10%. Add inserts a midpoint after the selected point.
03
Set the preview color
The full example uses your color, a 240px width and a 4:3 aspect ratio. The editor scales to fit the screen.
04
Check the silhouette
Choose a local PNG, JPEG or WebP image up to 8 MiB, 16 megapixels and 8192 pixels on either side. Preview it with any of the 24 shapes. The image fills the frame with cover cropping; 4:3, 1:1, 16:9 and 3:4 change this preview only. Your image is neither uploaded nor saved and is absent from CSS/HTML exports. Full example CSS keeps its 4:3 ratio. Copy or download the CSS before leaving.
05
Choose an output format
CSS output: Clip-path declaration only / Full example CSS.
06
Apply and check in your layout
Percentage coordinates scale with the element. Paste the declaration into an existing rule, or apply the .clipped-shape class from the full example. Check the result at desktop and mobile sizes. HTML includes the current CSS and a working example. Native controls support keyboard input.
Tool facts
Processing
In your browser
Input leaves this device
Never
Retention
Nothing is stored
Price
Free
Your input stays in the browser.
CSS Clip Path Generator uses its verified local execution path and does not create a hidden input or output history.
Local execution
Runs inside the current browser tab.
No hidden processing
Active tool data never becomes a Toolars document record.
No account required
Use the core workflow without creating a profile. Favorites sync to your account after you sign in.
Immediate reset
Clear the tab and the active working data is gone.
When CSS Clip Path Generator is useful
Shape a six-point orange cutout
In a 2026-09-24 local browser run, start from the default Hexagon (horizontal 24%, vertical 50%). Select point 1, change X from 24% to 30%, and set the color to #ff6600. The preview becomes an orange six-point polygon with clip-path polygon(30% 0%, 76% 0%, 100% 50%, 76% 100%, 24% 100%, 0% 50%); the other five points stay in their original order.
Copy the rule that matches the preview
Full example CSS uses .clipped-shape with width 240px, aspect-ratio 4 / 3, background #ff6600 and both -webkit-clip-path and clip-path. Copy CSS matched the downloaded toolars-clip-path.css (240 bytes). Switching CSS output to Clip-path declaration only and copying gave exactly clip-path: polygon(30% 0%, 76% 0%, 100% 50%, 76% 100%, 24% 100%, 0% 50%); (73 UTF-8 bytes). Apply it to an element in your own layout to check the crop.
Recover from an out-of-range point
Set point 1 X to 101%. The 2026-09-24 workspace reported that points must be finite and between 0 and 100%; the orange preview and generated CSS cleared, and Copy CSS and Download .css became disabled. Set X back to 30% to restore polygon(30% 0%, 76% 0%, 100% 50%, 76% 100%, 24% 100%, 0% 50%), then copy again. Crossing edges are not repaired automatically.
What CSS Clip Path Generator actually does
Choose from 24 shapes.
Common questions
What do the two output formats contain?
Clip-path declaration only: clip-path: polygon(…). Full example CSS: .clipped-shape — width, aspect-ratio, background, -webkit-clip-path, clip-path. The full example uses your color, a 240px width and a 4:3 aspect ratio. The editor scales to fit the screen. 24 clip shapes, primitive parameters and editable polygon points; export CSS or a declaration. HTML includes the current CSS and a working example. Native controls support keyboard input.
How do I restore a preset?
Choose from 24 shapes to replace the current shape. Reset restores the default hexagon, color and full CSS output; Load sample opens the Chevron example.
What shapes and limits are supported?
24 clip shapes, primitive parameters and editable polygon points; export CSS or a declaration. 24 Shape · polygon: 3–32 / circle / ellipse / inset · Copy coordinates
Can I preview an uploaded image?
Choose a local PNG, JPEG or WebP image up to 8 MiB, 16 megapixels and 8192 pixels on either side. Preview it with any of the 24 shapes. The image fills the frame with cover cropping; 4:3, 1:1, 16:9 and 3:4 change this preview only. Your image is neither uploaded nor saved and is absent from CSS/HTML exports. Full example CSS keeps its 4:3 ratio. Copy or download the CSS before leaving.
Does editing upload or save my data?
Coordinates and CSS stay in this tab. There is no workspace storage or content telemetry. Copy or download before leaving.
What happens with invalid coordinates?
For example, X = 101% is outside the 0–100% range: the shape and CSS clear and export is disabled. Change X to 50% to recover, then inspect the polygon before copying. Reset also restores the default shape.
Can edges cross?
Yes. Vertices are connected in list order and CSS uses the default nonzero fill rule. Crossings, repeated points or a collapsed shape are not automatically repaired.