✳ Pocket PDF Notes

Privacy

How to verify a browser file tool never uploads your files

Short version

A local tool reads the File object into page memory, transforms it with JavaScript or WebAssembly, and returns a Blob. There is no network request carrying the file. Verify it by clearing DevTools Network, processing a test file, and then repeating the job offline.

"It runs in your browser" has become a filler phrase. Some sites mean the buttons and layout are in the browser while the file goes to a server. Others mean the entire transformation happens in your tab. The difference is not marketing. It is a specific set of APIs, and you can test it.

What happens when a tool is genuinely local

When you choose a file with <input type="file"> or drop it on a page, the browser gives JavaScript a File object. That is a handle to the bytes on your disk, plus metadata: name, MIME type, last-modified date. It is not yet a network request.

The page can then ask for the bytes with file.arrayBuffer(), file.text() or a stream. At that moment the contents enter the page's memory. They are still local. Nothing travels unless code explicitly calls fetch() with them.

The three stages are:

  1. Read. The file becomes an ArrayBuffer, a Uint8Array or a stream. A PDF library parses its object structure; an image decoder reads pixels; ffmpeg reads video frames.
  2. Transform. JavaScript, a Web Worker or WebAssembly does the work. Workers keep the page responsive; Wasm gives near-native speed to code originally written in C or C++.
  3. Save. The result becomes a Blob, wrapped in a temporary blob: URL that triggers a download. That URL points into page memory, not a remote server.

There is no fourth, hidden stage. If the code never sends the file, the file never leaves.

The Network-tab test

  1. Open the tool and let the page finish loading.
  2. Press F12 (or right-click → Inspect) and open the Network tab.
  3. Clear the request list so it is empty.
  4. Process a test file. Watch the list while it runs.
  5. Look for a request whose body is your file. On a local tool, there isn't one.

You may still see the page's own assets if they were not cached, and a Wasm engine on first use. Those are code, not your document.

This test is not perfect: a page could disguise a request, and DevTools does not show everything a service worker does. It is still a strong signal and far better than trusting a badge.

The offline test

Load the tool while online, then disconnect from the internet and process the same file again. A server-dependent tool fails immediately. A local tool keeps working because the page and its engine are already in the browser.

Pocket PDF caches its own HTML, CSS, JavaScript, fonts and engines with a service worker. It does not cache your documents. A tool you have never opened, or an OCR language you have never downloaded, may still need a connection the first time. The offline page lists those edge cases honestly.

Where local tools hit limits

The same architecture that keeps the file local creates real constraints:

  • Memory. A tab has a budget. Large PDFs, high-resolution images and video frames compete for it, and the browser may kill the tab rather than use all the machine's RAM.
  • CPU. One laptop encoding video is slower than a rack of servers. Short clips are fine; feature-length video is not.
  • Browser differences. Safari, Firefox and Chromium have different memory and download rules. A job that works in one may need another approach in another browser.
  • No office engine. A faithful Word-to-PDF conversion needs a full office renderer. Running one properly in a tab is not realistic, so that tool is absent rather than fake.

The honest caveats

A browser extension with permission to read and change pages can read what the page can read — including a file you have opened. That is true of any website and any desktop app with similar permissions. Use extensions you trust, or a private window with extensions disabled for sensitive work. A compromised device or someone with physical access can see the file before the browser does. Local processing removes the server-side copy; it does not protect against a hostile endpoint.

The short version

A local file tool reads bytes through the File API, transforms them with JavaScript or WebAssembly, and hands back a Blob. The file never enters a network request. You can check that with the Network tab and again offline. If a site cannot pass either test, "browser-based" is describing the interface, not the processing.

Frequently asked questions

Can a malicious page hide an upload in DevTools?

A crafted page can obscure its own traffic. The Network test is a strong signal, not a formal proof. Combine it with the offline test and use tools you trust.

Does WebAssembly upload my file?

No. Wasm is code running inside the browser sandbox. It can only make network requests if the surrounding JavaScript makes them.

What about browser extensions?

An extension with permission to read and change pages can read what the page can read, including an opened file. Use trusted extensions or a private window for sensitive documents.

About the author

Awais Saleem builds Pocket PDF, a privacy-first collection of browser-based file tools. He writes about file formats, browser APIs and the practical limits of local processing.

Pocket PDF ↗ · Disclosure ↗