Favorite places of your favorite city
Home
Add to preferred sources on Google

CSS Clip Path Generator

Shape an ordinary HTML element with editable polygon points or simple numeric shape controls, then copy the current CSS with clear reference-box and unit rules.

Shape controls

Current contour: Slanted quadrilateral

Preview and CSS

Dashed outline: reference border box

Preview unavailable. Correct the shape or dimensions.

Native clipping is unavailable; the reference specimen is unclipped.

Percentages use the target’s border box; preview dimensions are not copied.

Preview geometry

Logical reference box: 320 × 180 CSS px.

Point 1: X = 320 × 12.5% / 100 = 40 px

Y = 180 × 10% / 100 = 18 px

The tool adds no upload, saved history, input-bearing URL or coordinate/CSS telemetry. Existing site services and extensions are outside this statement.

Create a clipping shape

  1. Choose Polygon, Circle, Ellipse, Inset or None. Polygon presets provide starting contours; select a point to edit its coordinates, insert an edge midpoint, remove a point or change its order.
  2. Use numeric controls or drag a polygon handle. Percentages run from zero to 100, and inset's uniform corner radius uses zero to 200 CSS pixels. The preview dimensions describe a logical border box and are not copied.
  3. Inspect the native preview and current CSS, then use Copy CSS for one clip-path declaration or Copy value for its function alone. Correct incomplete fields before copying; the manual fallback remains available if clipboard access fails.

Understand the shape and its coordinates

Polygon points are an ordered contour, closed from last to first. Changing the order can change the clipped region. Concave shapes, repeated points and self-intersections are allowed; the editor does not sort points or replace them with a convex hull.

Nonzero and evenodd are different rules for deciding which parts of a crossed or repeated contour remain visible. The chosen rule is written inside polygon(). A repeated contour can be visible under one rule and empty under the other.

Coordinates use the target's border box, starting at its top-left with y increasing downward. A percentage circle radius uses the normalized diagonal, while ellipse percentage radii use width and height separately. Changing a target's proportions can therefore change the appearance.

Inset takes top, right, bottom and left percentages plus one corner radius in CSS pixels. Opposing insets and overlapping rounded corners can be reduced by native CSS. The editor preserves the authored values rather than replacing them with used geometry.

Check geometry with concrete values

On the initial 320 by 180 CSS pixel reference box, the first polygon point at 12.5% and 10% is 40 pixels from the left and 18 from the top. The remaining points still follow their authored order in the copied function.

On a 300 by 400 box, a classic 20% circle radius is about 70.71 CSS pixels. An ellipse with both radii at 20% instead has radii 60 and 80 pixels. These are different shape definitions, not inconsistent rounding.

An inset with top and bottom both 25%, left and right both 10%, and round 80px has a 240 by 90 inner rectangle on a 300 by 180 box. Its uniform used corner radius reduces to 45 pixels, but the copied authored radius stays 80px.

Know what this generator provides

The editor supports three to 20 polygon points, classic circle and ellipse functions, a uniformly rounded inset and None. It does not import arbitrary CSS, SVG paths, other reference boxes or units; unsupported editor syntax is not automatically invalid CSS in general.

Preview width and height are logical CSS pixels. The specimen may be scaled to fit the screen, while handles keep usable hit targets. The copied declaration includes neither those dimensions nor the preview's fit transform or content.

Clipping changes painting and hit testing rather than the element's normal layout box. Valid zero-size, repeated or overlapping shapes may hide all content. An unavailable native preview is labeled separately from those valid shapes.

The code uses the standard clip-path property without a prefixed fallback or complete element style. Browser support and surrounding layout still matter. There is no image export, saved shape library, animation or promise that clipping removes underlying DOM semantics.

Keep authoring in the current page

The tool adds no input upload, saved history, input-bearing URL or coordinate/CSS telemetry. Copy is explicit and the preview uses a fixed in-page specimen. Existing site services and extensions are outside that limited behavior statement.

Clip path questions

A polygon connects points in the written order and closes from last to first. Reordering changes its edges. The editor preserves that order and does not sort, deduplicate or convex-hull the contour.

They are different interior rules for crossed or repeated contours. Traversing the same square twice can leave its centre inside under nonzero and outside under evenodd. The selected rule is included explicitly in polygon().

The supported classic circle percentage uses the square root of the average of width squared and height squared. Ellipse radii instead use width and height independently. A nonsquare target makes the distinction visible.

Native CSS may proportionally reduce opposing insets or overlapping corner radii. The generator keeps the authored values in the code, labels geometry readouts accordingly and permits collapsed shapes.

