• 16:9 1920 × 1080
  • 4K UHD 3840 × 2160 is 16:9
  • 21:9 really 64:27 (2.37:1)
  • 9:16 Reels · Shorts · TikTok
  • 4:5 1080 × 1350 portrait posts
  • 27″ 1440p 108.8 PPI
  • 48 dp 144 px at xxhdpi
  • 1366 × 768 ≈ 16:9
  • 16:10 11% taller than 16:9
  • 2.39:1 cinema scope
  • 32:9 5120 × 1440
  • 3:2 6000 × 4000 camera sensors
  1. Home
  2. AI Image & Video Sizes
  3. Stable Diffusion XL

Stable Diffusion XL sizes and aspect ratios

Stable Diffusion XL makes 9 set sizes. Set it with width: WIDTH, height: HEIGHT.

Stability AI’s image model, released . Checked against Stability AI’s own documentation on .

9 shapes

What Stable Diffusion XL makes

9 sizes: 1024 × 1024, 1152 × 896, 896 × 1152, 1216 × 832, 832 × 1216, 1344 × 768, 768 × 1344, 1536 × 640 and 640 × 1536.

Set it with width: WIDTH, height: HEIGHT

Its best setting for common sizes

Find the best Stable Diffusion XL size

Enter whole pixels, from 1 to 100,000.

The blank PNG is for apps with no size setting, such as the Gemini app: add it to your chat and ask for your picture on it. It’s made in your browser.

Best setting for 1080 × 1920

  1. Stable Diffusion XL Stability AI · image

    Set
    width: 768, height: 1344
    You get
    768 × 1344
    Then
    Scale up to 1097 × 1920 (×1.43), then trim 8 px from the left and 9 px from the right

    Scaling up ×1.43 softens detail.

Best setting for common sizes

For each size: the setting to ask for, what Stable Diffusion XL gives you, and what to do to reach the exact size.

ForSetYou getThen
9:16 video
1080 × 1920
width: 768, height: 1344 768 × 1344 Scale up to 1097 × 1920 (×1.43), then trim 8 px from the left and 9 px from the right
Scaling up ×1.43 softens detail.
4:5 post
1080 × 1350
width: 896, height: 1152 896 × 1152 Scale up to 1080 × 1389 (×1.21), then trim 19 px from the top and 20 px from the bottom
Scaling up ×1.21 softens detail.
Full HD
1920 × 1080
width: 1344, height: 768 1344 × 768 Scale up to 1920 × 1097 (×1.43), then trim 8 px from the top and 9 px from the bottom
Scaling up ×1.43 softens detail.
720p
1280 × 720
width: 1344, height: 768 1344 × 768 Scale to 1280 × 731 (×0.952), then trim 5 px from the top and 6 px from the bottom
Square
1080 × 1080
width: 1024, height: 1024 1024 × 1024 Scale up to 1080 × 1080 (×1.05)
Scaling up ×1.05 softens detail.
Instagram
1080 × 1440
width: 896, height: 1152 896 × 1152 Scale up to 1120 × 1440 (×1.25), then trim 20 px from the left and right
Scaling up ×1.25 softens detail.
Pinterest
1000 × 1500
width: 832, height: 1216 832 × 1216 Scale up to 1026 × 1500 (×1.23), then trim 13 px from the left and right
Scaling up ×1.23 softens detail.
YouTube
3840 × 2160
width: 1344, height: 768 1344 × 768 Scale up to 3840 × 2194 (×2.86), then trim 17 px from the top and bottom
Scaling up ×2.86 softens detail.
LinkedIn
1512 × 256
width: 1536, height: 640 1536 × 640 Scale to 1512 × 630 (×0.984), then trim 187 px from the top and bottom
1512 × 256 (5.91:1) is wider than any shape it makes, so a lot is trimmed.

Good to know

  • Stability calls these the best sizes for SDXL 1.0, announced on July 26, 2023; other sizes may crop the subject unexpectedly.

Sources

Every size on this page comes from Stability AI’s own documentation.

Checked against SDXL AWS documentation (Stability AI) and Announcing SDXL 1.0 (Stability AI).

Other image models

More tools