Image Optimization

Image Size Guide: Pixels, KB, Formats and Quality

Cover illustration for: Image Size Guide: Pixels, KB, Formats and Quality
Quick answer

Prepare an image by separating pixel dimensions from stored file size. First choose the required shape and dimensions, then a compatible format and compression level. Check the saved file's bytes, transparency and readability. A target in KB alone does not tell you whether a photo will pass an upload form, because forms also check dimensions and format. This guide is the hub for our image tools: Resize Image, Compress Image, Convert Image Format, Image Size Converter, Rotate Image and Flip Image.

Images fail uploads for four reasons: wrong pixels, wrong bytes, wrong format or wrong orientation. Each has its own fix, and doing them in a sensible order avoids repeated saves that degrade quality. Below is the workflow we recommend, with links to the detailed articles.

Read dimensions, format and size rules

Write down every rule the destination states: width and height in pixels, maximum and minimum file size in KB, allowed formats, background colour and orientation. Treat them as separate checks. Typical example: "JPG, 200 × 230 pixels, 20 to 50 KB". Meeting one rule does not meet the others.

Understand pixels versus KB

Pixels are the dots across and down. Kilobytes are the storage the file takes. They are related, since more pixels usually mean more bytes, but they are not the same. Format and compression change bytes without changing pixels. Print size adds a third idea: pixels per inch. The article pixels versus KB versus print size explains the relationship with examples.

Try it: Resize ImageChange an image's width and height in pixels.
Open Resize Image →

Resize without distortion

With Resize Image, type the new width and let the height follow so proportions are kept. If the target has a different shape, crop first, then resize. Shrinking is safe. Enlarging cannot add detail. Resize before compressing, since fewer pixels give a bigger saving than extra compression.

Choose JPG, PNG or WebP

FormatBest forTransparency
JPGPhotographs, formsNo
PNGLogos, screenshots, graphicsYes
WebPWeb imagesYes

Convert with the general tool or the dedicated pages: JPG to PNG, PNG to JPG, WebP to JPG, WebP to PNG, JPG to WebP and PNG to WebP. Read JPG to PNG, PNG to JPG and WebP for what changes in each case. Renaming a file's extension does not convert it.

Compress toward the maximum size

Compress Image re-saves a photo as a JPEG at Light, Balanced or High compression. For a specific limit, Image Size Converter steps quality down until the file is at or under your target and tells you whether it got there. If it cannot, reduce pixels and run it again. Details are in how to compress an image without ruining it and how to reduce image size to 50 KB, 100 KB or 200 KB.

Fix rejected uploads

MessageLikely causeFix
File too largeToo many pixels or too much qualityResize, then compress
Wrong dimensionsDifferent shape or sizeCrop, then resize exactly
Wrong formatRenamed extension or WebPConvert properly
Image sidewaysOrientation flagRotate Image; see rotating an image
Image looks reversedMirrored selfieFlip Image; see flipping an image
Too smallOver-compressedUse a higher target or lighter quality

Review image metadata and clarity

The iLikePDF image tools redraw the image on a canvas, so camera and location metadata are not carried into the output. That can help privacy. But it also means details such as capture date are lost. Check that the final image is clear: zoom to 100%, look at faces and text, and confirm the file size and dimensions in your file manager. Keep the original, and name the final file for the task.

A repeatable image preparation routine

Use the same order every time and you will rarely need more than one attempt.

  1. Write the rules from the destination: pixels, KB range, format, background, orientation.
  2. Fix orientation with Rotate Image or Flip Image if needed.
  3. Crop to the right shape in a photo editor. Resizing cannot change the shape without distortion.
  4. Resize to the exact width and height.
  5. Convert to the required format if it differs. For photographs, JPG is the usual answer.
  6. Compress with Compress Image, or use Image Size Converter to aim for a maximum in KB.
  7. Check the file in your file manager: size, dimensions and extension. Open it and look at faces and text at 100% zoom.
  8. Upload, and keep the original and the final file in a folder named for the task.

Which article to read next

If your problem isRead
A photo needs exact dimensionsPixels vs KB vs print size
A file must be under a KB limitReducing image size to 50 KB, 100 KB or 200 KB
A format is rejected or a background turns whiteJPG to PNG, PNG to JPG and WebP
An image looks rough after savingCompressing without ruining an image
The photo is sidewaysRotating an image
The photo is mirroredFlipping or mirroring an image

Common patterns for forms and portals

Government, exam and job portals tend to repeat the same demands. Passport-style photos usually have a fixed pixel size, a plain background and a file limit between about 20 and 100 KB. Signatures are often small, wide images with a tight limit. Identity scans may be allowed as larger JPG or PDF files. Because rules differ between sites and change over time, always read the current instructions on the page you are using instead of relying on numbers from memory or from another applicant's post.

When you find a combination that works, save the final file and a short note of the steps. The next time the same portal asks for a photo, you can repeat the process in a few minutes. If a portal repeatedly rejects a file that meets every stated rule, try a different browser, make sure the extension is lower-case and check that the file name has no spaces or special characters.

Privacy and clean-up

Images of yourself and your documents are personal data. The iLikePDF image tools process files in your browser, and their code makes no upload request, but the results are saved on your device. Delete working copies from shared computers, and avoid leaving copies in synced folders or chat backups. If you share an image publicly, remember that metadata can reveal where and when a photo was taken; the tools here do not carry that metadata into the output, but other software might.

Frequently asked questions

Related tools

Keep reading

Try it: Resize ImageChange an image's width and height in pixels.
Open Resize Image →