Image Resizer (Pad, Crop, Stretch)

Resize any JPEG, PNG, or WebP image to exact pixel dimensions. Choose Pad for letterboxing with transparent borders, Crop for full frame, or Stretch.

Image Resizer (Pad, Crop, Stretch)

Best solution

Local processing: Image Resizer (Pad, Crop, Stretch); Exact pixel dimensions with customizable composition framing.

Local image workspacePNG output

Choose a file to start. Nothing is uploaded.

Single still image. JPEG uses white behind transparency. Decoder notices

Kepo
Kepo · Desktop Widgets

Keep fast calculators and daily tools pinned right to your desktop.

Install Desktop Widget

Methodology & calculation rule

Bilinear/Bicubic Canvas Scaling: Target Width × Target Height with Pad, Crop, or Stretch

Pad preserves entire picture with transparent borders; Crop fills frame by trimming outer edges; Stretch distorts aspect ratio.

All image processing executes client-side within your browser sandbox via HTML5 Canvas and WebAssembly. No photographs, bitmaps, or metadata are ever uploaded to remote servers.

Output files are generated in-memory as local object URLs. Files must be smaller than 20 MB and under 24 megapixels.

Real-World Context & Technical Standards

Composition Modes

Pad, Crop, and Stretch Geometry

Pad fits the entire image with transparent borders (pillarbox/letterbox); Crop fills the target canvas by trimming outer edges; Stretch forces exact dimensions with geometric aspect ratio distortion.

Bilinear & Bicubic Resampling

Hardware-Accelerated Canvas Scaling

HTML5 Canvas utilizes high-quality multi-pass interpolation algorithms to resample high-resolution master images down to target display dimensions while mitigating aliasing moiré patterns.

Megapixel Safety Boundary

Memory Protection Against Canvas Crashes

In-browser canvas buffers are clamped at 24 megapixels (and 16,384 px max dimension) to prevent mobile browser memory exhaustion and hardware GPU crash loops when rendering enormous graphic files.

Related image tools and utilities
ToolTypeFormat
HEIC to JPG DiagnosticJPEG
HEIC to PNG DiagnosticPNG
WebP to PNG DiagnosticPNG
PNG to JPG DiagnosticJPEG
JPG to PNG DiagnosticPNG

Frequently Asked Questions

What is the difference between Pad and Crop?

Pad preserves 100% of your source image by adding transparent bars. Crop fills the entire dimension by trimming opposite edges.

Does resizing enlarge low-resolution images cleanly?

Resampling interpolates pixel grids, but cannot synthesize optical detail missing from the original snapshot.