About

Small tools for boring, important files.

OnDiv exists because a passport photo should not require a subscription, an account, or uploading your face to a stranger’s server.

Most online file tools are built around a simple trick: make the useful part paid. The upload is free, the preview is free, and the download has a watermark, a queue, or a file-size limit until you subscribe.

Modern browsers can do the work themselves. Canvas, WebAssembly, and a few well-made libraries can resize a photo, compress a PDF, and build a print-ready sheet without a server. OnDiv is a collection of those tools, kept deliberately small.

What “browser-only” means here

Your files are read into browser memory, processed in the tab, and written back as a download. There is no upload endpoint. If you open the network panel while processing a photo, you will not see the file leave your machine.

The background-removal model is the one exception to “no downloads”: the model file is fetched from OnDiv’s static assets the first time you use it, then cached by your browser. The photo itself is still processed locally.

What OnDiv is not

It is not a replacement for a professional print shop, a legal advisor, or the instructions on your specific form. Photo rules change. Always confirm the exact size, background, and file limit with the authority that issued the form.

Why these tools

The first tool was a one-div PDF editor. The lesson was simple: a lot of “software” is a thin interface over something the browser can already do. OnDiv continues that idea with the files people actually struggle to upload — ID photos and PDFs with arbitrary size limits.

How it is built

The site is static HTML generated with Astro. Image resizing uses Pica (WebAssembly). PDF work uses pdf-lib and PDF.js. Background replacement uses MediaPipe’s selfie segmentation model, running on-device. There is no database, no login, and no file storage.

Questions or a bug? Open an issue on the project’s GitHub repository.

Try the photo tool