Skip to content

Resize a photo to the exact KB and pixels a form asks for

Type the numbers from the form, such as under 50 KB at 600 × 600 px or 20 to 50 KB at 35 × 45 mm, and download a JPG, PNG, WebP or PDF that fits. It runs in your browser, so the photo never leaves your device.

Target

JPG · under 50 KB (at most 50,000 bytes) · original pixel size · white background

PixelFit aims at 50,000 bytes or less, so the file passes whether the form counts 1 KB as 1,000 or 1,024 bytes.

Fit, background and padding white background

Saving presets is part of Pro.

Pick a photo to fit it to under 50 KB (at most 50,000 bytes).

The result appears here: the exact byte count, pixel size and quality, the size before and after, a preview and a download button.

  • No upload
  • No sign-up
  • Free batches of 25

What a KB limit does to a real photo

We saved one head-and-shoulders portrait at 15 pixel sizes and 10 JPEG quality settings and recorded every file size. These are measured bytes, not estimates; the list shows the largest measured size under each limit at quality 80.

  • ≤ 20 KB 240 × 300 px fits at quality 80: 16,035 bytes
  • ≤ 50 KB 480 × 600 px fits at quality 80: 44,599 bytes
  • ≤ 100 KB 801 × 1,000 px fits at quality 80: 98,652 bytes
  • ≤ 200 KB 961 × 1,200 px fits at quality 80: 131,773 bytes

Sample: head-and-shoulders portrait, 2,687 × 3,356 px, by Pete Souza (Official White House photo), public domain, from commons.wikimedia.org. Encoded with sharp 0.35.5 / libvips 8.18.7, measured 2026-10-31. Your photo will differ: busy detail needs more bytes than a plain background.

Measured JPEG file size by pixel size and JPEG quality (Q)
Pixels Q60 Q80 Q90
200 × 250 8.6 KB 12.2 KB 17.1 KB
400 × 500 22.8 KB 33.1 KB 47.6 KB
641 × 800 45.9 KB 67.8 KB 99.9 KB
801 × 1,000 64.0 KB 96.3 KB 145 KB
1,281 × 1,600 130 KB 210 KB 333 KB
1,601 × 2,000 187 KB 311 KB 511 KB

Each page opens the tool with the target already set, and explains what that limit means for pixels and quality.

Built for upload forms, not for photo editing

File size, pixels, privacy and volume: what matters when a form sets the rules, and nothing else in the way.

  • An exact file size

    Type a maximum, or a minimum and a maximum, in KB. PixelFit tries quality settings until the file lands inside the range. It reads the maximum as 1,000-byte kilobytes and the minimum as 1,024-byte ones, so the file passes either way a form counts.

  • Exact pixels or print size

    Enter pixels, or millimetres, centimetres or inches with a DPI. With a width and a height set, PixelFit crops to fill by default, so the file has exactly those pixels without being stretched. Pad with a background colour to keep the whole photo at that size, or pick fit inside to keep it whole within the frame, smaller on one side.

  • Your photo stays with you

    Opening, resizing and compressing all happen in your browser with its built-in canvas. Nothing is sent to a server, which is what ID photos, signatures and scans deserve.

  • Free batches of 25

    Drop up to 25 images at once, apply one target to all of them and download each file on its own. No account, no watermark and no daily quota.

From photo to upload-ready file in three steps

  1. 1

    Add your photo

    Drop it on the panel, paste it or pick it from your phone. JPG, PNG, WebP, GIF, BMP, AVIF and SVG open in current browsers; HEIC opens where the browser can read it, such as Safari.

  2. 2

    Type the numbers from the form

    Set the KB limit and the pixel or print size, or start from a page for your exam, visa or portal with the values already filled in.

  3. 3

    Check it and download

    See the old and new size in KB, the pixels and the quality used, then save a file named after the size it came out at, such as photo-600x600-50kb.jpg.

