Skip to main content

Canonical Image Resizer Tool

Image Resizer: set the width and height

100% client-side · No uploads · Powered by HTML5 Canvas

Written by Safaat Rahman Siham, Founder & Developer at Convertify4u. Contact us.

You need a picture at a specific width and height. Set the pixels, or pick a social size, and download the new image from this browser. This page accepts JPG, PNG, WebP, and GIF, and the resize runs on your device. Width and height are whole pixels from 1 to 10,000. Aspect lock starts on, so changing one side updates the other and the photo keeps its shape. Turn the lock off only when the destination truly wants a different ratio, because the picture is then stretched to that box. Social presets cover Facebook, Instagram, LinkedIn, X, YouTube, TikTok, and Pinterest, with the pixel sizes listed in the picker. Background fill starts off. Off, the image stretches to the width and height you entered. On, the canvas is filled white and the image fits inside the box. Export can stay in the original format, or save as JPG, PNG, or WebP. JPEG and WebP use quality 0.92 unless you type a target size in kilobytes. That target applies only to JPEG and WebP. The tool searches quality for up to 14 tries between 0.08 and 1, and if none of those files fit, it saves at quality 0.5. A GIF export is a still image. Add the one picture you want to resize, preview it, and download when the crop and the file size look right.

Pixels first, then the file you actually save

Exact width and height

Type the integers the form published. Each side can be from 1 to 10,000 pixels, and the aspect lock starts on so the other side follows. Unlock it only when the destination really wants a different shape, because the picture is stretched to those pixels. Background fill, off by default, is the other way to meet a box: turn it on to paint the canvas white and fit the image inside without stretching, with empty bands where the shapes differ.

Social sizes already listed

The presets are fixed pixel boxes you can apply in one pick. Facebook profile is 170 by 170, cover 820 by 312, post 1200 by 630, and story 1080 by 1920. Instagram profile is 320 by 320, square 1080 by 1080, portrait 1080 by 1350, and story 1080 by 1920. LinkedIn profile is 400 by 400, cover 1584 by 396, and post 1200 by 627. X profile is 400 by 400, header 1500 by 500, and post 1200 by 675. YouTube icon is 800 by 800, banner 2560 by 1440, and thumbnail 1280 by 720. TikTok profile is 200 by 200 and video is 1080 by 1920. Pinterest profile is 165 by 165 and a pin is 1000 by 1500. Read the label before you export.

Optional kilobyte target for JPG and WebP

Leave the target blank and JPEG or WebP saves at quality 0.92. Type a target in KB and the encoder binary-searches quality for up to 14 tries, from 0.08 through 1, keeping a file that fits. If none of those tries fit, the save uses quality 0.5. PNG ignores the target, and so does a GIF. The GIF download is a still image, a single frame you can post, rather than a new animation. The whole export stays in the browser.

How it works

  1. 1

    Add a JPG, PNG, WebP, or GIF

    Open the one picture you want to resize. The preview shows the original pixel size so you can compare it with the box you are about to set. JPG, PNG, WebP, and GIF are the formats this page accepts. A GIF is handled as a still, so you are resizing a frame you can export, and the download is that still image rather than a new animation.

  2. 2

    Set the new size

    Type pixels from 1 to 10,000 on each side, or pick a social preset such as an Instagram square at 1080 by 1080 or a YouTube thumbnail at 1280 by 720. Aspect lock starts on. Turn background fill on if you would rather fit the photo inside the box on white than stretch it. The picker lists Facebook, Instagram, LinkedIn, X, YouTube, TikTok, and Pinterest sizes.

  3. 3

    Choose a format and download

    Save the original format, or export JPG, PNG, or WebP, from this browser. JPEG and WebP default to quality 0.92. Add a KB target only for those two formats. The search tries up to 14 qualities between 0.08 and 1, and saves at 0.5 if none fit. PNG and GIF skip that target. Check the preview, then download the file you will actually upload.

Use cases

A form that names the pixels

Type those numbers with the lock on, unless the form also demands a different aspect ratio. Each side stays between 1 and 10,000 pixels.

A social post at a known size

Pick the platform and the preset, from a Facebook post at 1200 by 630 to a TikTok video frame at 1080 by 1920. Turn background fill on to letterbox onto white.

A JPG that also has to land under a size

Set the pixels, choose JPG or WebP, and type the kilobyte target. If the picture still misses that size, the save uses quality 0.5.

The pixel size you asked for

Faces look stretched

The lock was off, or a preset’s shape differs from the photo. Turn the lock back on, or turn background fill on so the image fits inside the box on white instead of stretching.

The KB field did nothing

The target applies to JPEG and WebP only. PNG and a GIF export ignore it. Switch the export to JPG or WebP, then type the kilobytes again.

Specialized image resizer guides

Trust & technology

Resize happens in the browser

The canvas preview and the download run on your device for the image you added. Width and height stay between 1 and 10,000 pixels, and the aspect lock starts on so the photo keeps its shape until you say otherwise.

Quality 0.92 unless you set a target

JPEG and WebP save at 0.92 when the kilobyte field is empty. A target searches up to 14 qualities from 0.08 to 1, then uses 0.5 if nothing fits. PNG and GIF export skip that quality percent.

Frequently asked questions