Image editors · Passport and visa photo files
Get a passport photo into the KB limit and the right pixels.
Portals ask for pixels and a file size. Pick a millimetre size, set the largest KB your portal allows, and the photo is cropped, scaled and compressed on your device. It does not judge whether the photo meets the passport rules.
Two numbers every upload portal asks for
A passport or visa portal typically wants a width and height in pixels and a file size in kilobytes, often as a range. The printed photo is specified in millimetres. This page connects them: millimetres at a stated dots per inch give pixels, and a quality search gives the file size.
The arithmetic is simple. Pixels = millimetres divided by 25.4, times dpi. So 50 by 70 mm at 300 dpi is 590.55 by 826.77, which rounds to 591 by 827 pixels. 35 by 45 mm at 300 dpi is 413 by 531. Two inches at 300 dpi is 600. These presets are conversions of physical sizes, not rules published by an agency. Official digital requirements differ by country and change; always follow the instructions on the page that issued your application.
What one official source says
As one verifiable example, the UK government states that an online passport photo must be at least 600 pixels wide and 750 pixels tall and between 50 KB and 10 MB. Note the lower bound: this tool enforces a maximum only, so a very simple image could land under a portal's minimum. Check the result line and use the Image size finder if a minimum matters. Canada.ca specifies a printed photo of 50 by 70 mm with a face height of 31 to 36 mm, which the 50 by 70 preset converts to pixels. Neither figure is a guarantee for another country or for a different application route.
How the file size gets controlled
You choose either an exact pixel size from the menu (or by typing width and height) or "keep my pixels". With an exact size, the photo is centre-cropped to that shape, scaled, and then encoded at the highest JPEG quality that stays at or under your KB limit. The pixels never change, only quality, so the output matches the dimensions a portal demands. If even the lowest quality is over the limit, no file is made and the tool tells you the smallest size it reached. In that case raise the limit or choose smaller pixel dimensions.
Small pixel sizes of a plain-background portrait often fit under a generous limit at high quality, so the limit only pushes quality down when the photo is detailed or noisy. The result line always shows what happened.
What this tool deliberately does not do
- It does not detect faces, centre the head, measure head height or check the background colour, lighting, shadows, glasses or expression. A photo can pass the pixel and KB check and still be rejected for the rules. For Canada use the passport photo checker to line up the face guide first.
- It does not remove or replace backgrounds, retouch skin or edit the face. Many authorities require an unaltered photo.
- It centre-crops, so a head that is off-centre may be cut. Crop yourself first with the image cropper if the framing matters.
- It does not add metadata or a colour profile.
A worked example
You photographed yourself against a white wall on an iPhone; the file is HEIC at 3,024 by 4,032 pixels. A portal wants 413 by 531 pixels at no more than 100 KB. Choose the file, pick "35 x 45 mm at 300 dpi (413 x 531 px)", change the limit to 100 KB, and press Resize. The tool decodes the HEIC, crops the centre to the 413 by 531 shape, scales it, and reports the size reached and the JPEG quality used. At those dimensions a plain-background portrait very often fits easily, so quality stays high and the limit never bites; the result line tells you for sure. If you need a minimum size, add detail by choosing larger pixels, not by padding the file.
Common mistakes
- Resizing a screenshot of the photo rather than the original file.
- Cropping off the top of the head. Check the preview before downloading.
- Using Stretch. It changes the face proportions; leave the default of crop to fill.
- Taking a preset as official. Confirm the pixel size on the portal itself.
Frequently asked questions
Is my image uploaded to shrink it?
No. The photo is decoded, resized and re-encoded in this page on your device, inside a sandboxed frame whose security policy blocks network requests. Only you have the file.
What is the passport photo size in KB?
There is no single answer. File size limits are set by each portal, and some set only a maximum while others set a range. For example, the UK online photo service states 50 KB to 10 MB. Use the limit your own application states.
How do millimetres become pixels?
Divide the millimetres by 25.4 to get inches and multiply by the dots per inch. 50 mm by 70 mm at 300 dpi is 591 by 827 pixels. The presets do this for you.
Does this check that my passport photo is acceptable?
No. It does not detect faces, measure head size or check background, lighting or expression. It only resizes and compresses. Use the official requirements and, for Canada, the passport photo checker for framing.
My portal wants a minimum file size too. What do I do?
This tool enforces a maximum only. If the result is below a required minimum, choose larger pixel dimensions or a lower-compression source and check again.
Can I use an iPhone HEIC photo?
Yes. HEIC is decoded in this page and saved as a JPG, with orientation applied.
Is my photo sent to a server?
No. Cropping, scaling and compression all run inside this page in a sandboxed frame that blocks network requests, which matters for an identity photo.
Can I print the result as a passport photo?
Resizing for upload is different from print. The pixel presets assume 300 dpi, which suits printing, but print shops and authorities have their own rules about paper, framing and unaltered photos.
Sources
Checked
- GOV.UK: Photos for passports — online photo must be at least 600 x 750 pixels and between 50 KB and 10 MB (retrieved 2026-10)
- ITU-T T.81 (JPEG) — the lossy coding whose quality value this tool searches (retrieved 2026-10)
- MDN: HTMLCanvasElement.toBlob() — how the canvas produces a JPEG at a chosen 0 to 1 quality value, which is the dial this tool searches (retrieved 2026-10)
- MDN: createImageBitmap() — decodes the chosen file and applies its stored orientation (retrieved 2026-10)
- Apple: Capture formats on iPhone, iPad and Mac — iPhones save HEIF by default; Most Compatible saves JPEG (retrieved 2026-10)
- libheif (strukturag) — LGPL-3.0 HEIC decoder loaded only when a HEIC file is chosen and the browser cannot decode it (retrieved 2026-10)
- libheif-js — unmodified WebAssembly build of libheif 1.19.8 (retrieved 2026-10)
Runs entirely in your browser. Your files are not uploaded, stored or sent anywhere.