Category: Image tools
Resize Image to 35x45mm and Other Document Sizes
Four print presets, three resolutions, exact pixel maths, centred cover crop, JPEG out
Pick 35x45 mm, 30x40 mm, 40x60 mm or 2x2 inches at 150, 300 or 600 DPI, see the exact pixels, then centre-crop and download a JPEG. No background removal.
The photo is cropped and exported on your device. Check the exact rules required by the office or service before submitting.
Everything on this page is processed in your browser. Nothing is uploaded.
What this tool does
This tool solves the size-and-resolution half of a document photo. Four fixed print presets are offered — 2 by 2 inches, 35 by 45 mm, 30 by 40 mm and 40 by 60 mm — at 150, 300 or 600 DPI. Millimetres are converted to pixels by dividing by 25.4 and multiplying by the DPI, rounded and floored at one pixel, so 35 by 45 mm at 300 DPI gives 413 by 531 pixels and a 2-inch square at 300 DPI gives 600 by 600. Those numbers and the print size are shown live before you choose any file, so you can check the target against what the form actually asks for first. When you generate, the canvas is filled with your chosen background colour — white, off-white, light blue or light grey — and the photograph is drawn over it, scaled to cover the whole frame using the larger of the two scale factors and centred, so the frame is always completely filled and the overflowing axis is trimmed equally at both ends. The result is a JPEG at a quality you set from 50% to 98% in two-point steps, named after your source file with an id-photo suffix, with a preview and its byte size on the page; a decode failure, a missing canvas context or a failed encode is reported as a status message rather than silently producing nothing. Three things need saying plainly. First, the background colour is painted behind the photograph, not substituted for it — because the photo is then scaled to cover the frame, an ordinary opaque photo hides the fill completely and the colour is not visible at all. It shows only where your source image is itself transparent. This is not a background remover or replacer. Second, nothing about the face is detected, measured or aligned: there is no face detection, no head-size, eye-line or chin-to-crown measurement, and no automatic head-height scaling. The composition is always a centred cover fit. Third, there is no country rule set, no official requirement check and no compliance guarantee for any passport, visa, identity card, driving licence or immigration authority. Also absent: manual framing of any kind (no crop rectangle, zoom, pan, offset or rotation), print-sheet tiling with cutting guides, custom sizes or resolutions beyond those listed, custom background colours, any output format other than JPEG, a target file-size field in kilobytes, retouching of any kind, and batch processing. Your photograph is never uploaded to LocalTools.
How to use it
- Choose a print preset and a resolution first — 2x2 in, 35x45, 30x40 or 40x60 mm at 150, 300 or 600 DPI — and read the exact pixel size before picking a file.
- Select your photograph: it is scaled to cover the frame and centred, with the longer axis trimmed equally, so centre your subject yourself beforehand.
- Set the JPEG quality between 50% and 98%, check the preview and byte size, and download the id-photo JPEG.
Privacy
This tool runs entirely in your browser. Your input is never uploaded, stored or shared — closing the tab removes it.
Frequently asked questions
- How do I resize an image to 35x45mm for free?
- Choose the 35 by 45 mm preset and a resolution, then select your photo. At 300 DPI that is 413 by 531 pixels; the tool shows the number before you pick a file, then centre-crops to it and hands you a JPEG.
- How is 35x45mm different from the 2x2 inch US photo?
- 35 by 45 mm is a rectangle used for many passports, visas and ID cards; the US 2 by 2 inch photo is a square, 51 by 51 mm. Both are presets here, and they are not interchangeable — use whichever your form names.
- What DPI should I use, and what pixel size does 2x2 give?
- 300 DPI is the usual print expectation, and a 2 by 2 inch photo at 300 DPI is 600 by 600 pixels; 150 DPI halves that to 300 by 300 and 600 DPI doubles it. Those three resolutions are the only ones offered.
- Will this photo definitely be accepted by the passport office?
- No, and nothing here promises that. The tool gets the print size and pixel dimensions right; it does not check any country's rules, does not detect or measure the face, and offers no compliance guarantee. Check the official requirements yourself.
- Can it remove my background and make it white?
- No. The colour you pick is painted behind the photo, and since the photo is scaled to cover the whole frame, an opaque photo hides it completely — the fill shows only where your source is transparent. There is no cut-out, no background replacement and no retouching.