Compress to KB topic guide
Compress images for TikTok: hit the 20 MB photo upload limit
Direct answer
When you publish photo content through TikTok’s Content Posting API, TikTok for Developers documents image transfer rules separately from the much larger video upload cap. The Media Transfer Guide — Image restrictions lists supported formats WebP and JPEG, a maximum picture size of 1080p, and a maximum of 20 MB for each image. Photo posts use media_type=PHOTO with a photo_images array (up to 35 photo content URLs per the Photo post API reference). If your export exceeds 20 MB, uses PNG, or overshoots 1080p, prepare and compress before you call /v2/post/publish/content/init/ — this page is documented API image transfer for photo posts, not consumer in-app-only behavior and not TikTok video uploads.
What this workflow handles
Treat TikTok’s documented 20 MB per-image ceiling as your byte budget for Content Posting API photo transfer. Official Image restrictions: supported formats WebP and JPEG; picture size maximum 1080p; size maximum 20 MB for each image (developers.tiktok.com/doc/content-posting-api-media-transfer-guide, last updated August 4, 2026 as fetched). That is 20480 KB in binary terms — set Compress to KB comfortably under 20480 KB; the limit is a ceiling, not a target. PNG is not listed in that Image restrictions table; if your source is PNG, convert to JPEG or WebP before API upload. 1080p is a resolution ceiling — downscale if your canvas exceeds it, and compress for bytes; do not invent extra pixel rules TikTok does not publish on that page. Multi-photo posts can include up to 35 URLs in photo_images — each image still must meet transfer rules on its own. compress-image-for-pinterest covers Pinterest Help web Image Pin uploads at 20 MB with a different format list (BMP, JPEG, PNG, TIFF, WEBP) — same megabyte number, different product. compress-image-for-discord covers Discord Support 20 MB free chat attachments — not TikTok API photo posts. compress-image-for-youtube covers YouTube Help custom thumbnails (50 MB desktop; 50 MB mobile video, 10 MB mobile podcasts; JPG or PNG). compress-image-for-instagram covers Instagram Graph API 8 MB JPEG feed/Story/Reels paths. compress-image-for-threads covers Threads API 8 MB JPEG/PNG image posts with width 320–1440 rules. compress-image-for-bluesky covers Bluesky post embeds at 2,000,000 bytes per blob. TikTok video uploads allow much larger files (documented separately in the same media-transfer guide) — out of scope here. web.dev’s compress-images guide recommends experimenting with quality rather than assuming one universal setting. 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 20480 KB (TikTok’s 20 MB per-image cap is a ceiling, not a target) before you attach WebP or JPEG photos to a Content Posting API photo post. For Threads API 8 MB image posts, see Compress image for Threads. For cross-network width presets, see Social media image resizer.
How to use it
- Open TikTok for Developers — Media Transfer Guide and read Image restrictions: WebP and JPEG, maximum 1080p picture size, maximum 20 MB per image.
- If your source is PNG or another format not in that table, convert to JPEG or WebP before upload.
- Resize so picture size does not exceed 1080p before you compress — do not rely on compression alone to fix an oversized canvas.
- Enter a Compress to KB target comfortably under 20480 KB (20 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.
- Upload via Content Posting API photo flow (/v2/post/publish/content/init/ with media_type=PHOTO and photo_images URLs) and confirm each file meets transfer rules; re-read developers.tiktok.com docs if validation fails.
Frequently asked questions
What image file size limit does TikTok document for Content Posting API image transfer?
TikTok for Developers — Media Transfer Guide (Image restrictions) lists a maximum of 20 MB for each image. Treat 20480 KB as the ceiling — set your Compress to KB target comfortably under that limit, not at it.
Which image formats does TikTok list for API image transfer?
The same Image restrictions table lists supported image formats WebP and JPEG. PNG is not listed there — export or convert to JPEG or WebP before you upload through the Content Posting API.
What does TikTok mean by maximum 1080p picture size?
The Media Transfer Guide Image restrictions row states picture size: Maximum 1080p. Treat that as a resolution ceiling for photo content you transfer via the API — scale down if your export exceeds it, and compress for file size; do not add undocumented pixel requirements beyond what TikTok publishes.
How is TikTok’s 20 MB API photo limit different from Pinterest’s 20 MB Image Pin or Discord’s 20 MB chat cap?
Different products and rule sets. Pinterest Help web Image Pins allow up to 20 MB with BMP, JPEG, PNG, TIFF, WEBP — see compress-image-for-pinterest. Discord Support documents 20 MB per file for free chat attachments — see compress-image-for-discord. Shopify Help caps product/collection and Files images at 20 MB with separate megapixel rules — see compress-image-for-shopify. TikTok Content Posting API Image restrictions allow WebP and JPEG only, 1080p max picture size, 20 MB per image for photo posts — this page. Same megabyte ceiling on paper for Pinterest, Discord, and Shopify admin; different formats, resolution rows, and upload paths.
How is TikTok’s limit different from Instagram, Threads, or Bluesky?
Instagram Graph API JPEG publishing paths document 8 MB — compress-image-for-instagram. Threads API image posts allow JPEG or PNG up to 8 MB with documented width rules — compress-image-for-threads. Bluesky post embeds cap each image blob at 2,000,000 bytes — compress-image-for-bluesky. TikTok photo transfer allows up to 20 MB per WebP/JPEG image with a 1080p ceiling — a higher byte budget but a narrower official format list than Threads.
JPEG or WebP for a TikTok API photo upload?
Both are listed in Image restrictions. Prefer JPEG for photographs. Use WebP when it still meets quality expectations and fits comfortably under 20480 KB after compression.
What KB target should I use in Compress to KB?
Start from 20 MB = 20 × 1024 = 20480 KB. That is a ceiling, not a target — enter a budget comfortably under 20480 KB. Quality-sweep at dimensions at or under 1080p first; downscale only if resolution or the quality floor still exceeds the budget.
Does this page cover TikTok video uploads or in-app-only posting rules?
No. The Media Transfer Guide documents separate video limits (much larger than 20 MB). This guide focuses on documented Content Posting API image transfer and photo posts (media_type=PHOTO, photo_images). It does not invent consumer-app-only limits without a developers.tiktok.com source.
Sources
- TikTok for Developers — Media Transfer Guide (Image restrictions): https://developers.tiktok.com/doc/content-posting-api-media-transfer-guide — Supported formats WebP and JPEG; picture size maximum 1080p; maximum 20 MB per image; video limits in the same guide (out of scope for this page).
- TikTok for Developers — Photo post API reference: https://developers.tiktok.com/docs/en/content-posting-api-reference-photo-post — Photo posts via /v2/post/publish/content/init/ with media_type=PHOTO; photo_images array up to 35 photo content URLs.
- TikTok for Developers — Get started (upload content): https://developers.tiktok.com/docs/en/content-posting-api-get-started-upload-content — Content Posting API upload workflow context alongside media-transfer image rules.
- 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 TikTok Content Posting API image transfer file size, WebP/JPEG format, and 1080p picture-size rules for photo posts. Related guides cover general KB budgets, email, WhatsApp, LinkedIn share photos, Instagram Graph JPEG caps, Twitter / X still-image caps, Threads API image posts, Bluesky post embeds, Notion inline image caps, WordPress Media Library caps, Facebook Help photo uploads, Pinterest web Image Pins, YouTube custom thumbnails, 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 Threads
Threads API image posts: 8 MB max JPEG or PNG; width 320–1440 px, aspect ratio up to 10:1.
-
Compress images for Bluesky
Bluesky post embeds: 2 MB max per image blob (image/*); up to 4 images; alt text required.
-
Compress images for Shopify
Shopify Help 20 MB product/collection and Files image uploads; megapixel and dimension caps.
-
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 Threads: hit the 8 MB image post limit
- Compress images for Bluesky: hit the 2 MB post embed 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