Skip to main content
GARGLOO

CSS Clip-Path Generator – Draw Shapes & Copy Code

Draw any shape, copy the clip-path.

Runs on your deviceCSS

At a glance

Input:
CSS
Processing:
Runs locally in your browser
Privacy:
Nothing you type is sent to a server

Last updated: 2026-11-15

Common use cases

  • Cutting a hero image into a diagonal or arrow shape without an image editor
  • Making triangle, diamond and star badges for a landing page
  • Building a speech-bubble callout with the preset, then fine-tuning the tail point
  • Copying a Tailwind clip-path class straight into a component

About this tool

Drag points on the preview to draw any polygon, or switch to circle, ellipse or inset mode. Pick from 20 presets — triangle, star, arrow, house, speech bubble and more — then copy the CSS, a Tailwind class or a standalone SVG. Live preview, no upload, no signup.

How to use it

  1. Pick a preset, or drag the white points on the preview to draw your own polygon.
  2. Switch modes for circles, ellipses and inset frames, and tune them with the sliders.
  3. Watch the preview update live as you drag.
  4. Copy the CSS, Tailwind class or SVG from the export panel.

Worked examples

Input: Triangle preset

Output: clip-path: polygon(50% 0%, 100% 100%, 0% 100%);

A triangle pointing up — the classic hero divider.

Input: Circle, centre 50% 50%, radius 50%

Output: clip-path: circle(50% at 50% 50%);

A perfect circle — the simplest way to round an image without border-radius.

Input: Hexagon preset

Output: clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);

Six points, all at right angles — a honeycomb tile or badge.

Practical tips

  • Drag a point near an edge and the shape snaps to the box — percentages keep it responsive at any size.
  • Add a point to split a long edge, then drag the new point out to make a notch or a tail.
  • The checker background shows exactly what is clipped away; switch to the photo-style background to judge the shape on a real image.
  • For a rounded frame, use inset mode with the corner-roundness slider instead of drawing a rounded rectangle by hand.

Common mistakes

  • Forgetting that clip-path percentages are relative to the element — the same polygon looks different on a wide banner than on a square card.
  • Ordering polygon points out of sequence — crossing edges make a bow-tie instead of the shape you meant; drag the points back into order around the outline.
  • Using a polygon with only two points — a shape needs at least three; add a point before the code will generate.
  • Expecting clip-path to crop the layout box — it only clips what is painted; the element still takes up its full rectangular space in the layout.

How this compares

Most clip-path tools in the field are English-only single-purpose pages — the best of them already ship a drag-point editor, presets and Tailwind export, and this one matches that set rather than claiming it as new. Its edge is the same as every gargloo tool: four languages from day one, no account, no upload. The tradeoff: no path mode (freehand Bézier curves) and no image upload — for traced outlines, use an SVG editor instead.

Good to know

  • Polygon mode only — no freehand Bézier path mode; curves come from circle, ellipse or the inset roundness slider.
  • 3–12 polygon points; very complex outlines belong in an SVG editor, not a clip-path.
  • The SVG export is a filled shape on a square canvas, not a clipped photo — it shows the outline, not your image inside it.
  • clip-path clips paint only: the element still occupies its full rectangle in the page layout.

Frequently asked questions

What is CSS clip-path?

A CSS property that clips an element to a shape — polygon(), circle(), ellipse() or inset() — so only the part inside the shape shows. It is the standard way to make triangles, diamonds, arrows and other non-rectangular elements without images or SVG files.

Does clip-path work in all browsers?

Yes, in all modern browsers — Chrome, Edge, Firefox and Safari all support polygon, circle, ellipse and inset. Very old browsers ignore the property and show the full rectangle, so keep a sensible background behind the clipped element as a fallback.

How do I use the shape in Tailwind?

Switch the export to Tailwind and copy the class, for example [clip-path:polygon(50%_0%,_0%_100%,_100%_100%)]. Tailwind arbitrary values need no config — paste the class onto any element. Spaces become underscores inside the brackets, which is how Tailwind encodes them.

Can I export the shape as SVG?

Yes — the SVG tab gives you a standalone <svg> with the same shape filled in, ready to paste into a page or an icon file. The polygon points, circle and ellipse are drawn at the same proportions as the preview.

Is my shape uploaded anywhere?

No. The editor, the preview and all three exports run entirely in your browser — nothing you draw or copy leaves this tab.

All developer tools
CSS Clip-Path Generator – Draw Shapes & Copy Code | GARGLOO