Facts you can check

  • Nothing is uploaded

    Your files are read and processed by your own browser. The site has no upload server to send them to.

  • Numbers you can check

    Every result shows the final byte count, the pixel size and the quality used, so you can confirm it meets the form before you submit.

  • Specs with sources

    Form and portal pages link the official notice they come from and the date it was checked. Requirements change, so verify with the official notice.

  • Clear pricing

    Single photos and batches of 25 are free. Pro is $12 one-time for bigger batches, ZIP files and saved presets.

Free for everyday uploads. Pro for bulk work.

Single photos and batches of 25 cost nothing. Pro is $12 one-time for batches of up to 500 in one ZIP, saved presets, multi-photo PDFs under a size and HEIC batches.

Free

$0no account

Every target and format, for single photos and batches of 25.

  • Exact KB targets, including min and max ranges
  • Exact pixels, or mm, cm and inches with DPI
  • JPG, PNG, WebP and PDF output
  • Batches of up to 25 with a download per file
Resize a photo free
Early access: 30% off

Pro: batches and presets

$12one-time

For people who prepare photos in bulk. One payment, and Pro stays unlocked in the browser you buy it in.

  • Batches of up to 500 images in one ZIP
  • Saved presets for the forms you use
  • Several photos merged into one PDF under a size
  • HEIC batches where the browser opens HEIC
  • Runs on your device, like the free tool

Frequently asked questions

Short answers about KB limits, privacy, quality and Pro.

How do I compress a photo to 50 KB?

Type 50 in the maximum KB box, choose JPG and drop your photo. PixelFit tries quality settings until the file is just under 50 KB and shows the final size in bytes. If the lowest sensible quality is still too big and you have not locked the pixels, it reduces the pixel size step by step and tells you what it changed.

Why does a form reject a file that says 50 KB?

Some forms count 1 KB as 1,024 bytes and others as 1,000 bytes, so a file shown as 50 KB on your computer can be 51,000 bytes to the form. PixelFit aims under the smaller number, 50,000 bytes for a 50 KB limit and 1,000,000 bytes for a 1 MB limit (typed as 1024 KB), so the file passes either check. The result shows the exact byte count.

Can I set a minimum as well, such as 20 to 50 KB?

Yes. Enter both numbers. If the photo comes out below the minimum, PixelFit raises the quality first. For small, plain images that still fall short, you can choose to pad the JPEG with an invisible comment block: it adds bytes without changing a single pixel, and the tool says when it did.

Are my photos uploaded anywhere?

No. The image is opened, resized and compressed inside your browser, and the file never leaves your device, which matters for faces, signatures and documents. The site counts anonymous page views, whether the tool produced a result and clicks on the Pro offer, without cookies; the privacy policy lists exactly what is recorded.

Is PixelFit free?

Yes. Single images, every KB and pixel target, all four output formats and batches of up to 25 images with a download per file are free, with no account and no watermark. Pro is an optional upgrade at $12 one-time for batches of up to 500 images in one ZIP, saved presets, multi-photo PDFs under a size and HEIC batches.

Does it work on my phone?

Yes, in current browsers on Android and iPhone. An iPhone usually hands the browser a JPEG when you pick a photo from the library, so HEIC rarely gets in the way there. On other devices a HEIC file opens only where the browser can decode it, and PixelFit says so plainly when it cannot.

Will a smaller KB size make my photo blurry?

Only as much as the limit forces. PixelFit keeps the highest quality that fits and shrinks in several halving steps so edges stay clean. A tight limit on a large pixel size, such as 10 KB at 1200 px wide, will show blocky artefacts; at the same KB, a smaller pixel size usually looks sharper.

Browse by what the form asks for

Open the image resizer

Founder price

PixelFit Pro opens soon

Lifetime Pro: batch of up to 500 images to an exact-KB ZIP, saved presets per form, PDF-under-size merge and HEIC batch. Reserve the founder price: 30% off $12 one-time when Pro opens. No payment is taken now. Everything on the free plan keeps working today.

We'll e-mail you once when Pro opens, with your founder price. No account, no newsletter. See the privacy policy.