# Media requirements

Image and video requirements for Threads posts, and the rules for media URLs.

Images above 8 MB are compressed automatically. Original files are preserved.

## Images

| Property | Requirement |
|----------|-------------|
| Max images | 20 per post (carousel), or 10 items when a video is included |
| Formats | JPEG, PNG |
| Max file size | 8 MB per image (auto-compressed) |
| Recommended | 1080 x 1350 px (4:5 portrait) |

| Ratio | Dimensions | Notes |
|-------|------------|-------|
| 4:5 | 1080 x 1350 px | Portrait, recommended |
| 1:1 | 1080 x 1080 px | Square |
| 16:9 | 1080 x 608 px | Landscape |

## Videos

| Property | Requirement |
|----------|-------------|
| Max videos | 1 per post |
| Format | MP4 (H.264/AAC) |
| Max file size | 1 GB |
| Max duration | 5 minutes |
| Aspect ratio | 9:16 (vertical), 16:9 (landscape), 1:1 (square) |
| Resolution | 1080p recommended |
| Codec | H.264 |
| Frame rate | 30 fps recommended |
| Audio | AAC, 128 kbps |

## Media URLs

Threads fetches media the same way Instagram does. A media URL must:

- be publicly accessible with no authentication
- return the media bytes with the correct `Content-Type` header
- not redirect to an HTML page

Dropbox, OneDrive and iCloud sharing links return a webpage and fail. [Google Drive links](/guides/media-uploads#google-drive-links) work when the file is shared with "Anyone with the link".

WebP images may fail, so use JPEG or PNG.

To host files instead, use the [media endpoint](/guides/media-uploads).