Try Raino free

Compress an image to 50 KB: at the best quality that fits

Need a photo under 50 KB for a form or a page? Add it and the tool finds the highest quality that fits under 50 KB, making the image smaller only if it must. Nothing is uploaded.

Runs in your browser. Your images never leave your device.

or drop or paste them here. JPG, PNG, WebP, AVIF, GIF, BMP, HEIC.

Save as
File size

PNG is lossless, so quality does not apply. oxipng makes each file as small as PNG allows.

1 KB is 1,000 bytes here, so the file also passes checks that count 1,024.

Resize optional

Keeps the shape and never enlarges. Resized with Lanczos3 for sharp results.

Background
Metadata

Removed by default: camera, date and GPS location. Kept for JPG, PNG and WebP made from JPG, PNG or WebP.

No images yet

    Your converted images show up hereSizes before and after, quality and dimensions for every file.

    Where a 50 KB limit comes up

    A 50 KB limit is common on online application forms for photos and scanned signatures, and on old email and forum systems. Read your form's exact rule: some also ask for a set width and height in pixels.

    A 50 KB photo is small. A full phone photo will not fit at its original size, so the tool also reduces the width and height, and the row shows exactly where it landed. Passport style photos and signature scans fit easily.

    How the tool hits the target

    For JPG, WebP and AVIF it runs a binary search on quality: it tries the best quality first, then halves the range until it has the highest setting whose file is under 50 KB. If the file is still too big at a quality that looks decent (45 for JPG and WebP, 30 for AVIF), it reduces the width and height and searches again, because a smaller sharp image looks better than a large blocky one. PNG has no quality setting, so only the dimensions change.

    With Allow smaller dimensions off, it keeps the size and goes down to quality 10 instead. When a target still cannot be met, the tool says so and shows the smallest file it could make.

    How to use it

    1. Add your image

      JPG, PNG, WebP, AVIF, GIF, BMP or HEIC. Several at once is fine.

    2. Keep 50 KB selected

      Or pick another size, or type your own.

    3. Read the result

      Each row shows the final size, quality and dimensions, and says if the target was missed.

    4. Download

      One file, or all of them in a zip.

    JPG, PNG, WebP and AVIF compared

    FormatTransparencyCompressionBest forBrowsers that show it
    JPGNoLossyPhotos that must open anywhereEvery browser
    PNGYesLosslessLogos, screenshots, textEvery browser
    WebPYesLossy or losslessPhotos and graphics on websitesChrome 32, Edge 18, Firefox 65, Safari 16 (partly from 14), iOS Safari 14
    AVIFYesLossy or losslessThe smallest web imagesChrome 85, Edge 121, Firefox 93, Safari 16.4 (partly from 16.1), iOS Safari 16
    HEIC (open only)YesLossyiPhone photosSafari 17 and later only

    Format facts and browser versions read on 2 December 2026: MDN: image file type and format guide, Can I use: WebP, Can I use: AVIF, Can I use: HEIF/HEIC, Google for Developers: An image format for the Web, Apple Support: Using HEIF or HEVC media on Apple devices. Spotted something out of date? Tell us and we fix it.

    Questions people ask

    How do I compress a photo to under 50 KB?

    Add the photo with 50 KB selected. The tool finds the highest JPG quality that fits under 50 KB and, if even low quality is too big, makes the image smaller until it fits.

    My form says the photo must be between 20 KB and 50 KB. Will this work?

    The tool aims as close under 50 KB as it can at the best quality, which is normally well above 20 KB for a photo. Check the size shown before you download.

    Can a signature scan go under 50 KB?

    Yes, easily. Scans with plain backgrounds compress very well; JPG at a high quality usually fits.

    Is 50 KB counted as 50,000 or 51,200 bytes?

    This tool counts 1 KB as 1,000 bytes, so the file is under 50,000 bytes and passes either rule.

    Are my images uploaded?

    No. Decoding, resizing and encoding all run in your browser, in a background thread on your own device. Your images are never sent to Raino or anyone else, and the tool keeps working if you go offline after the page has loaded.

    Is this tool free?

    Yes. No sign-up, no watermark and no limit on the number of images.

    What happens to EXIF metadata and GPS location?

    By default it is removed: camera model, date, GPS location and the rest. Tick Keep metadata to copy the EXIF data into JPG, PNG and WebP files made from JPG, PNG or WebP. AVIF output is always saved without it.

    Built on open-source codecs

    The encoders here are the same open-source libraries that image tools such as Google's Squoosh use, compiled to WebAssembly and run on your device. A browser on its own can save JPG and PNG from a page, but not AVIF, and Safari not WebP, and its JPG encoder is simpler than MozJPEG. So the tool brings its own.

    Packaged by jSquash (Apache 2.0, licence) and libheif-js (LGPL 3.0, unmodified). Zip files are made with fflate (MIT).

    More free image tools

    Making images for ads? Let Raino make the ads

    Raino creates image ads with AI, resizes them for every placement and launches them to Meta in bulk. It also shows what your competitors are running.

    No card needed.