Skip to content
LocalFileTools

Target KB binary search & exact pixel presets · Runs in Canvas

Compress & Resize Image

Shrink JPG, PNG, and WebP images to an exact KB target like 50 KB, 100 KB, or 200 KB, or resize to exact pixels and social or passport presets. Everything runs locally in your browser.

Choose a JPG, PNG, or WebP image

Drop an image here or click to browse

JPG, PNG, or WebP · Resize & target-KB binary search run locally in HTML5 Canvas

Output format
Dimensions
Compression target
80%
Smallest fileBalanced (80%)Highest detail

Before & after compression stats appear here

Drop an image on the left (or click Load sample photo) to see real-time byte savings, exact output dimensions, and a preview before downloading.

Hit strict portal upload limits without guesswork

Government portals, visa forms, job applications, and CMS uploads frequently reject photos over 50 KB, 100 KB, or 200 KB. Instead of exporting five times at random quality numbers, pick Target size (KB) and let our local binary search automatically find the sharpest JPEG or WebP quality that lands right below your ceiling.

Built-in pixel presets for web, social, and ID photos

  • 2×2 Passport (600×600): standard 2×2 in digital photo at 300 DPI.
  • Square Icon (300×300): crisp avatars, directory thumbnails, and badges.
  • Social Square (1080×1080): Instagram and LinkedIn square posts.
  • Open Graph (1200×630): link share cards and blog cover banners.
  • Full HD (1920×1080): 16:9 presentation slides and hero graphics.

JPEG vs. WebP vs. PNG

Use WebP for the smallest web file sizes (typically 25–35% smaller than JPEG at similar visual quality), JPEG for maximum compatibility with older upload portals and email clients, and PNG for crisp screenshots or logos that require lossless edges or transparency. Need to batch convert formats or rasterize SVG files? Use our Image Format Converter.

Common questions

How does Target Size (KB) compression work?
When you pick a target like 50 KB, 100 KB, 200 KB, or 500 KB for JPEG or WebP, the tool runs a fast binary search over the browser's Canvas encoder quality setting to find the highest possible visual quality whose output fits under your KB limit.
Why does PNG ignore the quality slider?
PNG is a lossless format — browsers always encode full pixel data without lossy compression. To hit a strict KB limit like 100 KB or 200 KB, choose JPEG or WebP, or reduce the image's pixel dimensions.
What is the 2×2 Passport (600×600) preset?
US and many international passport portals require a square 2×2 inch photo at 300 DPI, which equals 600 × 600 pixels, often under 240 KB in JPEG format. Selecting the 2×2 Passport preset with Center Crop produces an exact 600 × 600 px image without stretching.
What is the difference between Center Crop and Fit Inside for presets?
Center Crop fills the exact target preset width and height (such as 1200×630 or 600×600) by trimming excess edges symmetrically without distorting the image. Fit Inside preserves 100% of the photo by scaling it down to fit within the target box.
Are my images uploaded to any server?
No. Resizing and compression execute exclusively inside your browser via the HTML5 Canvas API. Your photos — including passport headshots and personal documents — never leave your device.