A JPG becomes a PNG, a WAV file is created from an MP3, and none of the files is uploaded. Sounds like magic, but it’s solid engineering: the browser’s canvas interface and WebAssembly. How browser-based conversion works, where its limits are, and what still goes over the network.
The classic model: upload, server, download
Traditionally, online converters work like this: you upload your file to someone else’s server, a program like FFmpeg or ImageMagick does the work there, and you get the result back.
That works, but it has three drawbacks. Your file leaves your device and sits, at least briefly, on third-party infrastructure. With large files you wait twice: once for the upload, once for the download. And the operator carries server and storage costs that grow with every user.
The modern model: the work happens in the browser
Today the actual computation can move onto your device, into the browser tab itself. For images, the built-in canvas interface is often enough: load the image, draw it onto a canvas and export it again as JPG, PNG or WebP. For anything more demanding there is WebAssembly.
WebAssembly (Wasm for short) has been a W3C Recommendation since 5 December 2019. It’s a compact binary format that programs written in languages like C, C++ or Rust can be compiled into; according to webassembly.org, it aims to execute code at native speed. The clever part: a C program grown over decades doesn’t have to be rewritten for the browser; it’s compiled to Wasm with a toolchain like Emscripten.
On top of that comes the sandbox: Wasm code runs isolated in the browser and only sees the data the website hands to it.
Example ffmpeg.wasm: FFmpeg in the browser tab
The best-known example is ffmpeg.wasm, the multimedia tool FFmpeg compiled to WebAssembly. According to the project documentation, the module is about 31 MB. The same command-line commands that otherwise run on a server work directly in the browser:
ffmpeg -i input.webm output.mp4
A conversion then looks like this:
File is chosen via drag & drop
↓
File API reads it into the tab’s memory
↓
Wasm module receives the data in its virtual file system
↓
FFmpeg processes everything locally in the tab
↓
Result comes back
↓
Browser offers it as a download
Formats that browsers can’t decode themselves need additional libraries. libheif, for example, a library for HEIC images, can be compiled to JavaScript or WebAssembly with Emscripten. wandlio, however, converts HEIC on its own server.
What still goes over the network
With a browser conversion, the file itself is not transferred. It doesn’t work entirely without the network, though: the Wasm module has to be loaded the first time – at wandlio from its own domain. In addition, for its usage statistics wandlio reports which converter was used and whether the conversion succeeded – without cookies and without an identifier for the visit – and the page sends technical error reports when something fails. Exactly which data that is and how long it is kept is described in the privacy policy.
The stumbling block: COOP and COEP headers
For the multi-threaded variant, ffmpeg.wasm needs SharedArrayBuffer, that is, memory shared between the main thread and web workers. Browsers only expose it in a secure, “cross-origin isolated” context. According to MDN, the server has to send two headers for that:
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Embedder-Policy: require-corp
Instead of require-corp, credentialless also works. According to Can I use, about 97% of browsers in use support SharedArrayBuffer itself (data as of September 2026). There is also a single-threaded variant of the core that runs without these headers, just slower. wandlio uses this single-threaded variant and therefore sets no COEP header.
The honest limits
Browser conversion is handy, but it’s no cure-all:
- Speed: in a comparison by the ffmpeg.wasm developers (Chrome 116, Intel Core i5-1135G7, a 10-second clip from WebM to MP4), native FFmpeg took 5.2 seconds, the single-threaded core 128.8 seconds and the multi-threaded core 60.4 seconds. For large videos the browser is therefore much slower.
- File size: according to the ffmpeg.wasm FAQ, the limit is 2 GB – a hard limit of WebAssembly.
- Formats: not every codec and not every document format is available in the browser. Which formats a converter handles is stated on its page.
That’s why the pragmatic approach is a hybrid one: what computes well locally runs in the browser. What needs specialised libraries – office documents, HEIC photos or text recognition, for example – runs on the server, at wandlio with the file deleted right after the conversion.
Why this matters for privacy
The real gain is the consequence: if a file never leaves your device, its content can’t be stored or passed on anywhere else. For photos with metadata or confidential documents, that’s a fundamental difference from the classic upload converter. More on the legal side in File converters & GDPR.
At wandlio, most image, audio and video converters run in the browser. HEIC, TIFF and RAW images, documents, text recognition, e-books and conversions of fonts to TTF are handled on wandlio’s own server. Where a converter runs is shown, for example, in the “Matching converters” box below this article.