What is the Image Resizer & Converter?
The Image Resizer & Converter scales image dimensions by exact pixel measurements (width and height) or proportional percentages, while simultaneously converting between JPG, PNG, and modern WebP formats. Featuring aspect-ratio locking to prevent image stretching, it handles all image transformations directly in your browser.
100% Client-Side Privacy Guarantee: Just like our compressor, all image resizing and format conversions occur strictly inside your browser using the HTML5 Canvas API. Your sensitive graphic files, proprietary documents, and personal photos are never uploaded to any remote server or stored in any database.
How to Use the Image Resizer & Converter
- Upload Image: Select or drop your image into the workspace.
- Set Dimensions or Percentage: Type your target width and height in pixels, or scale by percentage (e.g. 50%). Keep 'Lock Aspect Ratio' checked to maintain proper proportions.
- Select Output Format: Choose JPG, PNG, or modern WebP.
- Download Scaled File: Click Resize & Download Image to save your transformed file immediately.
Formula & How It Works
Image scaling computes canvas resampling ratios using bicubic interpolation:
Aspect Ratio Locking:
aspectRatio = originalWidth / originalHeight
If Width changes:
newHeight = Math.round(newWidth / aspectRatio)
If Height changes:
newWidth = Math.round(newHeight * aspectRatio)
Canvas Resampling:
canvas.width = newWidth
canvas.height = newHeight
ctx.drawImage(img, 0, 0, newWidth, newHeight)
canvas.toBlob(callback, targetMimeType, 0.92)Worked Example: A 4000 × 3000 pixel camera photo is resized to 1200 pixels wide for an article header. Height scales automatically to 900 pixels, perfectly maintaining the 4:3 aspect ratio.
Practical Worked Examples
| Original Dimensions | Resize Mode | Target Dimensions | Aspect Ratio |
|---|---|---|---|
| 3840 × 2160 (4K) | Pixels (Width 1920) | 1920 × 1080 (Full HD) | 16:9 (Maintained) |
| 1200 × 1200 (Square) | Percentage (50%) | 600 × 600 | 1:1 (Maintained) |
| 2400 × 1600 | Convert to WebP | 2400 × 1600 (.webp) | Format Conversion |
Common Everyday & Professional Use Cases
Resizing product photos to uniform dimensions for ecommerce catalogs, converting heavy PNG graphics into lightweight WebP images for websites, creating social media banner graphics, and downsizing avatar profile pictures.