Demo.CodeSamplez
Image Upscaler
100% Local AI & Zero Cloud Uploads
WebGPU Accelerated
Real-ESRGAN Compact

Local AI Image Upscaler (4x & 2x)

Sharpen, enhance, and super-resolve your photos directly in your web browser using the Real-ESRGAN Compact neural network. Powered by client-side WebGPU acceleration with total privacy and zero server uploads.

AI Image Upscaling Tool

Inference & Model Settings
Real-ESRGAN Compact
FP32 (~4.6 MB)
Client-Side

Full 4× super-resolution producing crisp textures and 16× more total pixels

Runs compute shaders directly on your GPU for peak speed.

Drag and drop your image here

or click to browse from your device

PNG
JPG / JPEG
WebP
Up to 10 MB

Or try with a sample image:

Why Choose a Local, In-Browser AI Upscaler?

Compare how client-side in-browser AI gives you the privacy of desktop software with the zero-install convenience of the web.

Feature / AttributeOur In-Browser Local AICloud AI ServicesDesktop Apps (e.g. Upscayl)
Data Privacy & Security
100% On-Device (0 bytes uploaded)
Uploaded to 3rd-party cloud servers100% Local / Offline
Installation Required
None (Instant in browser)
None (Requires browser upload)Heavy install (1–5 GB+ binaries)
Hardware Acceleration
WebGPU shaders + WASM fallback
Cloud GPUs (Subject to queues)Native CUDA / Vulkan / Metal
Pricing & Usage Limits
100% Free & Unlimited
Paid credits / SubscriptionsFree / One-time license fee
Account / Sign-up Required
No account or API key needed
Email signup / OAuth mandatoryUsually none
Data Transfer During Upscaling
0 KB (Processed entirely on-device)
Uploads & downloads full image payload0 KB (100% Local)

How In-Browser Super-Resolution Works

Experience machine learning running natively in modern web browsers without APIs, subscriptions, or third-party servers.

1

Select or Upload Your Image

Drag & drop any PNG, JPG, or WebP file into the browser, or select a built-in sample preset. The image is decoded locally in browser memory without sending a single byte to any remote server.

2

Local On-Device AI Inference

ONNX Runtime Web initializes the Real-ESRGAN Compact super-resolution neural network directly from browser cache. WebGPU compute shaders (or WASM threads) process image tiles in parallel on your local GPU.

3

Inspect & Export Enhanced Image

Slide the interactive Before/After comparison divider to inspect recovered textures, sharp edges, and removed artifacts, then export the uncompressed 4x or 2x result as a lossless PNG or JPEG.

Features & Capabilities

Built with modern web standards for high performance, portability, and absolute privacy.

100% Private & In-Browser

Your images never leave your device. All super-resolution computation runs locally using client-side AI with zero cloud uploads.

WebGPU Acceleration

Harness the power of your GPU via WebGPU shaders for rapid 4x & 2x super-resolution with automatic multithreaded WASM fallback.

Real-ESRGAN Compact AI

Powered by Real-ESRGAN Compact architecture with high-order degradation modeling to recover crisp edges, natural micro-textures, and fine details.

Interactive Split Inspection

Compare original and upscaled images with a keyboard-accessible draggable split-view slider and zoom magnification.

Selectable Scale & Formats

Supports PNG, JPG, and WebP. Choose between 4× Ultra-Sharp and 2× Fast & Crisp super-resolution scaling modes.

Free & Open Source

No subscription, no account, no API key, and no rate limits. Powered by ONNX Runtime Web with an ultra-compact ~4.6 MB model.

Practical Super-Resolution Use Cases

From private document preservation to game sprite upscaling, discover how in-browser AI super-resolution enhances diverse visual workflows.

Confidential & Private Photos

Upscale sensitive family portraits, legal documents, IDs, medical scans, or proprietary assets with guaranteed confidentiality since images never leave your local device.

Web Design & Retina Display Assets

Double the resolution of legacy logos, icons, product photography, and UI thumbnails to deliver crisp graphics on modern 4K, 5K, and High-DPI screens.

AI Art & Generative Image Enhancement

