Pixlune converts and compresses images in your browser, and your images are not uploaded to a server. This page explains how that works, what the site does send over the network, and what we measured. Most claims can be checked in your browser’s developer tools in a few minutes; the rest are measurements we ran and recorded.

What happens when you add a file

When you add a JPG or PNG to a tool page such as JPG to WebP, the work happens in this order:

  1. The browser’s own decoder. In a Web Worker, Pixlune calls createImageBitmap() with imageOrientation: 'from-image'. That decodes the image and applies its EXIF rotation, so a photo taken with the phone held sideways comes out upright. We checked this with the photo used below. It is stored as 4032×3024 pixels with EXIF orientation 6 (rotate 90°), and every browser produced a correctly rotated 3024×4032 output.
  2. Our own decoders for what the browser can’t read. Safari decodes TIFF natively; Chrome and Firefox don’t (more in TIFF vs JPG). When the browser’s decoder fails on a TIFF, our own TIFF decoder takes over in the same worker. It’s written in TypeScript, with no WASM, and loads only at that point. PDF pages are rendered by pdf.js, which also runs in a worker.
  3. Encoding, in a worker, with WebAssembly. JPG, WebP and PNG output is encoded with jSquash’s WebAssembly builds of MozJPEG, libwebp and oxipng. AVIF uses jSquash’s build of libavif with the libaom encoder. If a WASM module fails to load or throws, we fall back to the browser’s OffscreenCanvas.convertToBlob. If the browser then returns a different format than we asked for (Safari returns PNG when asked for WebP), we report an error instead of handing you the wrong file.

The only conversion step on the main thread is drawing an SVG to pixels, which a worker can’t do; the encoding afterwards still happens in a worker. The page also shows previews of your files with ordinary <img> elements.

When the page opens, it doesn’t load the worker, the encoders or any WASM. The page’s own JavaScript (interface, drag and drop, format picker) is about 93 KB raw across 11 files, or roughly 31 KB with Brotli. These sizes come from the production build. The Brotli figures are our own quality-11 compression, not a capture of what Cloudflare serves.

Everything else starts downloading when you add your first file. The error reporter (Sentry, described below) adds about 27 KB with Brotli (89 KB raw). The first WebP conversion downloads about 122 KB with Brotli (405 KB raw): the worker, the encoder glue and a 345 KB WASM file. The first AVIF conversion downloads about 862 KB with Brotli (3.5 MB raw). Almost all of that is the encoder’s WASM, which is 3,485,872 bytes raw and about 842 KB with Brotli.

The AVIF encoder is simply large. We use its single-threaded build because the multi-threaded build needs cross-origin isolation (the COOP and COEP headers), which our site doesn’t set.

How to check that your images aren’t sent to a server

Open your browser’s developer tools (F12, or Cmd+Option+I on a Mac). In Safari, first turn on Settings → Advanced → “Show features for web developers”. Go to the Network tab and add an image on any tool page. You’ll see the page’s scripts, then the worker and encoder files the first time you use a format. You won’t see a request that carries your image.

The site is static files on Cloudflare. At the time of writing, our domain has no endpoint that accepts uploads; a POST to the paths we tried returns 405 Method Not Allowed.

The Content-Security-Policy header adds a browser-enforced limit. On the live site it reads, with the five script hashes shortened to …:

default-src 'self'; script-src 'self' 'wasm-unsafe-eval' 'sha256-…' (×5) https://static.cloudflareinsights.com;
style-src 'self' 'sha256-…'; img-src 'self' blob: data:; font-src 'self';
connect-src 'self' https://cloudflareinsights.com https://o4512424247558144.ingest.de.sentry.io;
worker-src 'self'; manifest-src 'self'; object-src 'none'; base-uri 'self'; form-action 'self'; frame-ancestors 'none'

