Novexa Studio
100% Free & Private — Zero Server Uploads

Free Online Tool Studio

Remove hidden location & metadata from photos, convert PDFs, compress images — 24 tools in all. Your files are never uploaded; everything runs in your browser.

Resize Image to KB: Pixel Size, KB Limit and DPI

Fit a photo to the pixel size, file-size limit and DPI an online form asks for, in one step.

Novexa Studio runs entirely in your browser; no file you open here is ever transferred to or stored on our servers. Using these tools to forge documents, commit fraud or infringe copyright is prohibited. You are responsible for how you use them.

Last updated:

Three requirements that are really three different things

Upload forms tend to ask for a photo “at most 100 KB, 300 DPI, 35 × 45 mm” as if that were one setting. It is three, and they are independent:

  • The size, in pixels or in millimetres at a given DPI. This is the picture itself: how many pixels it has, and what shape it is.
  • The file size in KB: how strongly those pixels are compressed. The same 413 × 531 photo can be 40 KB or 400 KB.
  • The DPI: a number in the file header that says how large the pixels should print. It changes neither the picture nor the KB.

This tool applies all three in one pass, in that order: crop and resize, compress to the limit, write the DPI.

How the KB limit is met

The photo is saved as a JPEG at the highest quality that still fits under the limit, found by testing qualities between high and low. If you keep the original pixel size and even the lowest quality is too big, the pixel size is reduced step by step until it fits — and the result says so. A size you fixed is never changed behind your back: when the photo cannot fit at that size, you are told, with the number.

One KB is counted as 1000 bytes. Some forms count 1024; counting 1000 keeps you under the limit either way.

How many pixels fit under 20, 50, 100 or 200 KB?

There is no exact pixel-to-KB conversion: a photo of a clear sky compresses far better than one of leaves or gravel. As a rule of thumb, a JPEG photo at good quality takes about 1 to 2 bits per pixel, which gives these rough sizes:

Rough pixel sizes that fit a KB limit as a good-quality JPEG
KB limitRoughly this many pixelsFor example
20 KB0.08 – 0.16 MP400 × 300
50 KB0.2 – 0.4 MP600 × 450
100 KB0.4 – 0.8 MP900 × 675
200 KB0.8 – 1.6 MP1200 × 900

A 12-megapixel phone photo is far above all of these, which is why simply lowering the JPEG quality is not enough for a small limit: the pixel size has to come down too. With the size left on “As it is”, the tool does that for you, and only as far as the limit requires.

Millimetres, pixels and DPI

When a form gives the size in millimetres, the pixels follow from the DPI: 35 × 45 mm is 413 × 531 pixels at 300 DPI and 827 × 1063 at 600 DPI. Choose “Millimetres” and the tool works it out; the DPI calculator does the same arithmetic for any size.

What this tool does not check

Size, file size and DPI are arithmetic, and the tool gets them exactly right. Whether a photo meets an authority’s rules for ID documents — head size, background colour, lighting, expression — is another question, and this tool does not answer it. The form’s own instructions are the reference for those.

Your photo stays with you

An ID or application photo is exactly the kind of picture not to hand to a random website. Everything here happens in your browser. The output is a freshly drawn JPEG, so EXIF data from your phone — location, device, capture time — is not carried into it.

Preparing the photo for a CV? The CV maker crops it to passport shape and places it on the CV directly.

How to resize a photo to a KB limit

  1. Step 1: Add the photo

    Drag it onto the box above or click to choose it. JPG, PNG and WebP work everywhere; HEIC opens in Safari.

  2. Step 2: Set the size

    Keep the original size, or enter the pixels or millimetres the form asks for. For a fixed size, drag the frame to choose what is kept, and zoom in if needed.

  3. Step 3: Set the KB limit and DPI

    Pick the maximum file size from the form, or type your own; choose the DPI it asks for.

  4. Step 4: Prepare and download

    The result card shows the final size in KB, the JPEG quality used and the DPI written into the file, before you download.

Frequently Asked Questions

How do I reduce a photo to 100 KB?

Leave the size on “As it is”, choose 100 KB and press the button. The pixel size is kept if the photo fits at a good quality; otherwise it is reduced just enough to fit.

How do I reduce a photo to 20 KB?

Type 20 as your own KB limit. At that size the photo usually has to shrink to around 400 × 300 pixels, so if the form also names a pixel size, enter it; otherwise the tool reduces the pixels until the file fits.

Can I convert pixels to KB?

Only roughly. KB depends on the pixel count and on how much detail the photo has, so two photos of the same size can differ several times over. About 1 to 2 bits per pixel is typical for a good-quality JPEG: 1 megapixel is then around 125 to 250 KB.

What is 35 × 45 mm in pixels?

413 × 531 pixels at 300 DPI, and 827 × 1063 at 600 DPI. Choose “Millimetres” and the tool calculates it from the DPI you set.

Does changing the DPI make the file smaller?

No. DPI is a label in the header; the file size depends on the pixels and the compression. That is why the tool treats them as separate settings.

Why is my photo cropped?

A fixed size has a shape. If your photo has a different shape, part of it has to go; the frame shows which part is kept, and you can move it.

Which format is the result?

JPEG, which almost every upload form accepts and which can be compressed to a precise size. A transparent PNG gets a white background.

Is my photo uploaded?

No. It is resized and compressed in your browser and never leaves your device.

Related Tools

We built this

Need something like it?

24 tools, three languages, 185 pages — and a $0 server bill. We build corporate sites and browser-based systems for other people too.

What we build

Photos and images: more tools