PublicSoftTools
Tools16 min read·PublicSoftTools Team·June 2026

Image Resizer Online — Resize Images by Dimensions or Percentage

The free Image Resizer resizes any JPEG, PNG, or WebP image entirely in your browser — by exact pixel dimensions or by percentage — and downloads the result instantly. No files are uploaded to any server.

Why Image Size Matters for the Web

Images are the largest contributor to page weight on most websites. A 2023 HTTP Archive report found that images account for an average of 53% of total page bytes transferred on desktop and 58% on mobile. Oversized images — images larger in pixel dimensions than the layout will ever display them — waste bandwidth, slow page loads, and hurt search rankings.

Google's Core Web Vitals framework measures three performance signals that directly affect search ranking. The most image-sensitive metric is Largest Contentful Paint (LCP) — the time it takes for the largest visible element on the page (usually a hero image) to load. An LCP under 2.5 seconds is considered Good; over 4 seconds is Poor. Oversized images are the most common cause of poor LCP scores.

The correct resolution for a web image is not the maximum resolution the camera can produce — it is the maximum resolution the layout will ever display. A hero image displayed at 1200px wide does not benefit from being 4000px wide. The browser scales it down anyway, but the user downloads three times as much data, and the browser expends unnecessary time decoding a larger image than necessary.

Image Resolution — Understanding the Numbers

Understanding image resolution terminology helps make informed resize decisions:

Resize by Dimensions vs by Percentage

ModeInputBest for
By dimensionsTarget width and/or height in pixelsFitting images to a specific layout slot (e.g. 1200×630 OG image, 800×800 product photo)
By percentageScale factor (e.g. 50%)Reducing file size proportionally without needing to know the target resolution in pixels

Use By Dimensions when you have a specific slot to fill — a social media thumbnail, an email header, a product image slot. Use By Percentagewhen you want to reduce a batch of images by the same factor, or when you want to roughly halve file size without knowing exact target dimensions.

How to Use the Online Image Resizer

  1. Open the tool. Navigate to the Image Resizer.
  2. Upload your image. Drag and drop a JPEG, PNG, or WebP image onto the upload zone, or click to select a file. The image preview appears immediately.
  3. Choose resize mode. Click By Dimensions to enter exact pixel measurements, or By Percentage to scale proportionally.
  4. Enter dimensions. Type the target width, height, or percentage. Enable Lock Aspect Ratio (the chain link icon) to prevent distortion — when locked, changing width automatically recalculates height to maintain the original proportions.
  5. Choose output format. Select JPEG, PNG, or WebP. Adjust the quality slider (for JPEG/WebP) if needed — 80–85 is the recommended range for web use.
  6. Download. Click Download to save the resized image to your device. The file name is auto-generated with the new dimensions appended.

Aspect Ratio Locking — Preventing Distortion

Aspect ratio is the proportional relationship between an image's width and height. A 1200×800 image has a 3:2 aspect ratio. Resizing to 600×400 preserves this ratio (still 3:2) and the image looks correct. Resizing to 600×500 breaks the ratio and produces a vertically stretched, distorted image.

When aspect ratio locking is enabled:

Disable aspect ratio locking only when you need a specific output size regardless of distortion — for example, when a design template requires a fixed 1:1 square crop and you will apply cropping afterward, or when the content in the image (an abstract pattern, a solid color background) is not affected by stretching.

How the Browser Resizes Images — Canvas API

The Image Resizer uses the browser's Canvas API to perform all resizing client-side. The process:

  1. The uploaded image is decoded into a bitmap using createImageBitmap()or by drawing to a hidden <img> element.
  2. A <canvas> element is created with the target width and height.
  3. The image bitmap is drawn to the canvas using drawImage(), which scales the image to fit the canvas dimensions.
  4. The canvas is exported to a data URL via toDataURL('image/jpeg', quality)or toBlob(), producing the resized image file.

Canvas resizing quality

The Canvas API uses bilinear interpolation for image scaling — a quality level appropriate for photographic content. When significantly downscaling (reducing to less than 50% of original dimensions), some browsers produce sharper results by downscaling in two steps rather than one (stepping through an intermediate resolution). The tool applies this multi-step approach automatically for large reductions.

For pixel art, screenshots, and images where sharp pixel edges are intentional, canvas bilinear interpolation can introduce blurring. These cases are better handled by image editing software with nearest-neighbor interpolation support.

Choosing the Right Output Format

FormatCompressionTransparencyBest forAvoid for
JPEGLossyNoPhotographs, hero images, product photos with complex backgroundsLogos, screenshots, images requiring transparency, text-heavy images
PNGLosslessYes (PNG-24)Logos, icons, screenshots, images with text, anything needing transparencyLarge photographs (files will be very large)
WebPLossy or losslessYesAll web images — smaller than JPEG/PNG at equivalent qualitySystems that do not accept WebP (some older CMS, email clients)

WebP — the recommended web format