Sharpen low-resolution outputs from Midjourney, Stable Diffusion, or DALL-E, eliminating pixelation while restoring natural texture and edge clarity.

Pixel Art & Classic Game Sprites

Upscale vintage 2D game textures, retro sprites, and pixel art illustrations using neural super-resolution to recover clean edges without blur.

E-Commerce Product Photography

Enhance supplier product photos and merchandise catalog previews to give shoppers high-clarity zoom views without costly reshoots.

Scanned Documents & Historic Photos

Breathe new life into archived family photos, historical documents, and old smartphone captures with shifted-window self-attention restoration.

Technical Architecture & Model Details

How Real-ESRGAN leverages deep residual convolutional networks and WebGPU compute shaders to deliver real-time neural image reconstruction.

Model Architecture

Real-ESRGAN Compact (SRVGGNetCompact)

Deep convolutional network trained on high-order degradation modeling and perceptual GAN loss

Super-Resolution Scale

4× Ultra-Sharp & 2× Anti-Aliased

Reconstructs up to 16× total pixel count (4× width × 4× height) with selectable 2× mode

Runtime Framework

ONNX Runtime Web (WebGPU & WASM)

Hardware-accelerated client-side neural execution with tiled memory safety

Compute Backends

WebGPU compute shaders & Multithreaded WebAssembly (WASM)

Automatic fallback ensures 100% device compatibility across all modern browsers

Model Download Size

Ultra-compact ~4.6 MB

Hosted locally on demo.codesamplez.com with browser CacheStorage persistence

Privacy Architecture

Zero-Knowledge Local Client Execution

No backend API routes, telemetry on user images, or cloud uploads

Frequently Asked Questions

Everything you need to know about local in-browser AI super-resolution, privacy, WebGPU compatibility, and quantization.


A Local AI Image Upscaler is a super-resolution application that runs machine learning models directly inside your web browser on your own computer. Unlike traditional cloud upscalers that transmit your photos to remote servers, our tool loads the Real-ESRGAN Compact neural network into your browser cache using ONNX Runtime Web. It utilizes your local GPU via WebGPU (or your CPU via WebAssembly) to reconstruct lost high-frequency details, upscaling images by 4x or 2x with zero server involvement.


No, absolutely not. All image decoding, tile processing, neural super-resolution inference, and canvas rendering happen 100% locally in your browser's private memory space. No images, metadata, or telemetry are ever uploaded or transmitted across the internet.


Traditional scaling methods (like bicubic or bilinear interpolation) simply average neighboring pixels, creating blurry, soft, or pixelated results. Real-ESRGAN (Real-World Enhanced Super-Resolution Generative Adversarial Network) is trained on complex real-world degradations including sensor noise, blur, and JPEG compression artifacts. It reconstructs realistic micro-textures (such as animal fur, fabric weaves, hair, and foliage) while removing compression artifacts.


WebGPU is the modern W3C standard that grants web browsers direct, low-overhead access to your device's graphics processor (GPU). By compiling neural network operations into GPU compute shaders, WebGPU executes tensor math massively in parallel, achieving inference speeds up to 10x faster than CPU-only WebAssembly execution.


Our tool includes automatic fallback to WebAssembly (WASM). If WebGPU is unavailable or disabled on your system, the upscaler runs multithreaded CPU inference via WASM. You can also manually toggle between WebGPU and WASM at any time in the settings bar.


4× mode provides full neural super-resolution, generating 16 times as many pixels as the original image with maximum sharpness. 2× mode produces a doubled resolution result with high-quality anti-aliasing for faster processing and smaller file sizes.


No! After the page loads and the lightweight ~4.6 MB model weights are downloaded to your browser cache on first use, all image processing and neural super-resolution inference occur 100% locally in your browser memory. No image data or metadata is ever transmitted over the network.


Input images between 128×128 and 1024×1024 pixels in PNG, JPG, or WebP formats are optimal for browser performance. The maximum allowed file size is 10 MB and max input dimension is 2048×2048 px. Upscaled results can be exported as uncompressed lossless PNG or standard JPEG.

You might also like

Explore more interactive tools and demos.

Image Object Identifier

Image Object Identifier

Identify objects in images using AI vision models with bounding boxes.