Description
Signature Pad is a JavaScript library for drawing smooth signatures in the browser. It is built on the HTML5 canvas and uses variable-width Bézier curve interpolation, so strokes thicken and thin with the speed of the pen. It works in all modern desktop and mobile browsers and has no external dependencies. You can install it with npm or Yarn, or add it to a page with a script tag pinned to a version from jsDelivr, and it is provided as both a UMD module and an ES6 module. Its options control the look of a stroke: dotSize, minWidth and maxWidth set the line width, throttle and minDistance control how many points are drawn, backgroundColor sets the background, and penColor sets the ink color. The background can be made opaque, which is useful if you want to save signatures as JPEG images. Events fire before and after a stroke begins, ends and updates, and listeners can be added with addEventListener. The demo includes erase and undo examples, and the README links to tips on handling window resizing and high-DPI screens.…
Highlights
- Smooth variable-width strokes
- HTML5 canvas, no dependencies
- Works on desktop and mobile browsers
- Configurable pen and background colors
- Stroke events and erase and undo demos
Ratings & Reviews
No ratings yet
Be the first to rate Signature Pad.
People also visit
Signature Pad FAQ
What is Signature Pad?
A JavaScript library for drawing smooth signatures on an HTML5 canvas.
Which browsers does it support?
All modern desktop and mobile browsers, according to the README.
How do I install it?
With npm or Yarn, or with a script tag from jsDelivr with a version you choose.
Can I save the signature as JPEG?
Yes, if you set backgroundColor to an opaque color such as white, because the default background is transparent.
Does it have events?
Yes. Events fire before and after a stroke begins, ends and updates, and you can cancel the start.
Does it need other libraries?
No. The README says it does not depend on any external libraries.
What are the best Signature Pad alternatives?
Popular alternatives to Signature Pad include SmilesDrawer, Rmkit and Leed PDF Viewer. See all Signature Pad alternatives











