How to Resize an Image to Exact Pixel Dimensions

Image GuidesBy the FixDoks team7 Oct 20265 min readChecked 26 Sep 2026

A cropped photo being resized to an exact pixel size for an online form.
Quick answer

To resize an image to exact pixel dimensions without distortion, crop it to the same aspect ratio as your target size first, then resize. Stretching a photo directly to a different ratio squashes faces and objects. This crop-first method is what exam and government forms expect from a photo upload.

Common mistakeResizing without matching the aspect ratio first
FixCrop to the target ratio, then resize
Typical exam size200x230 px
Format expectedJPG/JPEG for most Indian forms

To resize an image to an exact pixel size like 200x230 without distorting it, first crop the photo to the same width-to-height ratio as your target, then resize the cropped version. Resizing directly from a different ratio stretches the image and squashes faces or objects.

Why "just resize it" goes wrong

A photo taken on a phone is usually a 4:3 or 16:9 rectangle. A form asking for 200x230 pixels wants a taller, narrower rectangle, a width-to-height ratio of 20:23. If you force your 4:3 photo straight into 200x230, the resizer squeezes the width to fit, and every face in the photo comes out visibly narrower than it should.

This is a common reason form photos look "distorted" even though the uploader picked the right pixel size. The pixel count was correct, the proportions were not.

Crop your photo to the right proportions first with the image cropper, which offers free crop or fixed ratios such as 1:1, 4:3 and passport 35x45 mm.

Step by step: the crop-first method

  1. Note the exact pixel size the form wants, for example 200x230 or 240x240.
  2. Open the photo in the cropper and choose a crop box matching that ratio, or use free crop and match the shape by eye.
  3. Drag the crop box so the subject (usually a face) is centred and not cut off at the edges.
  4. Save the cropped image.
  5. Open the cropped image in the resizer and set the exact pixel dimensions the form asks for.
  6. Check the preview at full size to confirm nothing looks stretched or squeezed.
  7. Download and check the file size, since most forms also enforce a KB range alongside the pixel size.

What "pixels" actually controls, versus KB and DPI

Pixel dimensions describe how many dots wide and tall the image is on screen, which is what most online forms check first. File size in KB is a separate number driven by compression, and DPI (dots per inch) only matters when the image gets printed, not when it is just viewed or uploaded on screen. For the full picture on how these three numbers interact, see pixels, DPI and KB explained.

A wide photo resized straight to 100 x 100 px, which squashes it, and cropped to a square first
Resizing straight to a square squashes the photo. Cropping a square first keeps everything in proportion.Real resizes by FixDoks. Sample photo: Soumalya Halder on Pexels (Pexels License)

A useful way to remember the difference: pixels are about the grid the image is made of, KB is about how much that grid weighs as a file, and DPI is a printing instruction that a screen simply ignores. Getting the pixel size right is the step most people skip, since it is easy to assume a photo "looks fine" without checking its actual dimensions.

Using this for exam and government photo forms

Most Indian exam and government upload fields specify an exact pixel size alongside a KB range, and the two together decide whether your file passes. If you are filling an SSC, IBPS or similar form, check that exam's own spec page for its precise numbers, for example SSC CGL photo and signature size or passport photo size in India, since sizes vary between forms even when the crop-first method stays the same.

Once cropped, hit an exact pixel size with the image resizer, which lets you type the width and height directly.

Try it here

Image resizer: set exact pixels

Add a photo, type the width and height in pixels, and download.

Runs in your browser. Your file never leaves your device. Open the full Resize Image page

Fixing a photo that already looks stretched

If you have already resized a photo and it looks squashed, do not try to fix it by resizing again from the distorted version, since the proportions are already wrong and a second resize only compounds the problem. Go back to the original photo, crop it properly to the target ratio this time, and resize from that fresh crop.

Choosing the right source photo before you start

A resize can only work with the detail already in the original photo, so start with the highest resolution version you have, not a copy that has already been through WhatsApp or a screenshot. Messaging apps recompress images heavily, which throws away detail that no resizer can bring back later.

Cards: 6 cm at 300 DPI is 709 pixels, 2 cm at 300 DPI is 236 pixels
A size in cm needs a DPI before it means anything in pixels.Made by FixDoks from the examples in this guide

If your only copy is a WhatsApp forward or a scan from someone else's phone, take a fresh photo yourself where possible, using good daylight and holding the camera steady, rather than working from a low-quality forward. This matters most for signatures and small text, where a blurry source photo turns into an unreadable upload no matter how carefully you crop and resize it afterward.

iPhone photos default to the HEIC format, which some resizers or upload forms do not accept directly. If your resizer struggles to open the file, switch the camera to shoot JPG instead through Settings, Camera, Formats, Most Compatible, so future photos are already in the format most forms expect.

Batch resizing the same photo for several forms

If you are applying to more than one exam or portal in the same season, you often need the same photo at several different pixel sizes, such as 200x230 for one form and 240x240 for another. Keep your cropped, well-lit original saved separately, then resize fresh copies from that same crop for each form rather than resizing an already-resized file a second time, which loses sharpness with every extra step.

Common mistakes

  • Typing the exact pixel width and height into a resizer without cropping first, which stretches the image to fit.
  • Cropping too tightly around a face, cutting off the chin or forehead once the form's aspect ratio is applied.
  • Confusing pixel dimensions with the file's DPI setting, which does not matter for on-screen uploads.
  • Resizing a photo up to a much larger pixel size than the original, which makes it blurry rather than sharper.
  • Forgetting to check the KB size after resizing, since a form can reject a correctly sized image that is still too heavy or too light in KB.

Tools for this

Frequently asked questions

Why does my photo look stretched after resizing to exact pixels?

This happens when the original photo's aspect ratio does not match the target size. Crop the photo to the same ratio as your target dimensions first, then resize.

Do I need to crop before every resize?

Only when the target width-to-height ratio is different from your original photo's ratio. If the ratios already match, you can resize directly without cropping.

What is the difference between pixels and DPI?

Pixels describe the image's actual width and height on screen. DPI (dots per inch) only affects how the image looks when printed and is not checked by most online upload forms.

Can I resize a small photo up to a bigger pixel size?

You can, but the result usually looks softer or blurry since the resizer has to invent extra detail that was not in the original. It is better to start from as high a resolution original as possible.

Will resizing to exact pixels also fix my file size in KB?

Not automatically. Pixel dimensions and file size in KB are controlled separately, so check the KB size after resizing and compress further if the form has a strict range.

Sources

Rules and limits change. Always check the latest official notification or portal before you submit a form.