Resize Image to 2x2 Inch
Upload your photo and instantly resize it to exactly 2x2 Inch. Perfect for exam forms, passports, and precise digital requirements.
U.S. passport and visa photos are 2×2 inches, and online U.S. visa forms take a square digital version with a strict file size limit. This browser-based utility formats your picture to a 2×2 inch square (600×600 pixels at 300 DPI) and exports a JPEG file. All processing executes directly inside your browser through the HTML5 canvas, so your personal picture never leaves your machine.
The tool center-crops your image to a 1:1 square aspect ratio and tests JPEG quality levels to bring the file at or below the 240 KB ceiling. Because the resizer cuts off whatever overflows the square crop and does not modify your existing background, you should use a source photo taken directly against a plain white wall with your face centered in the frame.
How it works
1. Step 1 — Upload Photo
Click the drop area marked “Upload Photo” or drop your file. Pick a JPG, PNG or WEBP portrait for it to load in any browser; an iPhone HEIC photo will only load in Safari, so on Chrome, Edge or Firefox convert it to JPG first.
2. Review Specifications
Check the preset card displaying 600×600 Pixels, 2×2 in Inches, 300 DPI Resolution, and the 10–240 KB File Size target range.
3. Resize Photo
Click “Resize Photo”. While working, the button displays “Processing...” as it draws the image to canvas and runs a binary search across JPEG quality settings.
4. Step 2 — Download Result
Check the status label. If your file is between 10 KB and 240 KB, it displays “Ready to use”. If the compressed image falls below 10 KB, the tool pads it to 10 KB. If it exceeds 240 KB even at quality 0.1, it saves at quality 0.9 with the status “File size outside target range”. Click “Download” to save the result.
When you'd use it
Printed U.S. passport photos
Preparing a 2×2 inch print for a U.S. passport application, following the white background and no-eyeglasses rules published by U.S. embassies.
Online U.S. visa application photos
Formatting a square JPEG for upload with a U.S. visa application, where the State Department sets a 600×600 to 1200×1200 pixel range and a 240 KB cap.
Diversity Visa (DV) Lottery Entries
Preparing the 600×600 pixel JPEG, 240 kB or smaller, that the DV-2026 instructions ask entrants to upload.
Other forms that ask for a 2×2 inch photo
Making a square print or file for any application that names the 2×2 inch size, after checking that form’s own rules on background and file size.
Official U.S. State Department photo rules and framing
The U.S. Embassy in Poland’s visa photo page lists the core rules: a colour photo, sized so the head is between 1 inch and 1 3/8 inches, or 50% to 69% of the image’s total height, from the bottom of the chin to the top of the head; taken within the last 6 months; in front of a plain white or off-white background; in full-face view with a neutral expression and both eyes open. The U.S. Embassy in Türkiye adds that eye level should be between 1 1/8 inch and 1 3/8 inches from the bottom of the photo.
Eyeglasses are not allowed in new visa photos, and the U.S. Embassy in Japan’s passport photo page also says no eyeglasses, a white background, no headphones or wireless hands-free devices, and no uniforms. Hats and head coverings that hide the hair or hairline are not allowed unless worn daily for a religious purpose, and even then the full face must be visible without shadows.
How center-cropping and canvas background work
When you upload an image, the tool calculates the source aspect ratio and compares it to the 1:1 square target. If the source is wider than it is tall, the tool slices off the left and right edges evenly. If the source is taller, it slices off the top and bottom. It does not fit or letterbox the photo, nor does it track where your face is located. If your face is off-center in the original picture, crop the photo yourself before uploading so the automated crop does not clip your forehead or ears.
Before drawing the image, the canvas context fills the target rectangle with white (#ffffff). This white layer shows through only if your source file has transparent sections, such as a transparent PNG. The tool does not alter, bleach, or replace the background of an ordinary opaque photo. It does not remove background clutter, lighten shadows, or fix uneven ambient room lighting. Capture your picture against a plain white or off-white wall under even, balanced light instead.
Understanding the 240 KB limit and file size status
The State Department’s digital image requirements say the file must be JPEG and less than or equal to 240 kB, square, at least 600×600 and at most 1200×1200 pixels. They set no minimum file size; the 10 KB floor in this tool is TryDocsy’s own preset, there to flag suspiciously over-compressed output.
For JPEG exports, the script conducts up to 15 binary-search iterations on compression quality between 0.1 and 1.0 until the resulting file measures at or below 240 KB. If the compressed JPEG measures under 10 KB, the tool adds zero-byte padding inside an extra JPEG APP1 marker to bring the file to exactly 10 KB so portals with minimum size rules accept it. Conversely, if an unusually complex or large input still exceeds 240 KB at quality 0.1, the script falls back to saving at quality 0.9, producing a file that remains above 240 KB.
When the final file sits between 10 KB and 240 KB, the status card displays “Ready to use” with a green confirmation icon. If the file exceeds 240 KB even at minimum quality, the UI shows “File size outside target range”. If you see this warning, pre-crop your original photo to remove busy background areas or downscale its pixel dimensions before uploading.
Printing 2x2 inch physical photos versus digital upload
At 300 dots per inch (DPI), a 600×600 pixel image prints at exactly 2.0×2.0 inches. For a paper passport application, print the downloaded JPEG on matte or glossy photo-quality paper without scaling or selecting “fit to page” in your printer dialog.
For an online visa form or a DV entry, you upload the JPEG file directly. At 600×600 pixels it sits at the minimum of the State Department’s allowed range, and it is exactly the size the DV instructions ask for, so no further resampling is needed.
Frequently asked questions
What is 2x2 inches in pixels at standard print resolution?
At 300 DPI, standard for photographic printing, 2×2 inches equals exactly 600×600 pixels.
Does this tool remove shadows or whiten my photo background?
No. The resizer paints white on the canvas before drawing your image, which only appears through transparent areas. It does not erase shadows or replace existing backgrounds on regular photos. You must photograph yourself against a plain white wall.
Can I wear eyeglasses in my 2x2 inch passport photo?
No. U.S. embassy photo pages state that eyeglasses are not allowed in new visa photos and list “NO eyeglasses” for passport photos. Take them off before the picture is taken.
What is the official maximum file size for U.S. visa digital photos?
The State Department’s digital image requirements set the limit at less than or equal to 240 kB, in JPEG format. This tool’s compression loop aims for that same 240 KB ceiling.
What happens if my head is cut off by the square crop?
The tool performs a center crop, slicing off equal portions from opposite edges. If your face is off-center in the source image, crop the original photo around your head and shoulders before uploading.
What should I do if the tool says File size outside target range?
This message appears when the processed JPEG cannot be compressed below 240 KB even at quality 0.1. (Outputs below 10 KB are automatically padded up to 10 KB). If it exceeds 240 KB, crop away busy background areas from your original image or reduce its source dimensions before uploading.
Is my photo sent to an external server for processing?
No. All canvas drawing, cropping, and compression calculations execute locally inside your web browser. Your photo is never transmitted across the network.