connect-src covers requests that scripts make: fetch(), XMLHttpRequest, WebSocket, EventSource, navigator.sendBeacon() and <a ping>. For those, the only allowed hosts are our own domain, Cloudflare Web Analytics and our Sentry ingest address. Other routes are covered by other directives. Images can load only from our own domain, blob: and data: (img-src). Forms can submit only to our own domain (form-action). CSP doesn’t restrict where the page itself can navigate, so it’s a strong limit on where scripts can send data, not a complete proof. The Network tab is still the direct check.

Each tool page also has a built-in summary: open “Which requests were made?” under the privacy note. It lists the requests in your browser’s Resource Timing records for the page and its workers, split into files from our domain and anything external. It doesn’t make a request of its own. Resource Timing doesn’t cover everything the developer tools see. A browser may leave the analytics beacon out of the list, and the summary shows a note when that may be the case.

What the site sends over the network

Your images aren’t uploaded, but the site isn’t silent. These are all the destinations it can reach.

  • Files from our own domain: pages, scripts, workers and WASM. This is the largest category by bytes, covered above.
  • Cloudflare Web Analytics, on every page we checked (a tool page, a guide and the About page). A script from static.cloudflareinsights.com sends a beacon to cloudflareinsights.com for each page view. Cloudflare says the service collects metrics using the browser’s Performance API and “does not use any client-side state, such as cookies or localStorage”. Its documentation also says it doesn’t log query strings and doesn’t collect or use visitors’ personal data. The beacon script is loaded from Cloudflare, not bundled by us, so it’s code we don’t control. CSP limits where it can send data, and our own code doesn’t hand it any image data. Like any request, the beacon reaches Cloudflare from your IP address. Cloudflare also serves the site itself, so it sees that address either way.
  • Sentry error reporting, only on tool pages and only after you add your first file. It sends an error report when something in our code fails, and only one report in five is sent at all (sampleRate: 0.2). A report contains the error message and stack trace, an error code, the environment name and the page address, among other standard fields such as the SDK version and a timestamp. Query strings are removed from that address.
    • Before sending, src/lib/scrub.ts removes file names from every string, including any word ending in an image or document extension. It also removes blob: and data: addresses and the password of an encrypted PDF.
    • Sentry’s documentation says the SDK sends the user’s IP address by default. We turn that off (dataCollection.userInfo: false), and also turn off the Referer and User-Agent headers that the SDK would add to the report itself.
    • Cookies, HTTP bodies and stack-frame variables are off too. Session tracking is off, and click and console breadcrumbs are dropped.
    • The request to Sentry still arrives from your IP address and with your browser’s own User-Agent header, like any web request. What Sentry’s servers do with those is up to Sentry and our project settings. On 1 December 2026 we turned on “Prevent Storing of IP Addresses” in our Sentry organization settings, so IP addresses aren’t stored with new events. You can’t check those settings from the page.

There’s no other analytics or tracking script and no second error tracker. One detail you’ll find if you read the shipped JavaScript: jSquash’s encoder glue checks for caches.default. That’s a feature check for Cloudflare Workers and Node.js, and it only runs inside a service worker; this site doesn’t register one, so the check never passes in your browser.

Measured conversion times

We converted one real 12.2-megapixel photo, Bear Lake, August 2024 by AutumnNY (CC0). Its EXIF names an Apple iPhone 14 Pro Max. The file is 3,976,683 bytes, stored as 4032×3024 pixels. We converted it with JPG to WebP and JPG to AVIF at default settings.

The browsers were Chromium 158, Firefox 159 and WebKit 27.2, as bundled with Playwright. They ran against a local astro preview server without compression, serving a build without the error reporter, on an Apple M3 with 8 cores and 16 GB of RAM. We added the file twice in the same tab and recorded both runs. On the live site, the first file also loads the error reporter (about 27 KB with Brotli); on a local server that difference is small.

Each time runs from the moment the test hands the file to the page’s file input until the test sees the file’s row marked as finished. That includes reading the file, starting the worker, decoding, encoding and, on the first run, downloading and compiling the WASM. The test checks the row repeatedly rather than reading a timestamp from the page. Treat differences of a few hundred milliseconds as noise.

