Overview
Upload a front portrait and this tool will cut out the subject, swap the background, crop to one-inch / two-inch / passport / visa standards and compress to the exact KB limit required by HR or visa portals - all locally in your browser. Nothing is uploaded, and everything clears when you close the tab.
How to use
- Click "Upload portrait" and pick a front-facing portrait with even lighting (JPG / PNG / WebP / HEIC all work)
- Choose a standard size (one-inch, two-inch, passport, visa, etc.) or pick custom and enter the mm dimensions
- Pick a background (white / blue / red / gray or a custom HEX) and adjust DPI (default 300) and target KB if needed
- Choose an output format (JPG = smallest, PNG = lossless, WebP = balanced)
- Wait for local processing and download the final photo plus a 6-inch print sheet ready for any photo shop
Formula
Pixel dimensions: widthPx = round(widthMm ÷ 25.4 × dpi). Headroom is about 8% of the cropped height. A 6-inch sheet (152 × 102 mm) fits floor(152 ÷ widthMm) × floor(102 ÷ heightMm) copies. Compression uses binary search over JPEG quality ∈ [0.3, 0.95] until |outSize − targetKb| ÷ targetKb ≤ 5%.
Common scenarios
Job application
Pick one-inch white background, target 100KB, JPG. Upload a half-body snapshot - the tool auto-removes the clutter, replaces it with pure white and outputs a 295 × 413 px (300dpi) photo ready to attach to a resume email.
Passport renewal
Pick passport size 33 × 48 mm, white background, 300dpi, target around 40-120 KB (the typical entry-exit portal limit). The binary-search compressor settles near 80KB and passes server validation on the first try.
6-inch print sheet
After making the one-inch white photo, open the 6-inch sheet preview. The tool auto-arranges 4 × 2 = 8 copies on a 152 × 102 mm print and lets you download the sheet for any photo shop.
FAQ
Are uploaded photos sent to any server? How is privacy guaranteed?
No. Cutout, background swap, cropping and compression all happen locally in your browser via Canvas and Web Workers. There are no fetch or XHR uploads in the code, and everything is cleared from memory when you close the tab. You can verify this in DevTools' Network panel.
Which standards are supported and what are their dimensions?
Built-in presets include one-inch 25×35mm, two-inch 35×49mm, small one-inch 22×32mm, small two-inch 35×45mm, passport 33×48mm, visa 35×45mm, driver license 22×32mm, social security 26×32mm and school record 33×48mm. If none fits, pick 'Custom' and enter mm values directly.
How do I compress to an exact KB target like 20-50 KB?
Enter the KB target in the input box. The tool runs a binary search over JPEG quality 0.3-0.95 until the output is within 5% of the target. If the target is very small (e.g. 20 KB) but resolution is very high, the resolution is auto-downscaled first and a notice is shown.
Can I upload iPhone HEIC files or very high-resolution photos?
Yes. HEIC files are converted to JPEG locally via a dynamically loaded heic2any module. Photos larger than 2000 px on the long edge are downscaled to ≤2000 px before cutout to prevent the wasm model from exhausting mobile memory. Everything happens locally.
Why is no face detected in my photo? What shooting conditions are required?
Use a front-facing shot with both eyes visible, face covering 40-70% of the frame, even lighting and clear contrast between subject and background. If no face is detected (side profiles, masks, heavy backlight), the tool falls back to center crop and shows 'No face detected, using center crop'; you can fine-tune manually.
Can the result be tiled onto a 6-inch sheet for photo-shop printing?
Yes. The tool computes how many copies fit on a 152 × 102 mm sheet (cols × rows) and generates a preview. For 25 × 35 mm one-inch photos it typically fits 6 × 2 = 12. Download the sheet and order a single 6-inch print to get 8-12 photos at once.
How accurate is the cutout? Are there fringes around hair?
Under common lighting, browser-side cutout using MODNet/U2Net preserves hair strands well and edges receive alpha feathering, so you typically do not see harsh fringes. If the browser lacks wasm SIMD or the model fails to load, the tool falls back to Canvas edge detection and marks 'Fallback mode - limited precision'; in that case verify the hairline manually.
Related tools
PDF to Image Converter - Free Online PDF to JPG/PNG Tool
Free online PDF to image converter. Convert PDF pages to JPG or PNG with custom DPI and page range. Batch export as ZIP. 100% browser-local processing, no upload, fully private and secure.
Image Cropper Online - Free & Aspect Ratio Crop Tool
Free online image cropper supporting 1:1, 4:3, 16:9, 3:4, 9:16 fixed ratios and free crop. Drag to select or input exact pixel values. Pure browser Canvas, keeps PNG transparency, no upload.
Online Image Stitcher - Combine Multiple Images Into One Long Image
Stitch multiple images vertically or horizontally into one long image locally in your browser. Drag to reorder, customize gap and background, export as PNG/JPG/WebP. No server upload.
Online Image Watermark Tool - Batch ID Photo Anti-Theft Generator
Add text or logo watermarks to images locally in your browser. Supports 9-grid positioning, diagonal tiling, batch processing and PNG/JPG/WebP export. Perfect for ID cards and business licenses. Zero upload for full privacy.