PDF & image

How to Resize and Crop Images in Your Browser

Resize and crop photos with exact pixels, percentages and common ratios. Follow two worked examples, choose an export format and understand print-size limits.

By the Criza Labs team · Updated · 5 min read

Key takeaways

  • Percentages apply to the selected crop, using the displayed working image dimensions.
  • The crop box supports dragging, arrow keys and position sliders.
  • The passport preset supplies pixels for a print size, without certifying document compliance.

The image resizer makes a cropped, resized copy of a JPG, PNG or WebP in your browser. Use it when a form asks for specific pixel dimensions, when a photo needs a square composition, or when a page needs a smaller image. Cropping chooses what remains in the picture; resizing chooses how many pixels represent that selection.

Keep your original file until you have inspected the export. A smaller copy is useful for sharing, but it cannot preserve every detail of the original. An enlarged copy has more pixels without recovering information that was absent from the source. Decide the destination’s requirements before changing width, height or format.

Before you start

Write down whether the requirement is in pixels, physical dimensions or file bytes. These describe different things. A 400 × 400 pixel picture has a fixed raster size; its physical size depends on printing settings. A file-size limit depends on image content and encoding as well as dimensions. Use the image compressor if byte reduction is your main goal.

Select one supported image up to 50 MB. The tool decodes large sources into a working image bounded by 16 million pixels and an 8192-pixel long edge. Read Working image after loading: those dimensions are the basis for crop calculations. An automatic reduction is reported there, so do not assume every original pixel remains available.

The selected image and generated output remain on your device. Loading another file replaces the working selection. Settings changes remove the old download so that it cannot silently disagree with the current crop. Save an export before changing the next scenario if you want to compare versions outside the tool.

Step by step with CrizaTools

  1. Open the image resizer and choose Choose JPG, PNG or WebP. Wait for the working dimensions and preview.
  2. Choose Crop ratio: Original ratio, 1:1 square, 4:5 portrait, 16:9 landscape, or the 35 × 45 mm preset.
  3. Adjust Crop size to shrink the box within the largest fitting crop. Drag the box to position it. Keyboard users can focus it and press arrow keys; Shift moves farther.
  4. Alternatively use Horizontal position and Vertical position. Their percentages describe the available travel between the source edges, rather than absolute pixel coordinates.
  5. For ordinary ratios, choose Resize by as Exact pixels or Percentage of crop. In pixel mode, enable Keep aspect ratio to update both dimensions together.
  6. Choose Output format. Set Quality from 1 to 100 for JPG or WebP. PNG ignores this setting.
  7. Press Resize and export, inspect the reported dimensions and select Download image. Open the saved image to check framing and detail.

Two worked examples

Example 1: a square thumbnail from a landscape photo. Start with a 1200 × 800 pixel working image. Choose 1:1 square, leave Crop size at 100%, and leave both positions at 50%. The largest square fits the shorter dimension, giving an 800 × 800 selection.

The box begins at x = (1200 − 800) × 0.5 = 200 and y = 0. Select Percentage of crop and enter 50. Output dimensions become 800 × 0.5 = 400 in both directions. The result is 400 × 400 pixels. Moving Horizontal position to 0 keeps that size but selects the leftmost square instead of the centre.

Example 2: the physical-size pixel preset. Use the same working image and choose the 35 × 45 mm preset. Its crop ratio is 35/45, so a full-height selection is approximately 622.22 × 800 working pixels. The final output is fixed independently of that selection’s working size.

The pixel calculation is millimetres ÷ 25.4 × 300. Width is approximately 413.386 pixels and height approximately 531.496 pixels, rounded to 413 × 531 pixels. The tool exports those dimensions. It does not write a 300 dpi print instruction. Set the intended physical size in your print application, and check the receiving authority’s framing and background requirements separately.

Limits and what to watch for

The working-image limits also bound output allocation: no edge above 8192 pixels and no result above 16 million pixels. A large width and height may each look acceptable while their product exceeds the total-pixel limit. Reduce one dimension, restore the aspect lock or use a smaller percentage when the form reports an error.

JPG cannot retain transparency, so transparent areas are filled white. PNG preserves an opaque or transparent raster without a lossy quality setting. WebP export depends on browser support; if the browser cannot produce the selected type, choose another format. File size varies with content, so the same dimensions and quality do not guarantee identical bytes for two photos.

Browser canvas serialization does not supply a custom print-resolution control here. The HTML canvas standard describes bitmap export, including default resolution metadata where supported. Treat the passport option as a pixel preset, not a completed identity-photo check; source checked 16 November 2026.

Common mistakes

  • Applying 50% mentally to the original instead of the crop.
  • Stretching a portrait by disabling the aspect lock unintentionally.
  • Expecting JPG to keep a transparent background.
  • Increasing Quality to solve a wrong pixel size.
  • Treating the passport preset as proof that an authority will accept the photograph.
  • Comparing a reduced working image with the original without reading the size notice.

Questions and answers

Can I crop entirely with a keyboard?

Yes. Focus the crop box and move it with arrow keys; hold Shift for larger steps. The size and position sliders provide another route. Export uses the same crop rectangle whichever input method you choose.

Does resizing by percentage use the source file size?

No. It multiplies the crop’s pixel width and height by the chosen percentage. A 50% resize halves each dimension, so the output contains roughly one quarter as many pixels, before integer rounding.

Can I type either dimension with the aspect lock enabled?

Yes. Editing width updates height using the crop ratio, and editing height updates width. Integer rounding can change the final ratio slightly. Disable the lock only when a deliberately stretched output is acceptable.

Why did the previous download disappear?

Changing a crop or export setting invalidates the saved result. Press Resize and export again. This keeps the displayed download aligned with the current settings rather than retaining a file from an earlier composition.

Can the export preserve all original metadata?

Do not rely on it. The browser draws a new raster and encodes a fresh image. Keep the original for metadata, archival detail and future edits, and inspect the new file in its destination application.

Sources

Create the copy with image resize and crop, then use JPG to PDF if the destination requires a document.

Free tools for this

PDF & image

Image Resize and Crop

Resize images by pixels or percentage, crop with a movable box and export JPG, PNG or WebP.

PDF & image

Image Compressor

Compress and resize JPG, PNG and WebP images in your browser for websites, upload forms, email and WhatsApp.

PDF & image

JPG to PDF

Convert JPG, PNG and phone photos to a single PDF in your browser. Reorder pages, choose A4 or Letter and margins.

More guides

Free desktop app from Criza Labs

Bill every day? Get CrizaVoise free

GST invoices, thermal receipts, stock and payments in one offline app for Windows, Linux and macOS. No subscription, no sign-up, no ads, and your data stays on your computer.

  • 58 mm and 80 mm thermal printing
  • UPI QR on every invoice, WhatsApp sharing
  • Open source (Apache 2.0), English, Hindi, Gujarati and more
The CrizaVoise dashboard with quick bill and new invoice buttons, stock alerts and sample figures