Image Resizer

Resize a JPG, PNG or WebP image to exact pixel dimensions, by percentage, or by longest side — all in your browser. Nothing is uploaded.

Drag an image here or click to browse

JPG · PNG · WebP · GIF · BMP · AVIF

How image resizing works

When you open an image, the browser decodes it into raw pixels using createImageBitmap(). The tool then creates an HTML canvas at your target dimensions and draws the image onto it using ctx.drawImage(), which scales the pixels using the browser's built-in bilinear interpolation. Finally, canvas.toBlob() encodes the result to JPEG, PNG or WebP — and everything stays in your tab; nothing is sent to a server.

  • Exact dimensions: stretches or shrinks to precisely the width and height you enter. With the aspect-ratio lock on, the image fits inside the box without distortion.
  • By percentage: scales both dimensions by the same factor (e.g. 50% = half the width and half the height = quarter the pixel count).
  • Fit within: resizes the longest side to the value you set, keeping the original proportions. The other side scales down automatically.

Common exam and form photo sizes (India)

Exam / PortalPhoto sizeSignature size
SSC (CGL/CHSL/MTS) 200 × 200 px, max 50 KB, JPEG 140 × 60 px, max 20 KB, JPEG
IBPS (PO/Clerk) 200 × 200 px, max 50 KB, JPEG 140 × 60 px, max 20 KB, JPEG
UPSC Civil Services 300 × 300 px, max 50 KB, JPEG 300 × 80 px, max 20 KB, JPEG
NEET / JEE 3.5 × 4.5 cm (~200 px+), max 100 KB 3.5 × 1.5 cm, max 30 KB
Railway (RRB) 150 × 150 px, max 40 KB, JPEG 150 × 50 px, max 20 KB, JPEG
State PSC (varies) 200 × 230 px or 3.5 × 4.5 cm 140 × 60 px typical

Always check the official notification before uploading — requirements change between exam cycles. Use the preset buttons above to apply the required dimensions in one click.

Tips for best results

  • Resize before compressing. Resize to the exact pixel dimensions first, then use the Compress to Target Size tool to hit the KB limit — this order gives the highest quality.
  • Use JPEG for exam uploads. Most government and exam portals require JPEG. PNG and WebP are fine for web use but may be rejected by upload forms.
  • Avoid upsizing a small photo. Enlarging a low-resolution image makes it blurry. Start from the highest-quality original you have.
  • Quality 80–90 for photos. For JPEG output, 80–90 is the sweet spot — visually identical to 100 but much smaller. Drop to 70 only if you need to hit a tight KB limit.
  • PNG stays lossless. The quality slider applies only to JPEG and WebP. PNG is always re-saved without quality loss.

Resize vs compress — what you need

GoalUse
Change pixel dimensions (e.g. 3000 × 2000 → 200 × 200)This tool — Image Resizer
Reduce file size by lowering quality (keep same dimensions)Image Compressor
Hit an exact KB limit (e.g. must be under 50 KB)Compress to Target Size
Convert HEIC (iPhone) photo to JPGHEIC to JPG

Frequently asked questions

Is my image uploaded to a server?
No. The image is loaded, resized and encoded entirely in your browser using the built-in Canvas API — it never leaves your device and is never transmitted to any server. This makes it safe for ID photos, passport pictures, signature images and any private document you would not want to share online.
What is the difference between resizing and compressing?
Resizing changes the number of pixels in the image — a 3000 × 2000 px photo resized to 200 × 200 px has far fewer pixels and will always be a smaller file. Compression (quality reduction) keeps the same pixel count but throws away fine detail to shrink the file. For exam uploads you usually need both: resize to the required pixel dimensions first, then apply quality compression to hit the KB limit. The Image Compressor and Compress to Size tools on this site handle the KB limit step.
Will resizing reduce the image quality?
Downscaling (making an image smaller) always loses some detail because pixels are merged. The canvas renderer uses bilinear interpolation, which produces smooth edges. For exam photos and profile pictures this is perfectly acceptable. Upscaling (making an image larger) cannot add real detail and will look blurry or pixelated — most exam portals reject oversized uploads anyway, so always resize to the exact required dimensions rather than upsizing a small photo.
Does the "Fit within" mode distort the image?
No. "Fit within" shrinks the image so its longest side equals the value you set, keeping the original aspect ratio. Neither side will ever be stretched or cropped. For example, a 3000 × 2000 px photo with "Fit within 1280 px" becomes 1280 × 853 px — it fits the limit without any distortion.
Can I resize to an exact width and height without distorting?
In "Exact dimensions" mode with the aspect-ratio lock ON, the image is resized to fit inside the box you specify while keeping its proportions — the result may be slightly smaller than your target on one side. With the lock OFF, the image is stretched to exactly the width and height you set, which can distort it. If a form requires an exact pixel size (e.g. 200 × 200), you may need the image to already be square, or to crop it first.
Does it strip EXIF or GPS data?
Yes. Re-encoding through the canvas produces a clean image with no EXIF block, so the camera model, capture date and GPS coordinates are removed automatically. This is a privacy benefit when sharing photos. Keep your original file if you want to preserve that metadata.

Related tools

Explore more tools

Browse all 42 tools →