AI Tools · Image and platform sizes

AI Image Size Calculator

Convert aspect ratios to pixels, choose export sizes for social platforms, and copy Midjourney --ar flags for image and video prompts. This version includes current platform presets and safer model-size logic.

Aspect ratio to pixels

Platform size presets

Decimal or dimension converter

Quick platform reference

PlacementPlatformPixelsRatio

Why this tool is used

Match model size to final placement

AI image models usually generate from a limited set of sizes, while Instagram, YouTube, TikTok, ads, print, and wallpapers each expect different final dimensions. This tool helps you start with the closest ratio before you spend credits.

Avoid bad crops

If you generate a square image for a vertical Story or a wide thumbnail, important subjects can be cut off later. Pick the target platform first, then generate near that shape and resize only at the end.

Copy the right prompt values

Use the calculated aspect ratio for Midjourney, the recommended pixel size for image editors, and the nearest supported size for OpenAI, DALL-E, Stable Diffusion, Flux, or AI video workflows.

How to use it for a platform

  1. Select the final placement. For example, choose YouTube thumbnail, Instagram Story, LinkedIn square ad, Pinterest Pin, or phone wallpaper.
  2. Click Use this preset. The calculator copies that platform's ratio into the image-size section and uses the shorter edge as the base size.
  3. Choose the target model/workflow. Pick Midjourney for --ar, DALL-E 3 legacy for OpenAI Image API legacy sizes, or Stable Diffusion/Flux for diffusion-friendly multiples.
  4. Generate close, then export exact. Use the model result for generation, then crop, resize, or upscale to the final platform pixels shown in the platform card.
OpenAI / DALL-E example

DALL-E 3 for a YouTube thumbnail

Goal: a 16:9 YouTube thumbnail. Select YouTube thumbnail HD or YouTube thumbnail 4K, then choose DALL-E 3 legacy. The closest DALL-E 3 landscape generation size is 1792 x 1024px; export the final thumbnail as 1280 x 720px or 3840 x 2160px.

{
  "model": "dall-e-3",
  "prompt": "A clean 16:9 YouTube thumbnail with a centered subject and readable title space",
  "size": "1792x1024"
}
OpenAI / DALL-E example

DALL-E 3 for Reels, Shorts, or Stories

Goal: a vertical 9:16 mobile canvas. Select Instagram Story / Reel, YouTube Shorts cover, or TikTok in-feed vertical, then choose DALL-E 3 legacy. Generate at 1024 x 1792px, then export at 1080 x 1920px.

{
  "model": "dall-e-3",
  "prompt": "Vertical product poster, subject centered, empty space at top and bottom for app UI",
  "size": "1024x1792"
}
Midjourney example

Instagram portrait feed

Select Instagram feed portrait, click Use this preset, then copy --ar 4:5. Generate with the subject centered and export the final file at 1080 x 1350px.

Stable Diffusion / Flux example

Pinterest standard Pin

Select Pinterest standard Pin, then choose Stable Diffusion XL / SD3 or Flux / local diffusion. The calculator rounds dimensions to practical multiples so local pipelines are less likely to reject the size.

Research sources

Platform specs change. These presets were reviewed against official or primary help pages where available, plus practical defaults for AI image workflows.

How to use this calculator

Start with the final placement whenever you know it. If you are generating in Midjourney, copy the whole-number --ar flag, generate close to the target, then crop or upscale to the exact platform preset. If you are using OpenAI Image API or DALL-E, choose the nearest supported model size first, then export the exact platform dimensions after generation.

Last reviewed: April 28, 2026. Verify exact requirements in the source platform before running paid campaigns.

Frequently asked questions

Why does Midjourney reject decimal aspect ratios?

Midjourney aspect ratio flags use whole numbers. Convert 1.39:1 to 139:100 before using --ar.

Which OpenAI image sizes should I use?

For GPT Image models, use the documented square, landscape, portrait, or auto size options. For DALL-E 3 legacy, use the closest of 1024x1024, 1792x1024, or 1024x1792, then resize or crop to the exact platform export.

Why are platform sizes different from AI generator sizes?

Platform sizes are final delivery targets. AI generator sizes are model constraints. Generate near the right aspect ratio first, then crop, resize, or upscale.

What is best for vertical social video?

Use 9:16. Practical exports are 1080x1920 for common vertical video and 1440x2560 when you want a higher-resolution working master.

Does this tool upload my image?

No. It only calculates ratios and dimensions in your browser.

Related AI Tools