Skip to main content

Image Target Size Compressor - compress a picture to a target KB size locally

Compress one image to a target KB size locally with quality search, automatic downscaling, preview, and download.

  • Runs locally
  • Category Image
  • Best for Checking file type, size, metadata, and obvious mismatch signals before sharing.
Drop one image here, or browse
JPG, PNG, WebP, GIF input. Local processing only.
Output format
Original
Choose one image first.
Output
Output preview appears after compression.
Original size
-
Output size
-
Error
-
Output dimensions
-
Attempts
-

100% local. Nothing leaves your browser. Canvas re-encoding strips EXIF metadata.

What this tool does

A browser-only image compressor for the practical case where a form, CMS, marketplace, or chat app says "image must be under 200 KB" and you need a result close to that number. Upload one image, enter the target size in KB, choose JPEG, WebP, or PNG, and the tool re-encodes the image locally with Canvas. For JPEG and WebP it binary-searches encoder quality, then shrinks the longest edge only when quality alone cannot hit the target. The result panel shows original size, output size, byte error, output dimensions, and attempt count so you can see exactly how hard the browser had to work. PNG is supported, but the interface clearly notes that PNG is lossless and may not reach very small targets without switching format. No upload, no account, no server-side image handling.

Tool details

Input
Files + Numbers
The page exposes text boxes, numeric controls, file pickers, or structured inputs depending on the tool.
Output
Live result + Download + Preview
The result area focuses on usable output, with copy, download, or preview actions when supported.
Privacy
Browser-side processing
The main tool logic does not call an external API, so inputs normally stay in the current tab.
Save / share
No account required
Open the page and use it; whether results survive refresh depends on the tool.
Performance budget
Initial JS <= 28 KB
No WASM budget is declared, keeping the tool quick to open on mobile.
Best fit
Image · Designer
Category and role tags drive related tools, internal links, and quick fit checks.

How to use

  1. 1. Input

    Paste or drop your content into the tool panel.

  2. 2. Process

    Click the button. All processing is local in your browser.

  3. 3. Copy / Download

    Copy the result or download to disk in one click.

How Image Target Size Compressor fits into your work

Use it before upload, handoff, archive, support review, or any moment where a file needs one local check before it leaves your machine.

File jobs

  • Checking file type, size, metadata, and obvious mismatch signals before sharing.
  • Preparing mixed folders for upload, archive, intake, or review.
  • Keeping sensitive files in the browser instead of sending them to an account-based service.

File checks

  • Do not treat the extension alone as proof of the real file type.
  • Review metadata before a file goes to customers, vendors, or a public page.
  • Keep the original file until the copied, converted, or exported result is verified.

Good next steps

These links move the current task into a more complete workflow.

  1. 1 Image Compressor (Local) Image compressor — squeeze JPG/PNG/WebP without server upload, with quality slider, batch mode, file size comparison. Open
  2. 2 Image Resizer Image resizer — resize JPG/PNG/WebP by pixels/%/preset, fully client-side, no upload. Open
  3. 3 Image Format Converter Image format converter — JPG ↔ PNG ↔ WebP ↔ AVIF, batch + transparent background handling, 100% client-side. Open

Real-world use cases

  • Get an application photo under a strict 200 KB upload limit

    A school, visa, or government form rejects anything above 200 KB, but your phone portrait is 3.8 MB. Upload it, set the target to 200 KB, choose JPEG, and let quality search run first. If the original dimensions are still too heavy, the tool downscales only as much as needed and reports the final width, height, output size, and error so you know whether the form should accept it.

  • Prepare a product image for a marketplace size gate

    Some marketplace dashboards accept large photos visually but impose a quiet byte cap during upload. Use WebP when the marketplace allows it, or JPEG when it does not. The result's "attempts" count tells you whether quality alone was enough or whether the compressor had to shrink dimensions, which helps catch images that became too small for zoomable product galleries.

  • Make a support screenshot small enough for a ticket system

    Ticket tools and CRMs often cap attachments around 1 MB, while a full-screen PNG can be several megabytes. Try PNG first if text sharpness matters; if the warning says the target is not reached, switch to WebP and keep the same target. You get a readable file that fits the support portal without sending the screenshot through a third-party compressor.

  • Create a near-exact KB image for email or chat

    When an old email gateway or chat app rejects big images, guessing quality sliders wastes time. Enter the actual attachment limit, compress once, and inspect the output size plus byte error. Because the algorithm prefers the closest under-target output, you avoid both rejection from oversized files and unnecessary extra quality loss from over-compressing.

  • Compare JPEG versus WebP for the same target

    Run the same source once as JPEG and once as WebP with the same KB target. The preview, output dimensions, and attempt count make the tradeoff visible: WebP may keep larger dimensions at the target, while JPEG may be required by older upload systems. This gives you evidence before deciding which file to send.

Common pitfalls

  • Setting a target far below what the visual use case can tolerate. A 20 KB target for a detailed 4000 px photo will force heavy downscaling; raise the limit if the destination allows it.

  • Choosing PNG for normal photos. PNG is lossless and usually huge for photographic content, so strict KB targets are better served by JPEG or WebP.

  • Treating the target as a quality setting. The algorithm may lower quality or dimensions depending on the source image; always check the output preview and dimensions before uploading.

  • Re-compressing an already compressed result repeatedly. Each JPEG/WebP pass can lose detail; keep the original and rerun from it when changing targets.

Privacy

The selected image is processed with local browser APIs only: Image, Canvas, Blob, and object URLs. The tool does not upload the image, does not call an external compression service, and does not store your file. Canvas output removes EXIF metadata as a side effect, but the downloaded filename is based on your original filename, so rename sensitive files before sharing them.

FAQ

Tool combos

Folks in your role tend to reach for these alongside this tool.

Made by Toolora · 100% client-side · Updated 2026-06-14