Compress to KB topic guide
Compress images for Threads: hit the 8 MB image post limit
Direct answer
When you publish still images through the Threads API, Meta documents a separate media spec from Instagram Graph feed, Story, or Reels cover paths. Threads Posts — Media Specifications (Image) lists JPEG and PNG, an 8 MB maximum file size, width between 320 and 1440 pixels (scaled up or down if needed), aspect ratio up to 10:1, and sRGB color space. If your export exceeds 8 MB or you want fewer surprises at upload time, set a deliberate KB target and compress before you call the API — this page is Threads image file size, not Instagram in-app feed behavior or Facebook timeline uploads.
What this workflow handles
Treat the Threads API 8 MB image ceiling as your byte budget for single IMAGE posts (carousels are a separate API workflow with up to 20 children — each child still must meet media rules). Official specs: format JPEG or PNG; file size 8 MB maximum; aspect ratio limit 10:1; minimum width 320 (scaled up if necessary); maximum width 1440 (scaled down if necessary); height varies with width and aspect ratio; color space sRGB (other spaces converted to sRGB). Prepare the canvas before compressing: crop or resize so width stays within 320–1440 and aspect ratio does not exceed 10:1, export sRGB, then pick JPEG for photographs or PNG when sharp text or graphics still fit under the cap. The Help/API 8 MB limit is a ceiling, not a target — set Compress to KB comfortably under 8192 KB, quality-sweep at the current dimensions first, and downscale only if the quality floor still exceeds the budget — do not shrink below 320 px width just to save bytes unless aspect or width rules already force a rethink. web.dev’s compress-images guide recommends experimenting with quality rather than assuming one universal setting. compress-image-for-instagram covers Instagram Graph API JPEG-only feed, Story, and Reels cover publishing — same 8 MB number on some paths but different product, formats, and pixel rules; do not merge the workflows. compress-image-for-facebook covers Meta Help Center timeline photo guidance. compress-image-for-bluesky covers Bluesky post embeds at 2,000,000 bytes per image blob — a stricter ceiling than Threads’ 8 MB API image posts or X’s 5 MB still-image cap. compress-image-for-tiktok covers TikTok Content Posting API photo transfer at 20 MB per WebP/JPEG image with a 1080p picture-size ceiling — a higher byte budget but a different product and format list. Video posts on Threads use separate 1 GB MOV|MP4 specs — out of scope here. Beita’s Compress to KB uses a temporary analysis upload with no long-term storage; see the Privacy Policy for retention details.
Use Compress to KB with a target comfortably under 8192 KB (Help/API 8 MB is a ceiling, not a target) before you attach an image to a Threads API IMAGE post. For Instagram Graph feed, Story, and Reels cover JPEG rules, see Compress image for Instagram. For cross-network width presets, see Social media image resizer.
How to use it
- Open Threads Posts on developers.facebook.com/docs/threads/posts/ and read Media Specifications (Image): JPEG or PNG, 8 MB max, width 320–1440, aspect ratio up to 10:1, sRGB.
- Crop or resize in your editor so width and aspect ratio meet the spec before you compress — do not rely on compression alone to fix an out-of-range canvas.
- Export sRGB JPEG for photos or PNG for sharp graphics when it still fits the byte budget.
- Enter a Compress to KB target comfortably under 8192 KB (Help/API 8 MB is a ceiling, not a target), quality-sweep at the current dimensions first, and downscale only if the quality floor still exceeds the budget.
- Publish via your Threads API integration and confirm the file is at or under 8 MB; re-read Meta specs if validation fails.
Frequently asked questions
What image file size limit does the Threads API document for image posts?
Threads Posts — Media Specifications (Image) on developers.facebook.com/docs/threads/posts/ lists an 8 MB maximum file size for image posts. Treat 8192 KB as the ceiling — set your Compress to KB target comfortably under that limit, not at it.
Which formats and pixel rules apply to Threads API image posts?
The same spec lists JPEG and PNG as supported formats; aspect ratio up to 10:1; minimum width 320 and maximum width 1440 (with scaling if needed); height varies with width and aspect ratio; sRGB color space with conversion from other spaces.
How is Threads’ 8 MB image spec different from Instagram Graph’s 8 MB JPEG rule?
Different API products. Instagram Graph IG User Media documents JPEG-only feed, Story, and Reels cover paths with feed aspect 4:5–1.91:1 and Instagram Help feed sizing — see compress-image-for-instagram. Threads API image posts allow JPEG and PNG with aspect ratio up to 10:1 per Threads Posts media specs. Same megabyte ceiling on paper; different formats and geometry.
JPEG or PNG for a Threads API image post?
Both are officially supported. Prefer JPEG for photographs. Use PNG when you need crisp text or flat graphics and the file still fits comfortably under 8192 KB after compression.
What KB target should I use in Compress to KB?
Start from Threads Posts media specs 8 MB maximum (8192 KB). That is a ceiling, not a target — enter a Compress to KB budget comfortably under 8192 KB. Quality-sweep first at dimensions that already meet width 320–1440 and aspect ≤10:1; allow stepped downscale only if the quality floor still exceeds the budget.
Does this page cover Threads carousel or text-only posts?
Carousels are an API workflow with multiple media children (documented minimum two items, up to twenty images or videos) — each image child still must meet image media specs. Text-only posts have a separate 500-character limit in the same docs; this page focuses on image file size for IMAGE posts.
Sources
- Meta — Threads Posts (media specifications, image): https://developers.facebook.com/docs/threads/posts/ — JPEG and PNG image posts; 8 MB max file size; aspect ratio up to 10:1; width 320–1440; sRGB; carousel and text-post context in the same doc.
- web.dev — Compress images: https://web.dev/articles/compress-images — Experiment with quality settings; there is no one universal compression setting.
- Pillow — Image.save (JPEG quality, optimize): https://pillow.readthedocs.io/en/stable/handbook/image-file-formats.html#jpeg — JPEG quality and optimize parameters used in the quality sweep behind Compress to KB.
Explore the compress to kb topic cluster
This guide covers Threads API image post file size, format, and width/aspect rules. Related guides cover general KB budgets, email, WhatsApp, LinkedIn share photos, Instagram Graph JPEG caps, Twitter / X still-image caps, Notion inline image caps, WordPress Media Library caps, Facebook Help photo uploads, Pinterest web Image Pins, YouTube custom thumbnails, Bluesky post embeds, TikTok Content Posting API photo transfer, Discord chat attachments, and the Compress to KB tool.
Related guides
-
Compress image to KB
General hard byte-budget workflow for forms and marketplaces.
-
Compress images for email
Gmail and Outlook.com 25 MB attachment caps.
-
Compress images for WhatsApp
Meta Cloud API 5 MB JPEG/PNG image-message cap.
-
Compress images for GitHub
GitHub Docs 10 MB cap for images and GIFs on issues and pull requests.
-
Compress images for Discord
Discord Support 20 MB free per-file upload cap.
-
Compress images for Telegram bots
Telegram Bot API sendPhoto 10 MB cap for inline bot photos.
-
Compress images for LinkedIn posts
LinkedIn Help 5 MB cap for share-box photo uploads.
-
Compress images for Instagram
Instagram Graph API 8 MB JPEG cap for feed, Story, and Reels cover.
-
Compress images for Twitter / X
X API 5 MB still-image cap for Posts and DMs (animated GIF 15 MB).
-
Compress images for Notion
Notion Help 5 MB cap for inline PNG/JPG display (all plans).
-
Compress images for WordPress
WordPress Media Library 2560 px big-image threshold and PHP upload_max_filesize limits.
-
Compress images for Facebook
Meta Help Center 15 MB photo uploads; keep PNG under 1 MB to avoid pixelation.
-
Compress images for Pinterest
Pinterest Help 20 MB web Image Pin max; BMP, JPEG, PNG, TIFF, WEBP.
-
Compress images for YouTube
YouTube Help custom thumbnails: 50 MB on desktop; 50 MB mobile video, 10 MB mobile podcasts; JPG or PNG.
-
Compress images for Bluesky
Bluesky post embeds: 2 MB max per image blob (image/*); up to 4 images; alt text required.
-
Compress images for TikTok
TikTok Content Posting API: 20 MB max WebP/JPEG per image; 1080p picture-size ceiling.
-
Compress to KB tool
Set a KB target and download a file under budget.
All compress to kb guides
- Compress image to KB: hit a hard file-size limit
- Compress images for email: hit Gmail and Outlook attachment caps
- Compress images for WhatsApp: hit the 5 MB image message cap
- Compress images for GitHub: hit the 10 MB image and GIF cap
- Compress images for Discord: hit the 20 MB free upload cap
- Compress images for Telegram bots: hit the sendPhoto 10 MB cap
- Compress images for LinkedIn posts: hit the 5 MB photo share limit
- Compress images for Instagram: hit the 8 MB JPEG upload limit
- Compress images for Twitter / X: hit the 5 MB image upload limit
- Compress images for Notion: stay under the 5 MB inline limit
- Compress images for WordPress: Media Library size and big-image rules
- Compress images for Facebook: file size and format before upload
- Compress images for Pinterest: hit the 20 MB web Image Pin cap
- Compress images for YouTube: custom thumbnail file-size limits
- Compress images for Bluesky: hit the 2 MB post embed limit
- Compress images for TikTok: hit the 20 MB photo upload limit
- Compress images for Shopify: hit the 20 MB and megapixel upload limits
- Compress images for Mastodon: hit the 16 MB post attachment limit
- Compress images for Slack: byte size and inline preview limits
- Compress images for eBay: hit the 12 MB listing photo limit
- Compress images for Etsy: stay under the 1 MB upload reliability tip
- Compress images for Medium: hit the 25 MB story-editor limit
- Compress images for Google Business Profile: fit 10 KB–5 MB photo rules
- Compress images for Wix: Media Manager limits and practical upload ceilings
- Compress images for Webflow: 4 MB Assets limits and upload prep
- Compress images for Squarespace: 20 MB cap and 500 KB performance recommendation
- Compress images for Ghost: Ghost(Pro) plan caps (5 MB–1 GB) and self-hosted 50 MB nginx default
- Compress images for Gumroad: 50 MB cover limit and thumbnail prep
- Compress images for beehiiv: 5 MB newsletter uploads, 1200×630 thumbnails, and 10 MB community posts
- Compress images for Mailchimp: 1 MB Content Studio uploads, 1024 KB targets, and legacy vs new builder widths
- Compress images for Kit: smaller-than-25 MB gallery, form/LP sizes, and email look-best width
- Compress images for Klaviyo: 10 MB email ceiling, 1024 KB load targets, form 5120 KB, and full-width dimensions
- Compress images for MailerLite: 10 MB File manager, 1024 KB campaign prep, GIF 4 MB, and width rules
- Compress images for Brevo: 5 MB Content library, layout widths, and HTML/attachment contrast
- Compress images for Substack: official sizes, PNG email banners, and dimension-first prep
- Compress images for Google Ads: 5120 KB JPG/PNG assets, aspect ratios, and surface-specific rows