Type a tool name, format, or task.
Type a tool name, format, or task.Esc Close
Image·Free·No signup

Resize an image to exact dimensions

Pixel dimensions matter more than most people expect. A profile photo may require exactly 600×600 px, a banner 1200×630 px, and a print photo 354×472 px for 3×4 cm at 300 DPI. This tool gives you those numbers directly, without installing an editor. The default mode fits the image inside the frame and keeps the aspect ratio; empty space becomes transparent for PNG/WebP or white for JPG. Choose “Fill and crop” when the frame must be completely covered, or “Stretch” only when distorting is acceptable. The result card reports both the requested size and the actual output, and an optional target size lets you finish the whole job in one pass.

  • Private by design
  • Runs in your browser
  • No signup
Process fileThis tool runs entirely in your browser. Toolabs does not receive, store, or see your files.
1Drop files here
Drop files hereor choose them from your deviceChoose filesYou can also paste with Ctrl+V / ⌘VUp to 100 MB per file. Nothing leaves your device.

How do I resize an image to an exact pixel size?

Add an image, enter the width and height in pixels, and choose whether to fit the image inside that frame or crop it to fill. Toolabs renders the new dimensions locally and can also compress the result to a target size. Download the resized image when it looks right.

How to use it

  1. Add a JPG, PNG, or WebP image.
  2. Enter the target width and height in pixels.
  3. Choose Fit inside, Fill and crop, or Stretch.
  4. Optionally set a maximum file size and output format.
  5. Process, inspect the preview metadata, and download.

Why use this tool

Exact pixel dimensions instead of approximate percentage scaling.

Three fit modes make cropping behaviour explicit before processing.

Transparency is preserved for PNG and WebP output.

Optional target size removes the need for a second compression step.

When to use it

  • Making a social profile photo meet an exact square requirement.
  • Preparing a 1200×630 px image for an Open Graph preview.
  • Scaling down a large photo before uploading it to a form.
  • Creating a 3×4 cm photo at 300 DPI with the dedicated preset.

At a glance

Common pixel sizes and their use
UseTypical pixelsNotes
Profile photo400×400 or 600×600Square crop; keep the face centred
Open Graph / social preview1200×630Landscape 1.91:1 ratio
3×4 cm print at 300 DPI354×4723:4 portrait ratio
4×6 cm print at 300 DPI472×7094:6 portrait ratio
Full HD wallpaper1920×108016:9 landscape

Always check the receiving platform’s current requirements. Some portals ask for a maximum dimension rather than an exact size.

Good to know

Crop before scaling when possible. Cropping a full-resolution image keeps more detail than cropping an already resized one.

Frequently asked questions

What is the difference between fit and fill?

Fit inside scales the whole image until it fits within the frame, leaving empty space where the aspect ratio differs. Fill and crop scales the image until it covers the frame, then crops the overflow. Stretch forces both dimensions and can distort faces or logos.

How do pixels relate to centimetres and DPI?

Pixels = centimetres ÷ 2.54 × DPI. A 3×4 cm photo at 300 DPI is about 354×472 px. At 150 DPI the same print size is only 177×236 px. Online portals usually care about pixels and file size, not the DPI tag.

Why did my PNG become a JPG?

It should not unless you choose JPG as the output format. The default keeps the original format. If the original is JPG, transparent areas do not exist, so the output remains JPG.

Does resizing up improve quality?

No. Enlarging adds interpolated pixels but cannot recover detail that was never captured. For print, start with an image that already has enough pixels. For screens, downscaling usually improves perceived sharpness.

Can I resize and compress in one step?

Yes. Enter a target size in KB under Options. After resizing, Toolabs searches for the best quality under that limit while keeping your requested dimensions if possible.

What happens to EXIF orientation?

The browser applies EXIF orientation while decoding, so the image appears upright. The resized output is a new file without EXIF metadata, which also removes GPS and camera information.

Related tools

More free tools that work the same way.

TA

By the Toolabs team

This tool runs entirely in your browser. Toolabs does not receive, store, or see your files.