Image Resizer — Resize Images by Pixels or Percent

Resize a photo to exact pixel dimensions or a percentage, crop it to fill a social-media size, or fit it inside a frame with a background colour — all locally in your browser.

Runs in your browser

Choose an image or drag & drop it here

JPEG, PNG, WebP, GIF, AVIF or SVG · or paste with Ctrl+V

Presets
Social media
Icons

Your data never leaves your computer. All processing happens 100% locally in your browser.

How to use the Image Resizer

  1. Drop or choose an image (JPEG, PNG, WebP, GIF, AVIF or SVG). It stays on your device.
  2. Type a new width or height — with the lock on, the other side follows the original aspect ratio — or switch to Percent.
  3. Or click a preset such as Open Graph 1200×630 or YouTube thumbnail 1280×720.
  4. If the shape changes, choose Crop to fill (with a crop focus) or Fit inside with a background colour.
  5. Pick a format and quality, check the preview and file size, then click Download.

What is an image resizer?

An image resizer changes the pixel dimensions of a picture. Making an image smaller reduces its file size and makes it fit the exact slot it will be shown in — a 1200×630 social preview, a 1080×1080 Instagram post or a 32×32 favicon. This resizer runs in your browser: the image is decoded, resampled with high-quality smoothing (stepwise halving for big reductions to avoid jagged edges) and encoded again as JPEG, PNG, WebP or AVIF.

Crop to fill vs. fit inside vs. stretch

When the target shape differs from your original — say a 4:3 photo into a 1.91:1 Open Graph frame — you have three choices:

  • Crop to fill (like CSS object-fit: cover) scales the image until it covers the whole frame and trims the overflow. Use the crop focus to keep the top (faces, headlines) or another edge.
  • Fit inside (like object-fit: contain) shows the entire image and fills the empty bars with a background colour — or transparency for PNG/WebP. Good for logos and product shots.
  • Stretch forces the exact size and distorts the image; only use it when the ratio is already almost the same.

Common image sizes

UseSize (px)Ratio
Open Graph / Facebook & LinkedIn link preview1200 × 6301.91:1
Instagram square post1080 × 10801:1
Instagram portrait post1080 × 13504:5
Instagram / TikTok story, Reel1080 × 19209:16
X (Twitter) in-feed image1600 × 90016:9
X (Twitter) header1500 × 5003:1
LinkedIn personal banner1584 × 3964:1
YouTube thumbnail1280 × 72016:9
Apple touch icon180 × 1801:1

Platforms change their recommendations from time to time, so treat these as safe defaults. For a full favicon set (ICO, Apple touch icon, Android icons and manifest) use the Favicon Generator; to design a social preview with text from scratch, try the OG Image Generator.

Resizing for the web

Size images to roughly the largest size they will be displayed at, multiplied by two for high-density (Retina) screens — a 600 px wide blog image should be exported at about 1200 px. Going bigger only adds bytes; upscaling a small image cannot add detail and will look soft. After resizing, run the result through the Image Compressor for extra savings, and use the Aspect Ratio Calculator to work out matching dimensions.

Tools that pair well with the Image Resizer

  • Image to Base64 — Turn a PNG, JPEG, SVG, WebP or GIF into a Base64 data URI with copy-ready CSS and HTML — or paste a Base64 string to preview and download the image.
  • QR Code Generator — Generate a QR code for a link, Wi-Fi login, contact card, email, phone number or SMS.
  • Image Compressor — Shrink photos and graphics by 50–90% without visible quality loss.
  • Favicon Generator — Make a complete favicon package from a logo, a letter or an emoji: a multi-size favicon.ico, Apple touch icon, Android/PWA icons, a Webflow webclip, the web manifest and the HTML tags to paste.

Frequently asked questions

How do I resize an image without losing quality?
Scaling down always discards pixels, but with high-quality resampling the result looks just as sharp at its new size. Avoid upscaling, and use PNG or a high quality setting (85–95) for JPEG/WebP if you plan to edit the file further.
How do I keep the aspect ratio?
Leave Lock aspect ratio ticked and change only the width or the height — the other value is calculated from the original proportions. Presets turn the lock off because they define both sides.
What size should an Open Graph image be?
Use 1200×630 pixels (1.91:1). It displays sharply on Facebook, LinkedIn, Slack and in X’s large summary card. Keep important text away from the edges because some apps crop slightly.
Can I resize an image to an exact size without cropping?
Yes — choose Fit inside. The whole image is scaled to fit and the remaining space is filled with your background colour, or left transparent when exporting PNG or WebP.
Is my photo uploaded anywhere?
No. The image is processed with the Canvas API inside your browser tab and the download is generated locally.

Related tools