Chromium 158 Firefox 159 WebKit 27.2
JPG → WebP, 1st run 2.0 s 1.4 s 1.5 s
JPG → WebP, 2nd run 2.0 s 1.4 s 1.4 s
JPG → AVIF, 1st run 9.1 s 9.4 s 7.4 s
JPG → AVIF, 2nd run 9.0 s 8.5 s 7.5 s
WebP output size 1,743,014 B 1,730,698 B 1,731,046 B
AVIF output size 1,396,037 B 1,385,608 B 1,386,780 B

What the numbers show:

  • AVIF took roughly 4 to 7 times as long as WebP in every browser. We load the single-threaded AVIF encoder, so it uses one CPU core however many you have.
  • The AVIF file was about 20% smaller than the WebP at our default settings, on this one photo. We didn’t compare visual quality, so this isn’t a claim that AVIF looks the same at that size.
  • The second run wasn’t clearly faster than the first. On a local server the WASM arrives almost instantly, so most of the time is probably encoding 12 megapixels; we didn’t time the stages separately. Over a real connection, the first run also pays for the download.
  • Output sizes differ slightly between browsers for the same settings. Our guess is that the browsers’ JPEG decoders produce slightly different pixels, but we haven’t measured that.

The server was local, without compression or network latency, so treat the times as a floor. The gap between WebP and AVIF is the part that is likely to hold elsewhere.

Limits and tradeoffs

  • No HEIC/HEIF. iPhones save photos as HEIC by default. According to the caniuse.com support table, Safari 17 and later can decode HEIC, but Chrome and Firefox can’t. We haven’t built a Safari-only path yet. We recognize HEIC from the file’s first bytes, not its extension, and reject it in every browser, including Safari. The error message tells you to export the photo as JPG from Photos, or to set the iPhone camera format to Most Compatible.
  • AVIF encoding is slow, and ours runs on a single thread.
  • Large images use a lot of memory. Each image is held in memory as raw pixels while it’s decoded, resized and encoded. Above 50 megapixels, the file’s row shows a warning that it may be slow and use a lot of memory. Processing still goes ahead.
  • Browsers differ, and not only in speed. TIFF decodes natively only in Safari (see TIFF vs JPG), and AVIF decoding support depends on the browser version.
  • Batches use 2 to 4 workers. The count is your device’s reported core count minus one, but never fewer than 2 or more than 4. On a 2-core device that means every core can be busy with a batch.
  • The source code isn’t public yet. The processing code doesn’t depend on Astro or Preact, so we can reuse it outside this website later. For now you can check its behavior through the Network tab, the CSP header and the open-source components it uses, but not by reading our code.
  • You’re checking the code we serve today. We could change it on a later visit, and without public source you can’t diff that. Check again if it matters to you.

Open-source components

Pixlune sends 26 third-party packages to your browser. The list is generated at build time from what ends up in the bundle, so it can’t drift from the code. Our licenses page shows every package with its exact version and the license text taken from the package itself.

That includes jSquash (Apache-2.0) with the licenses of the codecs it bundles, among them libavif and libaom. It also includes pdf.js (Apache-2.0) for reading PDFs, pdf-lib (MIT) for writing them and fflate (MIT) for ZIP files. omggif (MIT) writes GIFs, imagetracerjs (Unlicense) traces images to SVG, and Preact (MIT) renders the tool interface.

Technical FAQ

Does Pixlune work offline? No. There’s no service worker and no app manifest, so the site needs a network connection like any ordinary website.

Are my files stored anywhere: cache, IndexedDB, the file system? No. Your images and the files made from them exist only in memory, as ArrayBuffers and Blobs, while the tab is open. We don’t write them to Cache Storage, IndexedDB, localStorage, sessionStorage or the Origin Private File System. Close the tab and they’re gone.

What does the site store in my browser? The only storage write in the code we ship is your light or dark theme preference, in localStorage. Nothing image-related is ever stored.