Project
ToolSaathi: Building 36 Free PDF, Photo and Office Tools From Scratch
ToolSaathi is a free toolbox I built from scratch: 36 tools for photos, signatures, PDFs, Office files, data and OCR, in English and Hindi. Most of them work inside your browser, and the few that need a server delete your file within minutes.

ToolSaathi is a free website with 36 tools for the small file jobs that come up all the time: making a photo smaller, cleaning up a signature, joining two PDFs, turning a Word file into a PDF, or pulling the text out of a scanned page. It works in English and Hindi, it needs no account, and 25 of its tools do their work inside your own browser, so the file never leaves your phone or computer.
It is my own product. I planned it, designed it, wrote the code, set up the server, and I keep it running. I started it in October 2026. The first version had 24 tools. Two weeks later I redesigned the whole site and added 12 more, all of them working on the device.
This write-up explains what ToolSaathi does, how it is built, and the decisions behind it.
Why I built it
Anyone who has applied online in India for a job, an exam or a bank account knows this moment. The form wants a photo between 20 and 50 KB, a signature of exactly 140 × 60 pixels, and a PDF under a certain size. Your phone gives you a 4 MB picture. So you search for a tool, land on a page full of ads, upload your signature or ID card to a server you know nothing about, and hope the result passes.
I wanted one place that handles all of these jobs properly, and I wanted it to treat people's files with care. A signature, a passport photo, a marksheet or a bank statement is personal. The surest way to protect it is not to upload it at all, so I made that the default wherever a browser can do the work.
What I built
- 36 tools in five groups: images, PDFs, data, OCR and a calculator.
- On-device processing for 25 of them: the browser itself reads and changes the file.
- Isolated server conversion for the 11 jobs a browser cannot do well, such as Word to PDF, with every file deleted within minutes.
- English and Hindi, with a search that understands Hindi and Hinglish words.
- Form-friendly details: exact pixel and KB targets, signature cleaning, passport photo sheets, and the name-and-date strip some exams ask for.
- Security and privacy rules built into the code, the containers and the server, with automatic checks on every change.
The 36 tools
Photo and image tools (10)
| Tool | What it does |
|---|---|
| Compress image | Brings a JPG, PNG or WebP down to the exact KB a form asks for |
| Resize signature | Cleans the paper background and saves exact pixels and KB |
| Resize photo | Changes the size in pixels, centimetres or inches |
| Passport size photo | Crops the photo, sets a white background and makes a print sheet |
| Change photo background | White, blue or transparent background |
| Name and date on photo | Adds the name and date strip some forms ask for |
| Join photo and signature | Puts your photo above your signature in one file |
| Convert image | Between JPG, PNG and WebP |
| HEIC to JPG / PNG | Turns iPhone photos into JPG or PNG |
| TIFF to PDF / JPG | Opens up single and multi-page scans |
PDF tools (21)
Eleven of them organise and edit PDFs, all inside the browser: Images to PDF, Merge PDFs, Compress PDF, Split PDF, Organise PDF pages, Rotate PDF, Add page numbers, Add watermark, Sign PDF, Protect PDF and Unlock PDF.
The other ten convert files to and from PDF:
| Tool | Formats |
|---|---|
| Word to PDF | DOC, DOCX → PDF |
| PDF to Word | PDF → DOCX |
| Excel to PDF | XLS, XLSX → PDF |
| PDF to Excel | PDF tables → XLSX, CSV |
| PowerPoint to PDF | PPT, PPTX → PDF |
| PDF to PowerPoint | PDF → PPTX |
| OpenDocument to PDF | ODT, ODS, ODP → PDF |
| Text to PDF | TXT, RTF → PDF, with Hindi and English fonts |
| PDF to images | PDF → JPG, PNG, or a ZIP of pages |
| PDF to text | PDF → TXT |
Data, OCR and study tools (5)
- Excel and CSV: both directions, with a choice of sheet, separator and text encoding.
- CSV and JSON: both directions, for anyone who works with data or APIs.
- Image to text: OCR in English, Hindi or both.
- Searchable PDF: adds a hidden text layer to a scanned PDF, so you can search it and copy from it. It can also straighten crooked pages.
- Scientific calculator: scientific, programmer and statistics modes, with history and memory.
Most tools never upload your file
A modern browser can do far more than most people expect. It can open a PDF, draw its pages, build a new file, and compress a photo again and again until it reaches a size. So for 25 tools, ToolSaathi sends the page and the code, and your device does the rest.
- PDFs are read with PDF.js and written with pdf-lib. Merging, splitting, rotating, page numbers, watermarks and signatures all happen in the page's memory.
- Protect PDF locks a file with AES-256 encryption in the browser, so the password you type never reaches a server. Unlock PDF needs the correct password. It does not try to guess or get around it, and I would not build one that did.
- Image to text runs Tesseract in the browser through WebAssembly, with English and Hindi language data.
- Excel, CSV and JSON files are read and written with SheetJS and Papa Parse, again on the device. A cell that looks like a formula is written out safely, so it does not turn into a live formula when someone opens the file in Excel.
The home page lets you filter the tools by "keeps files on my device", so anyone who cares about this can see at a glance which tools qualify. Five of the browser tools (PDF to images, PDF to text, Image to text, Excel and CSV, CSV and JSON) also have a server option for very large or difficult files. It is used only when the person chooses it.
The small details that get a file accepted
Most of my time on ToolSaathi went into details that sound boring until a form rejects your upload late at night, on the last day.
Exact KB, read either way. Some portals count 1 KB as 1,000 bytes, others as 1,024. ToolSaathi counts the maximum as 1,000 bytes per KB and the minimum as 1,024. A file that passes one reading passes the other as well.
A minimum size, not only a maximum. Many forms say "between 20 and 50 KB", and a small, clean signature can easily come out at 8 KB. When that happens, the tool first uses the best quality it can. If the file is still too small, it adds invisible padding inside the file: a JPEG comment or a PNG text chunk. The picture does not change by a single pixel, but the size now passes the check.
DPI written into the file. When someone sets a printed size in centimetres or inches, the tool writes the DPI into the JPEG or PNG header, so a print shop or a portal reads the size that was intended.
Signature cleaning without AI. Most people photograph their signature on paper under room light, so the picture comes with grey shadows and a yellowish tint. The cleaner flattens the shadows, removes the paper colour, drops small specks and trims the empty space around the ink. It is plain JavaScript with no model to download, so it is instant even on a slow phone.
Presets only where I could check them. The signature and photo tools have presets for bank exams, taken from the IBPS upload guidelines and checked on 28 October 2026: a signature of 140 × 60 pixels at 10–20 KB, a photo of 200 × 230 pixels at 20–50 KB, a left thumb impression of 240 × 240 pixels at 20–50 KB, and a handwritten declaration of 800 × 400 pixels at 50–100 KB. Other exams change their sizes every year. Rather than ship numbers I could not verify, the tools ask people to copy the sizes from their own notice. A wrong preset would be worse than none.
A new photo background, still on your device
Changing the background of a photo usually means sending your face to somebody's server. ToolSaathi does it in the browser with MediaPipe's selfie segmentation model, which is free and open source (Apache 2.0) and runs on WebAssembly.
The model and its runtime come to about 15 MB, so they load only when someone actually changes a background, not with every page. The site serves its own pinned copy of the model, and its SHA-256 hash is checked when the copy is prepared, so the file cannot change without me knowing. The library also tries to send usage statistics to a Google address. The site's Content Security Policy allows requests only to its own domain, so that call is blocked and nothing about the photo goes anywhere.
When a file has to go to the server
Some jobs need real desktop software. A Word file only turns into a PDF that looks right with an office suite such as LibreOffice. Reading an iPhone's HEIC photo, opening a multi-page TIFF or making a scanned PDF searchable needs native programs too. Eleven tools work this way, and I built that side with the same care as the browser side.
The path a file takes:
- The browser sends it to the website's own
/apiaddress. Next.js passes the request to a private API and adds a service key that never reaches the browser. - The API (Node.js with Fastify) checks the real number of bytes received, the file's signature bytes and its inner structure. A file name or a claimed type proves nothing on its own.
- ClamAV scans the file for malware. If the scanner is not available, the upload fails safely instead of skipping the scan.
- A job goes into a BullMQ queue in Redis, and a worker passes it to an isolated converter.
- The converter uses LibreOffice (through Gotenberg), Poppler, libheif, qpdf or OCRmyPDF with Tesseract, depending on the job.
The converter is boxed in on purpose. It has no database password and no access to the app's storage, and it can reach only its own engines over an internal network. Its process starts fresh after every job, and LibreOffice restarts after every conversion, so nothing from one person's file can stay behind for the next. Macros, remote downloads and webhooks are switched off. Every engine has limits on time, CPU, memory and the number of processes.
There are size limits as well: 10 MB for images and data, 20 MB for PDFs, 25 MB for Office files, 200 pages for normal PDF jobs and 50 pages for OCR. Each browser gets 200 MB of temporary space and the whole server 2 GB, so one heavy user cannot fill the disk for everyone else.
Files are deleted in minutes
"We delete your files after some time" is a promise many tools make. I wanted rules that are short, strict and checked by tests:
- The original file is deleted as soon as its conversion ends, whether it worked or failed.
- The browser copies the result into the page's memory and then deletes the job straight away. The download comes from that copy.
- If that does not happen, the result expires 2 minutes after it is ready, and an unfinished job expires after 10 minutes.
- A clean-up runs every 15 seconds, and an expired download is refused even before the clean-up reaches it.
- Every job belongs to a signed browser cookie and a random ID for that tab. Refreshing the tab deletes its jobs, and leaving the page cancels an unfinished one.
The same rules apply with or without an account. There is no file history, because there is nothing to keep.
Honest about what a conversion can do
Some conversions cannot be perfect, and I would rather say so up front than let someone find out the hard way. Each of these tool pages says what to expect:
- PDF to Word gives a basic editable draft. A complex layout comes back close, not identical, and a scanned page needs OCR first.
- PDF to Excel pulls out text tables that line up. Scans and irregular layouts may need some manual fixing.
- PDF to PowerPoint turns each page into an image slide. The text on it cannot be edited.
- Word, Excel or PowerPoint to PDF can look slightly different from Microsoft Office, because fonts and rendering engines differ.
Clear limits save people time. They also make it easier to trust the tools that do work perfectly.
English and Hindi
Many of the people who struggle with form uploads are more at home in Hindi. So the home page, every tool, the category pages and the guides also have a Hindi version under /hi, with the buttons, messages and questions translated, not only the headings.
Search had to match the way people actually type. Someone might write "pdf size kam", "pdf jodna" or "पीडीएफ जोड़ें". Each tool carries its English name, its Hindi name and a list of Hinglish search words, and the search on the home page checks all of them. The filters (category, task, file type, and "keeps files on my device") are kept in the page address, so a filtered list can be shared or bookmarked.
The fonts, Plus Jakarta Sans and Noto Sans Devanagari, are served by the site itself rather than by an outside font service. Hindi text always has a proper font, and the visitor's browser makes one less request to another company.
There are also three step-by-step guides, in both languages, for the jobs people search for most: compressing a photo to 50 KB, preparing a signature for an online form, and combining PDF documents.
Security from the first day
A site that handles personal files has to be built carefully from the start, not patched later. A few of the things in place:
- A strict Content Security Policy with a fresh nonce on every page. An automatic check in headless Chrome proves that injected scripts,
evaland requests to other sites are blocked. - No open API. The browser only talks to the website's own routes. The real API answers only requests that carry the private key, and the database, Redis and the converters cannot be reached from outside at all.
- Ownership on every job. Guessing a job ID or editing the page's code does not give access to someone else's file. Every request that changes something also passes same-origin and CSRF checks.
- Cloudflare Turnstile on sign-up, log-in, password reset and verification emails, and rate limits for every visitor.
- Locked-down containers: no root user, read-only file systems, no Docker socket, and database users with only the rights they need. The app's own database user can read and write rows, but it cannot change the tables.
Security also means moving quickly when something changes outside your own code. When security advisories for Next.js came out on 22 October 2026, ToolSaathi was on the fixed version the next day, together with a patched Node.js. On the same day I shut down the database admin panel (phpMyAdmin) after a serious PHP flaw was announced. The site never needed it to run.
Testing and deployment
Every change goes through GitHub Actions before it can reach the live site:
- type checks and unit tests for both the website and the API, plus an audit of the packages;
- Playwright tests that use the tools in a real browser;
- a full Docker build of the production setup, started the same way the server starts it, followed by a smoke test, the security policy check, the MySQL integration tests and a real run of every server conversion with test files.
Only a push to the live branch deploys, and only after all of those pass. The site runs on a small VPS that it shares with two other sites, behind Caddy with automatic HTTPS. The database is backed up every night and before every deploy, and the virus definitions are updated every night.
Keeping it free
ToolSaathi is free and needs no account, so to cover its costs it is set up for Google's automatic ads. The ad code loads only on content pages, such as the home page, tool pages and guides, and never on sign-in or password pages. The security policy allows Google's ad addresses and nothing beyond them, and an automatic check confirms that the ad code loads where it should and nowhere else.
What I took from this project
- Privacy is easiest to keep when the file never leaves the device. Often the best upload policy is no upload at all.
- The details nobody notices are the ones that decide whether a form accepts a file: 1,000 or 1,024 bytes, a minimum size, the DPI in a header.
- Saying clearly what a tool cannot do earns more trust than a big promise.
- Building a product for my own users, on my own server, made me think about every layer at once: the page, the API, the containers, the deploy and the monthly bill.
Tools used
| Area | Tools |
|---|---|
| Website | Next.js 16, React 19, TypeScript |
| In the browser | pdf-lib, PDF.js, Tesseract.js, MediaPipe, SheetJS, Papa Parse |
| API | Node.js 24, Fastify 5, Better Auth, Zod |
| Data and jobs | MySQL, Redis, BullMQ |
| Conversion | LibreOffice with Gotenberg, Poppler, libheif, qpdf, OCRmyPDF, Tesseract |
| Safety | ClamAV, Cloudflare Turnstile, Content Security Policy |
| Server | Docker, Caddy, GitHub Actions |
Do you have an idea for a web tool or an app, and want it built with this kind of care? Tell me about it.

Comments
No ratings yet
Log in to comment
Only members can comment and rate posts. It is free and takes a minute.
No comments yet. Be the first to share your thoughts.