Fix Your File Size Instantly

How ResizeKB Works — 100% Client-Side File Processing

Complete Technical Guide to Browser-Based Image & PDF Optimization

Most online file converters and image compressors upload your files to remote cloud servers to execute compression scripts. When dealing with highly sensitive documents—such as Aadhaar card scans, PAN cards, passports, bank passbooks, or academic mark sheets—uploading files to unknown third-party servers presents severe privacy and data leak risks. ResizeKB is fundamentally engineered on a different paradigm: zero remote server uploads.

Every compression routine, format conversion, and image cropping operation on ResizeKB takes place entirely inside your device's browser memory (RAM) utilizing modern HTML5 Canvas, File API, and WebAssembly compilation routines. Your documents never cross a network interface.

1. The Client-Side Execution Pipeline

When you select an image or PDF file on ResizeKB, the workflow follows this local pipeline:

  1. Local Stream Ingestion: The browser reads your file stream using the native JavaScript FileReader and createImageBitmap APIs. Data is read directly from your local storage into temporary browser RAM.
  2. Offscreen Canvas Rendering: The raw pixel array is rendered onto an offscreen 2D HTMLCanvasElement context. If dimensional scaling is required (for instance, converting a 4000×3000px camera photo to a standard 350×450px passport format), bilinear downsampling is performed locally on your GPU/CPU.
  3. Iterative Binary Search Compression: To achieve exact kilobyte targets (e.g., exactly 20 KB, 50 KB, 100 KB, or 200 KB), ResizeKB employs an iterative binary search loop on the JPEG quality parameter (ranging from 0.05 to 0.98). Within 3 to 5 rapid micro-iterations (taking under 300 milliseconds), the engine pinpoints the highest visual quality that stays strictly below your target ceiling.
  4. Local Blob Generation & Direct Download: The finalized pixel buffer is packaged into a local Blob object and downloaded directly to your device via an in-memory blob:URL. At no point is any HTTP request transmitted to a backend server.

2. How PDF Compression Works Locally

Compressing PDF documents—especially password-protected e-Aadhaar cards, bank statements, and multi-page job application dossiers—presents unique challenges. Conventional web tools decrypt your PDFs on external servers. ResizeKB handles PDF optimization entirely on your machine:

  • Local Parsing: The PDF binary structure is parsed using client-side JavaScript PDF rendering engines. If your PDF is password-protected, the decryption key is evaluated strictly in browser memory.
  • Raster Stream Re-Encoding: Embedded high-resolution page scans (which often bloat PDF sizes to 5 MB–10 MB) are extracted, downscaled to optimal reading DPI (150–200 DPI), re-compressed as high-efficiency JPEG streams, and repackaged into a lean PDF container under 100 KB or 200 KB.
  • Vector & Text Preservation: Text layers, embedded fonts, and vector elements remain sharp and searchable, ensuring compliance with government portals like UPSC, SSC, and NTA.

3. Privacy & Security Guarantees

🔒 Our Hard Privacy Architecture

  • No File Uploads: ResizeKB has no backend file storage, no upload endpoints, and no server databases.
  • Offline Capable: Once a tool page is loaded in your browser, you can disconnect your internet connection entirely and the tool will continue to resize and compress files normally.
  • Zero Data Retention: As soon as you close or refresh your browser tab, all temporary image buffers are instantly garbage-collected from RAM.

4. Browser Compatibility

ResizeKB is compatible with all modern standards-compliant web browsers without requiring browser extensions or plugins:

  • Google Chrome & Chromium-based browsers (Windows, macOS, Linux, Android)
  • Apple Safari (iOS, iPadOS, macOS) with full Apple HEIC photo support
  • Mozilla Firefox (Desktop & Mobile)
  • Microsoft Edge (Desktop & Mobile)

5. Frequently Asked Questions

No. ResizeKB does not save, store, or transmit any document files. All operations occur in the volatile memory of your own web browser.

Cloud converters require uploading a large 5MB–15MB original file over your internet connection, waiting in a server queue, and downloading the result. Client-side processing eliminates internet transit time, delivering finished files in under two seconds.

Yes. Because processing is 100% local, ResizeKB is one of the safest platforms available for preparing sensitive government identity documents.