# Digital Signature Generator

> Creates digital signatures via freehand drawing, typed text, or photo scan as transparent PNG or SVG.

- Open in browser: https://pockettoolbox.org/en/signature-generator
- Runs entirely in your browser; files and input are never uploaded.

## How it works

Creation and export of a transparent signature via drawing, text, or image scan.

The signature can be drawn directly on the canvas using a mouse, touchscreen, or stylus, entered as typed calligraphy text, or extracted from an uploaded document photo. Ink color and stroke width can be adjusted freely, with an orientation guide assisting alignment. The finished signature is exported as a transparent PNG, scalable vector file (SVG), or copied directly to the clipboard. The orientation guide is automatically omitted during export.

Captures input coordinates via Pointer Events. Interpolates and smooths stroke points using quadratic Bézier splines. Auto-crop computes the bounding box of non-transparent pixels in the canvas buffer. Photo mode applies luminance-based alpha thresholding. Vector export serializes stroke coordinates into SVG path elements (<path d="M... Q...">). All processing runs client-side in the browser.

## Popular tasks

- [Create a Digital Signature](https://pockettoolbox.org/en/create-signature)

---
PocketToolbox (https://pockettoolbox.org/en)
