Free Online AI Image Resolution Helper for SDXL & Flux.1
AI Image Resolution Helper (SDXL, Flux & SD 1.5)
Find exact 64-divisible native resolutions, aspect ratios, and 1.5x/2x upscale sizes for AI generators.
| SDXL Recommended Buckets | Pixels (W x H) | Ratio |
|---|---|---|
| Square | 1024 x 1024 | 1:1 |
| Landscape Photo | 1216 x 832 | ~3:2 |
| Widescreen | 1344 x 768 | ~16:9 |
| Portrait / Poster | 896 x 1152 | ~3:4 |
1024 x 1024 px
1.05 MP | Divisible by 64 | Flag: --ar 1:1
- 1.5x Hires.fix Upscale1536 x 1536
- 2.0x Upscale Size2048 x 2048
- Exact Ratio Match1.000 (0.0% diff)
About This Free Online AI Image Resolution Helper
Picking random pixel sizes like 1000 x 600 in Stable Diffusion XL (SDXL) or Flux often leads to duplicated limbs, cropped heads, or blurry textures. Diffusion models are trained on specific megapixel buckets (around 1.05 megapixels for SDXL and 1 to 2 megapixels for Flux.1) with dimensions divisible by 64 or 16.
This free online AI image resolution helper calculates optimal width and height pairs for any aspect ratio, snaps them cleanly to multiples of 64 or 16, previews the frame shape visually, and computes 1.5x and 2x upscale targets for ComfyUI, Automatic1111, Forge, and Midjourney.
How This Tool Works
For any target aspect ratio W:H and megapixel budget MP, the calculator solves for ideal pixel dimensions:
- Pixel Budget Math: Computes exact height from
sqrt((MP * 1,000,000) / (W / H))and width fromheight * (W / H), then rounds both to the nearest multiple of64(required by SDXL/SD1.5 latent space) or16(supported by Flux.1). - Model Defaults: Switching tabs sets SDXL to
~1.05 MP / 64, Flux.1 to~1.50 MP / 16, SD 1.5 to~0.26 MP / 64, and Midjourney to clean--arflags. - Upscale Targets: Multiplies your base resolution by
1.5xand2.0xfor Hires.fix or latent upscaling workflows.
Steps to Use This Tool
- Select your AI generator tab at the top: SDXL, Flux.1, SD 1.5, or Midjourney v6.
- Click an aspect ratio preset (like
16:9for thumbnails or9:16for Reels) or type custom ratio values. - Adjust Target Megapixels or Grid Multiple if you want higher native Flux resolution (up to 2.0 MP).
- Click Copy Width x Height for ComfyUI/A1111, or Copy --ar Flag for Midjourney prompts.
Tips for Crisp AI Generations
- Stick near 1.05 MP for SDXL: Generating at
1024x1024,1344x768, or896x1152first and then running a 1.5x or 2x upscaler produces far cleaner anatomy than forcing2048x2048on the initial pass. - Flip portrait vs landscape cleanly: Swap Width and Height (e.g.,
832x1216vs1216x832) to keep the exact same 1.01 MP pixel budget.
Frequently Asked Questions
What are the best resolutions for SDXL?
Official SDXL 1.0 training buckets include 1024x1024 (1:1), 1152x896 (9:7), 1216x832 (3:2), 1344x768 (16:9), and 1536x640 (21:9), plus their portrait equivalents.
Why must Stable Diffusion sizes be divisible by 64 (or 8/16)?
The VAE encoder compresses images into a latent grid downscaled by a factor of 8, and UNet attention layers work cleanest when dimensions divide evenly by 64.
What is the max native resolution for Flux.1?
Flux.1 Dev and Schnell handle resolutions cleanly from 0.5 MP up to 2.0 MP (such as 1920x1088 or 1408x1408) as long as dimensions are multiples of 16.
How do I make 16:9 or 9:16 images in Midjourney?
Append --ar 16:9 or --ar 9:16 to the end of your Midjourney prompt.
Is any data sent to a server?
No. Everything runs locally inside your browser with JavaScript.
Comments
Post a Comment