Skip to the tutorial
lil cactus

How to resize an image online to exact pixels or print size

Beginner2 minutesUpdated

Quick answer

Open the image in Lil Cactus and choose Image then Image Size… With the chain link on, type the new Width in pixels and the height follows automatically, so nothing is stretched. Choose Bicubic Sharper, click Resize, then save a copy with File then Export then JPEG…

The Lil Cactus editor with a photo of a yellow tram and the Image Size dialog set to 1200 by 800 pixels
Image Size, resizing the sample from 1536 × 1024 to 1200 × 800 pixels.
Time
2 minutes
Level
Beginner
You need
An image and the size you want, in pixels, percent or centimeters
Works with
JPEG, PNG, WebP, AVIF, HEIC, GIF, TIFF, PSD, RAW and more
Open the sample in Lil CactusUse your own photo

Free, no sign-up. Your photo stays on your computer.

Every digital image is a grid of pixels. Resizing changes how many pixels there are: fewer pixels make a smaller file that loads faster and fits the box a website or app expects. The trick is to change the width and the height together, in proportion, so people don’t end up looking stretched or squashed. Lil Cactus does that for you as long as the chain link between the two fields is on.

Resize an image in five steps

  1. Open the image

    Go to lilcactus.app and choose File then Open… (Ctrl+O or ⌘O), or drag the image onto the window. iPhone HEIC photos and camera RAW files open directly. To follow along with exactly the same numbers, open the sample photo from this page.

    The current size is shown at the bottom left of the window, in the status bar.

    Status bar reading 1536 px × 1024 px
    The status bar shows the sample’s size before resizing: 1536 × 1024 pixels.
  2. Open Image › Image Size…

    Open the Image menu and choose Image Size… (Ctrl+Alt+Shift+S or ⌥⇧⌘S).

    The Image menu open with Image Size highlighted
    Image then Image Size…, below the Auto commands in the Image menu.
  3. Type the new width or height

    Check that Units says Pixels and that the chain link between Width and Height is lit. Then type the size you need into one of the two fields. In the sample, typing 1200 into Width sets the height to 800 on its own, because the photo keeps its 3:2 shape.

    The box at the top of the dialog always shows the change: old size, arrow, new size, and how many megapixels the result has.

    Next to Resample, choose how new pixels are calculated:

    • Bicubic Sharper: the best choice for photos, smaller or larger. It blends pixels smoothly, and when it shrinks an image it adds a touch of sharpening so detail stays crisp.
    • Bilinear: a simpler, slightly softer blend.
    • Nearest Neighbor: copies pixels without blending. Use it for pixel art and screenshots of text when you enlarge by whole numbers (200%, 300%).

    Tip Need a size in a different shape, such as a square from a landscape photo? Resizing can’t change the shape without stretching. Crop the image to the shape first, then resize.

    Image Size dialog: width 1200, height 800 pixels, chain link on, resampling set to Bicubic Sharper
    The Image Size dialog, ready to resize the sample to 1200 × 800 pixels.
    1. Width: type the size you need
    2. The chain link keeps the proportions
    3. Units: Pixels, Percent, Inches, Centimeters or Millimeters
    4. Old size → new size
    5. Resampling method
    6. Resize
  4. Click Resize and check the result

    Click Resize. The image is recalculated and the status bar shows the new size. Zoom to 100% with Ctrl+1 or ⌘1 to see the pixels as they will appear on screen.

    Not happy? Ctrl+Z or ⌘Z undoes the resize completely.

    Status bar reading 1200 px × 800 px
    The status bar confirms the new size: 1200 × 800 pixels.
  5. Save the resized copy

    Choose File then Export then JPEG… for photos, or File then Export then PNG… for graphics, logos and anything with transparency. The bottom of the dialog estimates the file size, so you can lower Quality until it fits a limit; 80–90% is a good range for photos. Click Export and the file goes to your downloads folder.

    Export writes a new file and leaves your original as it was. In Chrome or Edge, File then Save (Ctrl+S or ⌘S) can replace the original when you opened it through the file picker and allow writing. In Firefox and Safari, or for a dragged file or tutorial sample, Save opens a save dialog or downloads a copy. Check the destination before replacing any file. Keep your own saved copy: browser recovery is not a backup.

    Export as JPEG dialog with quality 90% and an estimated size of about 478 KB at 1200 × 800 pixels
    File then Export then JPEG…: the sample at 1200 × 800 pixels comes to about 478 KB at 90% quality.
    1. Quality: lower it for a smaller file
    2. Final size and estimated file size

Resize by percentage

In Image Size, set Units to Percent and type, for example, 50 to halve both sides. Halving the width and height leaves a quarter of the pixels, so the file is usually around a quarter of the size too.

Resize only the exported copy

If you want to keep your full-size document and only send a smaller copy, skip Image Size. In any export dialog, tick Resize output and type the width or height for the saved file. The open document stays at full size.

Resize many images at once

Choose File then Automate then Batch…, add your images under Input images, set Scale % and the output format, and click Run. Lil Cactus resizes every image and downloads them together in one ZIP file. Scale % keeps every image in proportion, whatever its shape. A recorded Image Size action sets the same width and height for every image, so use it only for images that all have the same shape, or they will be stretched.

Can I make a small image bigger?

Yes, but resampling can only spread the existing detail over more pixels: it doesn’t add detail the camera never captured. Enlarging by up to about 150% usually looks fine with Bicubic Sharper. Beyond that the photo turns soft. For pixel art, use Nearest Neighbor and whole-number percentages to keep the edges hard.

Common sizes

UseSize in pixels
Instagram square post1080 × 1080
Instagram portrait post1080 × 1350
Instagram and TikTok story, YouTube Short1080 × 1920
YouTube thumbnail1280 × 720
Full HD screen or wallpaper1920 × 1080
4K screen or wallpaper3840 × 2160
Photo in an email800–1200 wide
10 × 15 cm (4 × 6 in) print at 300 ppi1181 × 1772
A4 print at 300 ppi2480 × 3508

Sizes that change the shape (such as a square from a landscape photo) need a crop first.

Coming from another editor

Photoshop
The same command, Image then Image Size…, with a chain link and Resample options.
GIMP
GIMP calls it Image › Scale Image. In Lil Cactus the equivalent is Image then Image Size…
Windows Paint
Resize, on the Home tab. In Lil Cactus the same job is Image › Image Size…
Mac Preview
Tools › Adjust Size… In Lil Cactus the same job is Image › Image Size…

Image resizing: questions and answers

How do I resize an image without losing quality?

Making an image smaller always removes pixels, but with Bicubic Sharper the result stays crisp at its new size. Export at 85–100% quality, or as PNG, and keep the original file in case you need the full size again.

How do I resize without stretching?

Keep the chain link between Width and Height on. Lil Cactus then calculates the other side for you. If you need a different shape, crop first.

How do I make the file size smaller, not the dimensions?

Lower the Quality slider in the JPEG, WebP or AVIF export. WebP and AVIF are usually much smaller than JPEG at similar visible quality.

Does resizing in Lil Cactus change my original file?

File › Export writes a new file. In Chrome or Edge, File › Save can replace the original if you opened it through the file picker and allow writing. In Firefox and Safari, or for a dragged file or tutorial sample, Save opens a save dialog or downloads a copy. Check the destination before replacing a file.

Is my image uploaded when I resize it in Lil Cactus?

No. Opening, resizing and exporting all happen on your own computer, in your browser.

Why does 1200 × 800 become a different height for my photo?

Because your photo has a different shape from the sample. With the chain link on, the height always matches your photo’s proportions.