Signing one PDF is easy. Signing 200 of them is a different job. I wanted a way to put the same signature on a whole folder of invoices and letters without uploading any of them to a stranger’s server, so I built a free bulk PDF signer that runs entirely in the browser tab. You add the files, place your signature once, and get the signed copies back as one ZIP.

This post walks through how it works. Some parts were trickier than I expected: rotated pages, cropped pages, and writing a ZIP file with no library.

Question Short answer
What is it? A browser tool for bulk signing: place a signature once, apply it to many PDFs, download one ZIP
Are files uploaded? No. Files are opened and signed in the browser
What kind of signature? A visible electronic signature (an image or text mark on the page), not a certificate-based digital signature
What is it built with? pdf.js for the preview, pdf-lib for stamping, plain JavaScript for the rest
Cost Free, no account, no watermark

Note: this describes how the tool behaves today. Details may change as it is updated.

What “bulk signing” actually means

Bulk signing means adding the same signature, initials or stamp to many PDF files in one go. The point is to do the repetitive part once. You place the mark a single time and the tool applies it to every file in the batch.

There are a few ways to batch sign PDF files, and they trade off differently:

Approach Many files at once Files leave your device Needs an account or install
Print, sign, scan No No Printer and scanner
Desktop PDF software Depends on the software Usually no Install, often paid
Cloud e-signature platforms Usually, on bulk plans Yes Usually an account
Browser-based, client-side tool Yes No No

Note: a general comparison. Features and pricing vary by product and plan.

Cloud platforms are the right choice when you need other people to sign, or an audit trail. A client-side tool fits the case where you are the only signer and want your files to stay on your machine.

E-signature vs digital signature

These two terms get mixed up constantly, and people searching for a “bulk digital signature” often mean something different from what a simple tool offers. The difference decides what you can build.

Visible electronic signature Certificate-based digital signature
What it is A drawn, typed or image mark placed on the page A cryptographic seal tied to a certificate and checked by software (for example PAdES)
Needs a certificate No Yes
What my tool does Yes No

Note: whether either one is accepted depends on your country, the document type and the person receiving it. This is not legal advice.

A bulk e-signature tool like this one stamps a visible mark. It does not create a certificate-based signature, and the page says so clearly so nobody is surprised.

The architecture in one table

Layer Technology Job
File intake File input and drag-and-drop Accepts files and checks for a %PDF- header in the first 1 KB
Preview pdf.js (pdfjs-dist) Renders each page to a canvas
Signature capture Canvas and pointer events Draw, type or upload a signature
Stamping pdf-lib Embeds a PNG and draws it on the chosen pages
Packaging A small custom ZIP writer One download for many files
Remembering localStorage, opt-in Keeps your signature on this device only if you tick a box

Note: both PDF libraries load on demand from a public CDN at pinned versions. Only library code is downloaded, never your documents.

Store placement as fractions, not pixels

The first design decision that paid off: never store pixel positions. Every item (signature, initials, date, text) is saved as fractions of the page width and height, plus its image aspect ratio.

