The Javascript Clipper library performs clipping and offsetting for both lines and polygons. All four boolean clipping operations are supported - intersection, union, difference and exclusive-or. Polygons can be of any shape including self-intersecting polygons.

Javascript Clipper is a port of Angus Johnson's Clipper library:



Information and examples:

Information and examples (FPoint):

Donate Javascript Clipper Project:

Use cases:
* Over 1500 schools in the UK uses Javascript Clipper in Digimap for Schools service. Read more: and


  • Line and polygon clipping - intersection, union, difference & xor
  • Line and polygon offsetting with 3 types of joining - miter, square and round
  • Polygons can be of any shape, including self-intersecting polygons
  • Minkowski Addition and Minkowski Difference functions included
  • The library is written in Javascript
  • Comprehensive documentation
  • Demos use inline SVG and Canvas libraries
  • The library is significantly faster than commercial alternatives
  • Uses Tom Wu's fast big integer library
  • Faster and lighter FPoint version available

Project Samples

Project Activity

See All Activity >


Algorithms, Graphics

Follow Javascript Clipper

Javascript Clipper Web Site

Other Useful Business Software

WhatsUp® Gold - Ranked #1 For Network Monitoring WhatsUp® Gold - Ranked #1 For Network Monitoring Icon
WhatsUp® Gold - Ranked #1 For Network Monitoring Icon

Automatically discover anything connected to your network with the industry's best flexible licensing. Free trial of our award-winning software

The industry’s best network monitoring software, WhatsUp® Gold includes: Hybrid Cloud Monitoring, Real-Time Performance Monitoring, Automatic and Manual Failover and Extended Visibility to Distributed Networks. Trusted by thousands of organizations worldwide. WhatsUp® Gold - More Visibility. Better Performance. Less Cost. Try it free for 30 days.
How many devices do you monitor on your company's network?
One last question before you visit our site:

When do you plan to purchase a network performance monitoring solution?

Rate This Project

Login To Rate This Project

User Ratings

ease 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 5 / 5
features 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 4 / 5
design 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 5 / 5
support 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 5 / 5

User Reviews

  • A great graphics library, thanks Timo for all the hardwork! (+ a big thanks for Angus as well).

  • The most awesome JavaScript library for working with polygons there is. The demo page is very useful for testing functionality without having to set up any code. Thanks for sharing Timo.

  • This is a solid and awesome project. Absolutely be the best JS clip library, not only a detail document but also a full functions demo site, thanks for your contribution in the world :)

  • I will relearn javascript just for this program. Must be good as it is a port of the awesome clipping code of Angus.

  • A nice translation of a nice library. Many thanks, you saved me a ton of work altough it would be nice if we had new version in JS for Monday's deadline. That would definetely impress the guys at work. Congrats to the author =)

Read more reviews >

Additional Project Details

User Interface


Programming Language