OfflaneAI

Resize images —
exact pixels, percent or social-media presets

Set a width, height, percentage or pick a preset (Instagram, TikTok, YouTube thumbnail, Facebook cover, LinkedIn banner…). When the proportions differ, smart crop keeps faces and the subject in the frame — drag the frame to adjust — or fit the whole photo on a blurred or colour background. Resize up to 50 photos at once and download a ZIP. Everything happens on your device.

  • 🙂 Smart crop keeps faces in frame
  • 📐 Pixels, % or 20 presets
  • 📦 Batch + ZIP
  • 🔒 Nothing is uploaded

Loading the tool… (JavaScript required)

Will resizing reduce quality?

Downscaling uses multi-step high-quality resampling, so photos stay sharp. Enlarging beyond the original size stretches pixels — use the AI upscaler for that. Save as PNG for graphics and screenshots, JPG or WebP for photos.

How do I resize to an exact size without distortion?

Choose “Exact size” or a preset and set the target. “Smart crop” fills the frame and places it around the faces (found on your device) or the most detailed area — drag the frame or zoom to change what stays. “Fit with blurred background” keeps the whole photo and fills the sides Reels-style; “Fit with colour background” pads with white, black, a custom colour or transparency; “Shrink to fit” keeps proportions without padding.

Which social-media sizes are included?

Instagram square (1080×1080), portrait (1080×1350) and story (1080×1920), Facebook post and cover, YouTube thumbnail (1280×720), X/Twitter post and header, LinkedIn banner, Pinterest pin and more. Presets are updated as platforms change.

How to resize a photo

  1. Add the images. Drop up to 50 JPG, PNG, WebP or HEIC files, or click the upload area. Each one is analysed for faces and detail; the button reads “Analysing photos…” until that is finished.
  2. Pick a mode. Five buttons sit above the settings: “Social media sizes”, “Exact size”, “By width”, “By height” and “By percent”. The page opens on “By width” at 1920 px.
  3. Enter the size or choose a preset.
  4. For presets and exact sizes, set “If proportions differ”. This decides whether the photo is cropped, padded or stretched.
  5. Check the “Result” preview. With smart crop, an “Original” pane appears next to it; drag the frame there to change what stays.
  6. Choose “Output format” and “Quality”.
  7. Press “Resize 6 image(s)” and download the files one by one or with “Download all (6) as ZIP”.

Five ways to set the size

Social media sizes

A menu of 20 ready sizes in four groups. The output always has exactly the pixels shown in the preset name.

Exact size

You type both “Width (px)” and “Height (px)”. The output has exactly that size, so a photo with other proportions has to be cropped, padded or stretched.

By width and By height

You type one side and the other follows from the photo’s proportions. Nothing is cut off. The defaults are 1920 px wide or 1080 px high.

By percent

A “Scale” slider from 5% to 200%, starting at 50%. At 50% both sides are halved and the file holds a quarter of the pixels.

Don’t enlarge smaller images

This box is ticked by default in the three proportional modes. A 1200 px photo then stays 1200 px even if you ask for 1920. Untick it to allow enlarging. In “Exact size” and with presets the output always has the requested size, so smaller photos are enlarged.

When the shape does not match

OptionWhole photo keptOutput has the exact target sizeTypical use
Smart crop — faces and the subject stay in the frameNo, the edges are cutYesPosts, thumbnails, avatars
Fit with blurred background (Reels / TikTok style)YesYesA landscape photo in a vertical story
Fit with colour backgroundYesYesProduct photos, logos, documents
Shrink to fit — no padding, result may be smallerYesNo, one side is shorterUpload rules such as “at most 1920×1080”
Stretch to the exact size (distorts)Yes, but distortedYesPatterns and textures only

Blurred background

The empty sides are filled with an enlarged, blurred and slightly darkened copy of the same photo, so the picture in the middle stands out.

Colour background

“Background colour” offers “White”, “Black”, “Custom colour” with a colour picker, and “Transparent (PNG)”. A transparent canvas cannot be stored in a JPG, so the file is saved as PNG in that case.

How smart crop chooses the frame

Photos with faces

A small face detector looks at a reduced copy of the photo. The frame is centred horizontally on all the faces it finds. Vertically the faces are placed at about 42% of the frame height, slightly above the middle, the way portraits are normally composed. If the faces fill almost the whole frame, they are simply centred. The pane shows the outcome, for example “2 face(s) found”.

Photos without faces

The tool measures where the picture has the most edges and texture and puts the frame over that area, with a slight preference for the centre. A product on a plain table or a building against the sky is found this way. The pane then says “No faces — framed by detail”.

Moving the frame yourself

Drag the frame in the “Original” pane. The “Zoom” slider goes from 1× to 3× and tightens the frame around the subject. “Reset framing” returns to the automatic position. The label changes to “Framed by hand”.

