Skip to main content
L
Loopaloo
Buy Us a Coffee
All ToolsImage ProcessingAudio ProcessingVideo ProcessingDocument & TextPDF ToolsCSV & Data AnalysisConverters & EncodersWeb ToolsMath & ScienceGames
Guides & BlogAboutContact
Buy Us a Coffee
L
Loopaloo

Free online tools for developers, designers, and content creators. Your files are processed in your browser and are never uploaded - no accounts required. A few network utilities (like What's My IP and Currency Converter) call public APIs to do their job and say so on their pages.

support@loopaloo.com

Tool Categories

  • Image Tools
  • Audio Tools
  • Video Tools
  • Document & Text
  • PDF Tools
  • CSV & Data
  • Converters
  • Web Tools
  • Math & Science
  • Games

Company

  • About Us
  • Contact
  • Blog
  • FAQ

Legal

  • Privacy Policy
  • Terms of Service
  • Disclaimer

Support

Buy Us a Coffee

© 2026 Loopaloo. All rights reserved. Built with privacy in mind.

Privacy|Terms|Disclaimer
  1. Home
  2. Web Tools
  3. CSS Clip Path Generator
Add to favorites

CSS Clip Path Generator

Cut elements into shapes with CSS clip-path: 16 presets, draggable points, circles and rounded insets, with CSS checked before you copy it.

Runs locally in your browserMore web toolsJump to full guide

Initializing in your browser…

You might also like

CSS Border Radius Generator

Round each corner in px or percent, make elliptical blob shapes, and see the radius the browser really draws before copying the CSS.

Mock Data Generator

Generate realistic test data as JSON, CSV or SQL: valid card numbers and IBANs, safe example e-mails, and a seed that brings the same rows back.

CSS Animation Generator

Create CSS keyframe animations visually: presets, easing curves and steps, a live preview, reduced-motion support and clean CSS to copy.

CSS Clip Path Generator: a worked example

You want team photos shown as hexagons, with a little breathing room so the points do not touch the edge of each card.

Settings

Shape   Hexagon
Inset   10%
What CSS Clip Path Generator produces

The CSS the tool writes

.clipped-element {
  -webkit-clip-path: polygon(50% 10%, 84.6% 30%, 84.6% 70%, 50% 90%, 15.4% 70%, 15.4% 30%);
  clip-path: polygon(50% 10%, 84.6% 30%, 84.6% 70%, 50% 90%, 15.4% 70%, 15.4% 30%);
}

The plain hexagon runs from 50% 0% to 50% 100% with its sides at 6.7% and 93.3%. A 10% inset scales every point toward the centre, so the top and bottom points move to 10% and 90% and the sides to 15.4% and 84.6%, leaving a margin of 10% at the top and bottom. Because the values are percentages of the element, the same rule fits a 64-pixel avatar and a 400-pixel card.

About the Clip Path Generator

Cut images and elements into shapes with CSS clip-path. Pick from 16 shapes, including hexagons, stars, arrows, hearts, circles and rounded insets, drag the points to make your own, and copy CSS that works in every modern browser. The preview uses exactly the value you copy.

Key features

  • 16 shapes, including circle, ellipse and rounded inset functions
  • Draggable points with mouse, touch or keyboard
  • Add, remove and reset points
  • Inset slider to add a margin around the shape
  • nonzero and evenodd fill rules
  • Shape checked before the CSS is written
  • Preview with your own image
  • Shareable link that keeps your custom points

How to use

  1. 1Choose a shape from the presets.
  2. 2Adjust the inset, and the fill rule for shapes whose edges cross.
  3. 3Drag points in the preview, or focus one and use the arrow keys; add or remove points as needed.
  4. 4Load your own image to check the crop.
  5. 5Copy the CSS and add it to your element.

Shaping elements with clip-path

What clip-path does. The clip-path property hides everything outside a shape, so an image, a card or a whole section can be a hexagon, a slanted banner or a circle without editing any images. Because the shape is measured in percentages of the element's own box, the same value works at any size and on any screen.

Shapes to start from. The 16 presets cover the common needs: triangle, rectangle, pentagon, hexagon, octagon, star, arrow, heart, chevron, parallelogram, rhombus, cross and pentagram are polygons; circle, ellipse and inset (a rectangle with rounded corners) use CSS's own shape functions, so they stay perfectly smooth instead of being approximated by many points.

Making your own. Drag any point of a polygon in the preview, or focus a point and move it with the arrow keys (hold Shift for bigger steps). Add points, remove them, or press Reset to return to the preset. The inset slider shrinks a preset toward the centre, leaving a margin on every side. Your shape, including dragged points, is kept in the page link, so it can be shared and reopened.

Fill rule for crossing shapes. When a polygon's edges cross, like the pentagram, the fill rule decides what is inside. nonzero fills the centre; evenodd leaves a hole there. For ordinary outlines both give the same result.

CSS that is checked first. A polygon needs at least three points, and an invalid clip-path is silently ignored by browsers, which then show the element unclipped. The tool checks the shape before writing anything and explains any problem. The output includes the -webkit- prefixed line for older Safari, followed by the standard property. Try your own image in the preview to see how the shape crops it.

Examples

  • Hexagon profile pictures

    Choose Hexagon and apply the CSS to an avatar image; it crops cleanly at any size.

  • A slanted hero section

    Start from Rectangle and drag the bottom-left point up to give a section a diagonal bottom edge.

  • A star badge

    Choose Star for a sale badge, or Pentagram with evenodd for an outline-style star with a hollow centre.

Tips & best practices

  • Use circle() or ellipse() for round shapes; they stay smooth where polygons show facets.
  • Keep polygons you plan to animate at the same number of points.
  • Put shadows on a wrapper element, since clip-path hides them.
  • Test the crop with your real image, since faces and text can end up near the edges.

Frequently asked questions

Does clip-path work in all browsers?

Yes, in every current browser. The generated CSS also includes the -webkit- line for older Safari versions.

Why does my element show unclipped?

The value is probably invalid, for example a polygon with fewer than three points, so the browser ignores it. The tool only writes CSS for a valid shape and says what is wrong otherwise.

Can I animate a clip-path?

Yes, between two shapes of the same kind with the same number of points, such as two polygons with six points each. The browser cannot blend shapes with different point counts.

Does clipping affect clicks?

Yes. Clicks and hovers only register on the visible part of a clipped element, which makes clip-path useful for shaped buttons.

What is the difference between nonzero and evenodd?

They only differ when edges cross. nonzero treats every enclosed region as inside; evenodd alternates, so overlapping regions become holes, as in the centre of a pentagram.

Are shadows clipped too?

Yes. Anything outside the shape is hidden, including box-shadow. Put the shadow on a parent, or use filter: drop-shadow() on a wrapper.

Related tools and how they differ

  • CSS Border Radius Generator: Rounds corners instead of cutting a shape, for softer edges.
  • CSS Animation Generator: Animates between two clip paths with the same number of points.
  • Glassmorphism Generator: Adds a frosted glass look to a clipped panel.

Private by design

This runs as client-side JavaScript. Keys, tokens, payloads, and other inputs never leave your device.