Skip to content
Toolars
Explore

CSS Clip Path Generator

24 clip shapes, primitive parameters and editable polygon points; export CSS or a declaration.

Local processing

Processing details

Tool inputs are processed on your device.

Resources may be downloaded to run this tool. Account services are separate.

Privacy information
Report bug

CSS clip-path examples you can reproduce

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.

Adjust these settings in the workspace

Hexagon

Use a hexagon for a team avatar or a repeated badge.

Horizontal point
24%
Vertical point
50%
Shape color
#0f4cff
View CSS
.clipped-shape {
  width: 240px;
  aspect-ratio: 4 / 3;
  background: #0f4cff;
  -webkit-clip-path: polygon(24% 0%, 76% 0%, 100% 50%, 76% 100%, 24% 100%, 0% 50%);
  clip-path: polygon(24% 0%, 76% 0%, 100% 50%, 76% 100%, 24% 100%, 0% 50%);
}

Diamond

Try an angled diamond for a small image or decorative accent.

Horizontal point
35%
Vertical point
50%
Shape color
#0f4cff
View CSS
.clipped-shape {
  width: 240px;
  aspect-ratio: 4 / 3;
  background: #0f4cff;
  -webkit-clip-path: polygon(65% 0%, 100% 50%, 35% 100%, 0% 50%);
  clip-path: polygon(65% 0%, 100% 50%, 35% 100%, 0% 50%);
}

Parallelogram

Use a slanted four-point shape for a card accent.

Horizontal point
18%
Vertical point
40%
Shape color
#0f4cff
View CSS
.clipped-shape {
  width: 240px;
  aspect-ratio: 4 / 3;
  background: #0f4cff;
  -webkit-clip-path: polygon(18% 0%, 100% 60%, 82% 100%, 0% 40%);
  clip-path: polygon(18% 0%, 100% 60%, 82% 100%, 0% 40%);
}

Chevron

Point a banner edge toward the next section.

Horizontal point
18%
Vertical point
50%
Shape color
#0f4cff
View CSS
.clipped-shape {
  width: 240px;
  aspect-ratio: 4 / 3;
  background: #0f4cff;
  -webkit-clip-path: polygon(0% 0%, 82% 0%, 100% 50%, 82% 100%, 0% 100%, 18% 50%);
  clip-path: polygon(0% 0%, 82% 0%, 100% 50%, 82% 100%, 0% 100%, 18% 50%);
}

Apply a shape to an image

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">
.clipped-shape {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

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

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 05

    Choose an output format

    CSS output: Clip-path declaration only / Full example CSS.

  6. 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.

Keep reading

Related tasks, not a dead end.

Move into another focused workspace without returning to the full index.

CSS Loader Generator

264 loader templates: 24 geometries × 11 motion profiles; filter by category and inspect the animation.

Create

CSS Checkbox Generator

24 checkbox templates: eight marks × three transitions; click or press Space in the native preview.

Create

CSS Switch Generator

18 switch templates: six thumb shapes × three transitions; test the native control by click or keyboard.

Create