WebP produces files 25–35% smaller than JPEG at equivalent visual quality (using lossy compression) and 20–30% smaller than PNG at equivalent quality (using lossless compression). Browser support is universal as of 2023 (Chrome, Firefox, Safari, Edge, Opera — all major versions in active use support WebP).

The main reason to prefer JPEG over WebP: compatibility with upload systems and platforms that do not accept WebP files. Some older CMS platforms, email marketing tools, and product databases only accept JPEG or PNG. Check your target system's requirements before choosing the format.

JPEG quality settings

JPEG quality is a 0–100 scale controlling the trade-off between file size and visual quality. Recommended settings:

Retina and HiDPI Display Considerations

Modern devices — MacBook Retina displays, iPhone screens, many Android phones — have device pixel ratios of 2× or 3×. This means one CSS pixel is rendered using 2 or 3 physical display pixels. An image that looks sharp on a standard display will look blurry on a retina display if its pixel dimensions are the same as its display size in CSS pixels.

The rule: provide images at 2× the displayed CSS size for retina displays. If an image displays at 600×400 CSS pixels, provide a 1200×800 pixel image for retina quality. At quality 80 JPEG, the additional file size is usually 30–50% larger — often worth the visual improvement for hero images and product photos.

Use the HTML srcset attribute to provide both sizes and let the browser choose based on the device:

<img
  src="hero-600.jpg"
  srcset="hero-600.jpg 1x, hero-1200.jpg 2x"
  width="600"
  height="400"
  alt="Hero image"
/>

Social Media Image Size Specifications

Platform / Use CaseRecommended SizeAspect RatioNotes
Open Graph (Facebook, LinkedIn preview)1200×630px1.91:1Minimum 600×315; 1200×630 renders sharply on retina
Twitter / X card (landscape)1200×628px~1.91:1Similar to OG; 2:1 is also accepted
Twitter / X card (square)400×400px1:1Summary card without large image
Instagram post (square)1080×1080px1:1Minimum 320×320; 1080×1080 is optimal
Instagram post (landscape)1080×566px1.91:1Widest landscape ratio Instagram supports
Instagram post (portrait)1080×1350px4:5Tallest portrait ratio; occupies more screen space in feed
LinkedIn post image1200×627px~1.91:1Articles use 1200×628; company pages use 1128×376
Profile photo / avatar400×400px1:1Used across most platforms; displayed at 150–200px
Blog hero image1200×675px16:916:9 is universal for web; matches video aspect ratio
Email header600×200px or 600×300px3:1 or 2:1Email clients constrain width to 600px; retina: use 1200px wide

E-commerce Image Standards

Product images have specific requirements on major e-commerce platforms:

Core Web Vitals — LCP Optimization

The Largest Contentful Paint (LCP) metric measures how long it takes for the largest visible element on the page to render. For most websites, this element is a hero image. Common causes of poor LCP related to images:

Privacy — No Uploads, No Storage

The Image Resizer uses the browser's Canvas API to perform all resizing on your device. The image bytes never leave your browser — nothing is sent to a server, nothing is stored between sessions, and the tool functions without an internet connection after the page loads (the JavaScript is already cached locally).

This is especially important for images containing personal or confidential information — medical images, ID documents, business documents, or photos of people. Unlike online tools that process images server-side, this tool provides a verifiable privacy guarantee: client-side JavaScript cannot transmit data to a server without your knowledge.

Frequently Asked Questions

Can I resize a PNG with transparency?

Yes — upload a PNG with transparency (PNG-24 with alpha channel) and select PNG as the output format. The transparency is preserved through the Canvas resizing process. If you select JPEG as the output format, transparency is lost (JPEG does not support alpha channels) and transparent areas are filled with white.

Is there a maximum file size?

No hard limit — the tool is limited by available browser memory. Very large images (files over 20–30MB, or pixel dimensions over 8000×8000) may run slowly or fail on devices with limited RAM. For such images, use a desktop image editor.

Why does my resized image look blurry?

Blurriness after resizing usually occurs when the output dimensions are larger than the input (upscaling). Enlarging a raster image always reduces sharpness — the interpolation algorithm creates pixels by averaging neighboring pixels, which smooths hard edges. For web use, always resize down (to smaller dimensions), not up. If you need a larger version of a small image, use AI upscaling tools that use neural networks to intelligently add detail.

How do I resize multiple images at once?

The current tool processes one image at a time. For batch resizing, use a desktop tool: macOS Preview (select all images → Tools → Adjust Size), Windows Photos or Paint (no native batch resize, but PowerShell scripts can automate it), or dedicated batch tools like IrfanView (Windows) or Photoshop's Image Processor (macOS/Windows).

Does resizing affect the EXIF metadata?

Canvas-based resizing does not preserve EXIF metadata — the output file will not contain camera data, GPS coordinates, or copyright information from the original. If preserving EXIF data is important (for photography archiving, copyright embedding, or geolocation data), use a desktop image editor that has EXIF preservation options.

Resize Your Image Now

Drop an image, set your target dimensions or percentage, choose a format, and download — all in the browser with no uploads.

Open Image Resizer