Media Guidelines

Twitter/X

Image and video requirements for posting to Twitter/X

Image Requirements

PropertyRequirement
Max Images4 per post
FormatsJPEG, PNG, WebP, GIF
Max File Size5 MB (images), 15 MB (GIFs)
Min Dimensions4 × 4 px
Max Dimensions8192 × 8192 px
Recommended1200 × 675 px (16:9)

Aspect Ratios

TypeRatioDimensions
Landscape16:91200 × 675 px
Square1:11200 × 1200 px
Portrait4:51080 × 1350 px

GIF Support

Twitter/X has excellent GIF support:

  • Max file size: 15 MB
  • Max dimensions: 1280 × 1080 px
  • Animated GIFs play automatically in timeline
  • Only 1 GIF per post (counts as all 4 image slots)
{
  "content": "Check out this animation!",
  "mediaItems": [
    { "url": "https://example.com/animation.gif" }
  ],
  "platforms": [
    { "platform": "twitter", "accountId": "acc_123" }
  ]
}

Video Requirements

PropertyRequirement
Max Videos1 per post
FormatsMP4, MOV
Max File Size512 MB
Max Duration2 minutes 20 seconds (140 sec)
Min Duration0.5 seconds
Max Dimensions1920 × 1200 px
Min Dimensions32 × 32 px
Frame Rate40 fps max
Bitrate25 Mbps max

For best quality on Twitter/X:

PropertyRecommended
Resolution1280 × 720 px (720p)
Aspect Ratio16:9 (landscape) or 1:1 (square)
Frame Rate30 fps
CodecH.264
AudioAAC, 128 kbps

Threads (Multi-Tweet)

When creating threads, each tweet can have its own media:

{
  "platforms": [
    {
      "platform": "twitter",
      "accountId": "acc_123",
      "platformSpecificData": {
        "threadItems": [
          {
            "content": "1/ Starting a thread with an image",
            "mediaItems": [{ "url": "https://example.com/image1.jpg" }]
          },
          {
            "content": "2/ Second tweet with video",
            "mediaItems": [{ "url": "https://example.com/video.mp4" }]
          },
          {
            "content": "3/ Final tweet, text only"
          }
        ]
      }
    }
  ]
}

Common Issues

Image Too Large

Twitter rejects images over 5 MB. Compress before upload or Late will attempt automatic compression.

GIF Won't Animate

  • Check file size (must be ≤ 15 MB)
  • Ensure it's a true animated GIF, not a static image with .gif extension
  • Twitter may convert large GIFs to video

Video Rejected

Common causes:

  • Duration over 2:20
  • File size over 512 MB
  • Unsupported codec (use H.264)
  • Frame rate over 40 fps