const item = { kind: 'signature', x: 0.62, y: 0.81, w: 0.22, // fractions of the page ar: 3.4, // image aspect ratio mode: 'last' // 'page' | 'all' | 'first' | 'last' }; function resolvePages(item, n) { if (item.mode === 'all') return [...Array(n).keys()]; if (item.mode === 'first') return [0]; if (item.mode === 'last') return [n - 1]; return [Math.min(item.page, n - 1)]; } 

Fractions mean a signature placed on an A4 preview lands in the same relative spot on a Letter page. They also make the “which pages” question trivial, because it becomes a tiny function. That is what lets you sign all pages of a PDF at once, or only the last page of files with different lengths.

Mode Where the mark goes Typical use
page The page it was placed on (clamped to the last page if a file is shorter) A tick beside one clause
all Every page of every file Initials or an “Approved” stamp
first Page 1 of each file Cover letters
last Final page of each file Contracts and invoices

Note: relative positions work best when files share a layout. Previewing a few files before export is still a good habit.

Rotated and cropped pages

This was the part that caused the most bugs. A PDF page has a MediaBox, often a CropBox, and a rotation. What the user sees is the visible area after rotation, but pdf-lib draws in the page’s unrotated coordinate space with the origin at the bottom left.

So the export step does three things: it finds the visible box (MediaBox intersected with CropBox), swaps width and height for 90° and 270° pages, and then maps the “as seen” position back to page space.

const box = visibleBox(page); // MediaBox ∩ CropBox const rot = ((Math.round(page.getRotation().angle) % 360) + 360) % 360; const W = rot % 180 === 0 ? box.w : box.h; const H = rot % 180 === 0 ? box.h : box.w; const vw = item.w * W, vh = vw / item.ar; const vx = item.x * W, vy = item.y * H; // top-left, as the viewer shows it let ux, uy; if (rot === 90) { ux = vy + vh; uy = vx; } else if (rot === 180) { ux = box.w - vx; uy = vy + vh; } else if (rot === 270) { ux = box.w - (vy + vh); uy = box.h - vx; } else { ux = vx; uy = box.h - (vy + vh); } page.drawImage(img, { x: box.x + ux, y: box.y + uy, width: vw, height: vh, rotate: PDFLib.degrees(rot) }); 
Page rotation Width and height Mapping from “as seen” to page space
0° Unchanged ux = vx, uy = h - (vy + vh)
90° Swapped ux = vy + vh, uy = vx
180° Unchanged ux = w - vx, uy = vy + vh
270° Swapped ux = w - (vy + vh), uy = h - vx

Note: simplified from my implementation. Real-world PDFs can be odd, so test with your own files.

Making a signature transparent

Nobody wants a white rectangle covering the text under their signature. Every signature, whether drawn, typed or uploaded, ends up as a transparent PNG.

The drawn and typed ones are easy: they start on a transparent canvas, and I trim the empty margins by finding the bounding box of pixels with non-zero alpha. Uploaded photos are the hard case. A photo of a signature on white paper has a white background, so I convert near-white pixels to transparent using a simple brightness threshold, with a soft edge so the ink doesn’t look jagged.

for (let i = 0; i < d.length; i += 4) { const lum = (d[i] + d[i + 1] + d[i + 2]) / 3; if (lum > 235) d[i + 3] = 0; // paper: fully transparent else if (lum > 165) d[i + 3] = Math.round(d[i + 3] * (235 - lum) / 70); // soft edge } 
Input How it becomes a transparent PNG
Draw Strokes are stored as normalised points, smoothed with quadratic curves, then trimmed
Type Text is drawn in one of four font styles, then trimmed
Upload PNG or JPG is scaled down, near-white is made transparent (optional toggle), then trimmed

Note: a photo in poor light may need a retake. A plain white page and even lighting give the cleanest result.

A ZIP writer in about 60 lines

When you sign multiple PDFs at once, you need to hand back many files. I didn’t want to ship a ZIP library just for that, and since PDFs are already compressed, there is little to gain from compressing them again. So the writer uses the “stored” method: no compression, just the file bytes and a few headers.

Record Signature Fixed size What it holds
Local file header 0x04034b50 30 bytes + file name CRC-32, sizes, time and date, name
File data n/a As long as the file The PDF bytes, unchanged
Central directory entry 0x02014b50 46 bytes + file name Index entry pointing at each local header
End of central directory 0x06054b50 22 bytes Entry count, directory size and offset

Note: this simple writer has no ZIP64 support, so a single file must stay under 4 GB. The code throws a clear error if one doesn’t.

A CRC-32 table (computed once, on first use) handles the checksum, a TextEncoder handles UTF-8 file names, and the final result is a Blob that the browser saves as signed-pdfs.zip. Each file inside gets “-signed” added to its name, and duplicates get a number.

Keeping memory under control

A 200-page PDF rendered at full resolution would eat memory quickly, especially on phones. The preview only keeps pages near the viewport alive.

Technique What it does Why
Lazy rendering Renders pages within roughly 900 px of the viewport Avoids drawing pages nobody sees
Un-rendering Shrinks off-screen canvases to 1×1 and cancels render tasks Frees memory on long files
DPR cap Device pixel ratio capped at 2 Sharp enough, far cheaper than 3×
Pixel budget Lowers resolution in small steps if a page would exceed about 14 million pixels Prevents huge canvases
Yielding A short pause between files during export Keeps the progress text and UI responsive

Note: the practical limit for very large batches is still the device’s memory. Smaller batches are safer on phones.

Edge cases I had to decide on

Situation What happens
Password-protected PDF The preview shows a clear message. At export that file is marked “Protected PDF” and the rest are still signed
File that isn’t really a PDF Skipped on intake, with a toast message
PDF with an existing certificate-based signature A new copy is saved, which can stop the old signature from validating. The page warns about this
Interactive form fields Not filled in. The tool stamps on top of the page, so fill the form first
One broken file in a batch It is reported in the file list. Everything else still goes into the ZIP

Note: behaviour reflects the current version of the tool.

Try it

If you want to see all of this in action, the bulk signing tool is free and needs no sign-up. The flow is short:

  1. Add your PDFs, one or many.
  2. Draw, type or upload a signature. Initials, a date, a tick, a cross or a line of text work too.
  3. Click the signature to place it, drag it into position and resize it.
  4. Pick Show on: this page, all pages, first page or last page.
  5. Download one signed PDF, or one ZIP for a batch.

FAQ

Can you add a signature to a PDF without uploading it?

Yes. If the tool uses client-side libraries such as pdf.js and pdf-lib, the file is read and modified in the browser and never sent to a server.

What is the difference between a bulk e-signature and a bulk digital signature?

A bulk e-signature places a visible mark, like a drawn or typed signature, on many files. A bulk digital signature seals each file with a certificate. My tool does the first, not the second.

How do you sign all pages of a PDF at once?

Place your signature or initials once, then set the placement mode to “all pages”. The same mark is drawn on every page of every file in the batch.

Why store positions as fractions?

Because pages differ in size and rotation. Fractions of width and height scale to any page, and one small function can decide which pages receive the mark.

Is a signature added this way legally valid?

It depends on your country and on the document. Many places accept electronic signatures for many documents, but some need extra formalities. Check with whoever receives the file.

Does it work on mobile?

Yes, in a modern mobile browser. Drawing and dragging use pointer events, so touch works. Very large batches can be slow on phones.

Wrap-up

Bulk signing looks simple until rotated pages, cropped pages and mixed page counts show up. Storing placement as fractions, mapping coordinates carefully and keeping everything client-side solved most of it. If you need to sign multiple PDFs at once and want your files to stay on your device, give it a try.

If you test it on a tricky PDF and the signature lands somewhere odd, tell me in the comments. Odd files are how I find the next bug.

Disclaimer: this tool adds a visible electronic signature and does not create a certificate-based digital signature. This article is not legal advice. Check what the person receiving your document requires, and keep your originals as a backup.