Yes. Use the point selector and X/Y fields, plus insert, remove and ordering buttons. Handle arrows move by 0.1 percentage point, or one with Shift. Numeric step 0.01 allows finer edits, including when handles overlap or guides are hidden.

Copy value writes only the current function or none, without a final line break. Copy CSS writes one clip-path declaration with one final line break. Neither includes the preview size, content, fit transform, selector or vendor prefix.

The current shape must be fully valid before it can be labeled current CSS. The editor preserves your draft rather than rounding it or displaying an old successful shape. Invalid preview-only dimensions leave otherwise-valid CSS copying available.

This generator uses its own fixed specimen and supported shape controls. Arbitrary CSS/SVG import, image upload/export and saved libraries are outside its scope. A new document starts with the default polygon and settings.

Sources

References for native CSS clipping and its geometry.

Editor limits and controls are product choices, not standards requirements.

CSS Filter Generator

Order and repeat CSS effects, compare a specimen and copy the exact filter declaration.

Open tool — CSS Filter Generator

Fluid Font Size Calculator

Create root-relative CSS from viewport endpoints and inspect the copied size model.

Open tool — Fluid Font Size Calculator

CSS Button Generator

Style native button states, inspect keyboard focus and copy HTML and CSS.

Open tool — CSS Button Generator

CSS Border Generator

Create borders with independent styles, widths, colors and opacity on all four sides.

Open tool — CSS Border Generator

CSS Background Pattern Generator

Create editable stripes, grids, dots and checkerboards. Preview colors and transparency locally, then copy the current CSS declarations.

Open tool — CSS Background Pattern Generator

CSS Border Radius Generator

Edit eight corner radii, preview a box and copy CSS in pixels or percentages.

Open tool — CSS Border Radius Generator

CSS Grid Generator

Build a bounded CSS Grid example with editable tracks, placement and named areas. Preview it, copy CSS or HTML and download the same standalone example.

Open tool — CSS Grid Generator

CSS Flexbox Generator

Build a Flexbox example with container and item controls, explicit layout axes, matching CSS and HTML, and a local complete-example download.

Open tool — CSS Flexbox Generator

CSS Text Shadow Generator

Build ordered text shadows, preview plain text and copy exact CSS.

Open tool — CSS Text Shadow Generator

CSS Transform Generator

Compose repeatable 2D CSS transforms, edit px or percentage translation and origin, inspect a reference box and copy the exact current declarations.

Open tool — CSS Transform Generator

CSS Cubic Bezier Generator

Edit CSS cubic-bezier curves with coordinates, visual handles and presets. Inspect overshoot, run a deliberate comparison with linear motion, and copy easing CSS.

Open tool — CSS Cubic Bezier Generator

CSS Box Shadow Generator

Create ordered CSS box-shadow layers with a live preview and copyable code.

Open tool — CSS Box Shadow Generator

HTML to Markdown

Convert pasted or local HTML into Markdown, review conversion notes, and copy or download the result.

Open tool — HTML to Markdown

JavaScript Regex Tester

Test a JavaScript pattern locally and inspect matches, captures, and UTF-16 positions.

Open tool — JavaScript Regex Tester

Markdown to HTML

Convert a Markdown draft to an HTML fragment, inspect the source and inert preview, then copy or download it.

Open tool — Markdown to HTML

CSS Gradient Generator

Create linear or radial CSS gradients with editable colors, opacity and stops.

Open tool — CSS Gradient Generator

Color Converter

Convert supported sRGB HEX, RGB and HSL literals with alpha, explicit precision and current code Copy.

Open tool — Color Converter

HTML Entity Encoder/Decoder

Encode or decode literal HTML references with explicit context, Unicode options and LF output, without parsing or rendering markup.

Open tool — HTML Entity Encoder/Decoder

Markdown Table Generator

Edit a small literal-text table, set alignment and copy GFM Markdown or import tab-separated text.

Open tool — Markdown Table Generator

HTML Table Generator

Build a rectangular table with captions and headers, then copy HTML and CSS.

Open tool — HTML Table Generator

Query String Parser & Builder

Edit ordered URL parameters, retain repeated names and copy a normalized query or HTTP(S) URL.

Open tool — Query String Parser & Builder

URL Encoder & Decoder

Convert a UTF-8 URL component or form value with explicit space and plus rules, then copy or download the result.

Open tool — URL Encoder & Decoder

Color Contrast Checker

Compare foreground and background colors, adjust opacity and check WCAG numerical contrast thresholds for text and essential interface details.

Open tool — Color Contrast Checker

Base64 Encoder & Decoder

Encode UTF-8 text as standard or URL-safe Base64, or decode either format with clear errors and complete text output.

Open tool — Base64 Encoder & Decoder
View all tools in this category