The 20 presets

PresetPixelsRatio
Instagram post (square)1080×10801:1
Instagram post (portrait)1080×13504:5
Instagram post (landscape)1080×5661.91:1
Instagram story / Reels1080×19209:16
TikTok video cover1080×19209:16
YouTube thumbnail1280×72016:9
YouTube Shorts1080×19209:16
YouTube channel banner2560×144016:9
Facebook post1200×6301.91:1
Facebook cover820×312about 2.6:1
X / Twitter post1600×90016:9
X / Twitter header1500×5003:1
LinkedIn post1200×6271.91:1
LinkedIn banner1584×3964:1
Pinterest pin1000×15002:3
Avatar / profile (Telegram, Discord)512×5121:1
WhatsApp profile500×5001:1
Full HD1920×108016:9
4K3840×216016:9
A4 at 300 DPI2480×3508A4 portrait

Platforms change their recommended sizes from time to time. If a network asks for something that is not in the list, type it in “Exact size”.

Settings by task

TaskMode and sizeIf proportions differ
Phone photo for an Instagram feed postInstagram post (portrait) · 1080×1350Smart crop
Landscape photo in a storyInstagram story / Reels · 1080×1920Fit with blurred background
Video thumbnailYouTube thumbnail · 1280×720Smart crop
Product on a square white canvasExact size, equal width and heightFit with colour background, White
Logo on a transparent canvasExact sizeFit with colour background, Transparent (PNG)
Photos for email or a web pageBy width, 1920 or 1280not needed
Halve a set of screenshotsBy percent, 50%not needed
Profile pictureAvatar / profile · 512×512Smart crop, then Zoom

Output format and quality

“Auto (keep type)” saves PNG as PNG and WebP as WebP; every other source, HEIC included, becomes JPG. You can also force JPG, PNG or WebP for the whole batch.

“Quality” runs from 50% to 100% and starts at 90%. It applies to JPG and WebP and is hidden for PNG. JPG has no transparency, so transparent areas of a source picture turn white in a JPG result.

Working with a batch

One mode and one target size apply to all files, but every photo gets its own frame. Click a row in the list to show that photo in the editor and adjust it. A pencil mark after the file name means it was framed by hand, and a face icon with a number shows how many faces were found.

Each row shows the original dimensions and, after resizing, the new dimensions and file size. Downloads carry the new size in their name, for example beach-1080x1350.jpg, and the archive is called resized-images.zip.

Sharpness: smaller and larger

Making a photo smaller

Large reductions are done in several steps of one half each, not in a single jump. This avoids the jagged edges and shimmer that a one-step reduction leaves on fine patterns such as fabric, fences and hair.

Making a photo larger

Enlarging only spreads the existing pixels over a bigger area; the picture becomes softer, not more detailed. For a real gain in detail, enlarge the photo with the AI image upscaler first and bring it to the exact size here.

Pixels and print

The tool works in pixels only. For print, multiply the size in inches by the print resolution: 4×6 in at 300 DPI is 1200×1800 px. The A4 preset is already calculated for 300 DPI.

What the resizer leaves to other tools

  • Free cropping, rotating and straightening. The frame here always has the target proportions. Use the image cropper for anything else.
  • A file-size limit in KB. Resizing changes pixels, not kilobytes. Run the result through the image compressor to get under a limit.
  • A new background behind a person or product. Cut the subject out with the background remover and then use “Fit with colour background”.
  • Animation and metadata. An animated GIF is reduced to its first frame, and camera data such as date and GPS position is not copied to the result.

What runs on your device

Face detection uses YuNet, an open-source model under the MIT licence. The file is 230 KB, is served by this site and runs on the processor through WebAssembly; no graphics card is needed. It is used only to position the frame. Decoding, cropping and scaling are done by your browser, and neither the photos nor the detected face positions are sent anywhere.

Fixing common resize problems

The frame cut off someone’s head

The detector missed a face, which happens with very small faces in a wide shot, profiles and faces partly covered. Drag the frame, or switch to “Fit with blurred background” to keep everyone.

The result looks soft

The source has fewer pixels than the target, so it was enlarged. Check the dimensions in the list, and upscale the photo first if it is much smaller than the target.

The picture is stretched

“Stretch to the exact size (distorts)” is selected. Choose smart crop or one of the fit options.

The result is smaller than the preset

That is how “Shrink to fit” works: proportions are kept and nothing is padded, so one side ends up shorter. Pick a fit option with a background for the full size.

The button stays on “Analysing photos…”

Photos are analysed one after another, so a batch of 50 large files takes a while. If face detection does not answer within 20 seconds for a photo, the tool gives up on faces and frames that photo by detail.