How to resize a photo to an exact pixel size
Updated July 29, 2026 · 9 min read · Tool: Crop & Resize
Written for TidyCrop users who need exact exports without uploading photos to a server.
Many portals reject photos that are “close enough.” They want an exact width and height in pixels — for example 600 × 800 for a school ID, 400 × 400 for a profile picture, or a custom banner size for a website. Guessing with a phone crop often produces the wrong aspect ratio or soft edges after the site re-encodes the file.
TidyCrop’s Crop & Resize tool is built for that exact-size job. You set the output frame, position the photo inside it, and download a file whose pixel dimensions match what you entered. Processing happens in your browser; the image is not uploaded to TidyCrop.
Before you start
- A photo in JPG, PNG, or WebP format (HEIC from iPhone is not supported yet — export as JPG first)
- The required width and height in pixels, or a printed size plus DPI so you can convert
- A modern browser with enough memory for your image size
Step-by-step
-
1. Confirm the required dimensions
Read the form, portal, or print instructions carefully. Prefer numbers written in pixels (px). If you only have inches or millimeters, convert using the DPI they specify — print work is often 300 DPI, so 2 inches × 300 = 600 pixels on that side. Write both numbers down before you open the tool so you do not mix width and height.
-
2. Open your photo in TidyCrop
Go to the home page editor and choose Crop & Resize. Add a photo from your device. The file stays in browser memory for this tab session. Nothing is sent to a TidyCrop server for editing.
-
3. Pick a preset or enter custom pixels
If a preset matches your task (for example a square profile size), select it. Otherwise choose Custom and type the exact width and height. Double-check that width is first and height is second — swapped values are a common reason uploads fail.
-
4. Choose how the photo fits the frame
Cover (crop) fills the frame and may trim edges — usually best for headshots. Contain keeps the whole photo visible and may leave empty margins depending on your settings. Stretch forces the photo to the exact box and will distort faces and circles. Prefer Cover or Contain unless a template truly requires Stretch.
-
5. Frame the subject, then export
Pan and zoom so faces, logos, or text sit where the portal expects them. Use the live preview as the source of truth. When the framing looks right, download the export and check the file properties: the pixel size should match your settings before you upload anywhere else.
Trade-offs to expect
- Cropping to an exact frame always discards some pixels outside the selection. That is normal; it is how you meet a fixed aspect ratio.
- Upscaling a small phone crop to a large print size does not invent detail. Prefer a higher-resolution original when the form asks for large dimensions.
- Contain mode preserves the whole image but may not fill every pixel of a strict upload box if the portal rejects letterboxing — check their rules.
- Stretch meets dimensions literally but can make faces look wrong. Avoid it for ID-style and profile photos.
Worked examples
School portal asks for 600 × 800
Enter 600 width and 800 height (or use a matching portrait preset). Use Cover so the frame is filled, center the face, leave a little headroom, and export. Confirm the saved file reports 600 × 800 before uploading.
Website thumbnail needs 320 × 180
That is a 16:9 box. Enter those pixels, frame the important part of the scene, and export as JPG if the CMS prefers photos. If the design needs a transparent logo instead, convert to PNG after you are happy with the crop.
Instructions list 2 × 2 inches at 300 DPI
Convert: 2 × 300 = 600 pixels on each side. Use a square 600 × 600 export (or the 2 × 2 passport-style preset if it matches). TidyCrop helps you size the file; it is not an official passport or visa service — confirm agency rules separately.
Troubleshooting
The portal still says the dimensions are wrong
Open the downloaded file’s properties and verify width × height. Some sites also reject the wrong format or a file over a KB limit — compress or convert after resizing if needed.
Important edges are cut off
Zoom out slightly, or switch fit mode if you were stretching. For headshots, keep the face centered with modest space above the head.
The photo looks blurry after export
You may be enlarging a small original. Start from a larger source photo, or export closer to the original’s native size if the portal allows a range.
My phone photo will not open
TidyCrop accepts JPG, PNG, and WebP. Export HEIC photos as JPG from your phone or computer first, then try again.
Limitations
- One photo at a time — no batch resize.
- No HEIC/HEIF input.
- Output size is exact for the settings you choose, but print shops and portals may still re-encode or crop after upload.
- TidyCrop does not guarantee acceptance by any agency, school, employer, or website.
Common questions
Will exact-size export stretch my photo?
Only if you choose Stretch. Cover crops to fill the frame; Contain fits the whole image inside the frame. Pick Cover or Contain for most portrait and profile work.
Can I enter inches instead of pixels?
Enter pixels that match the requirement. Convert inches × DPI (often 300 for print) to get pixel width and height.
Does resizing upload my photo?
No. Cropping and resizing run in your browser. Your image file is not sent to TidyCrop servers.
Should I compress before or after resizing?
Resize to the required pixels first, then compress if the portal also has a file-size cap. Smaller dimensions usually make it easier to hit a KB limit.
Related guides
- How to compress a photo under a file-size limit
- When to use JPG, PNG, or WebP
- How to create a printable photo sheet
Try it in TidyCrop
Ready to export? Open the Crop & Resize tool on the home page. Your photo stays on your device.