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.

Try the Compress to KB

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

  1. Open TikTok for Developers — Media Transfer Guide and read Image restrictions: WebP and JPEG, maximum 1080p picture size, maximum 20 MB per image.
  2. If your source is PNG or another format not in that table, convert to JPEG or WebP before upload.
  3. Resize so picture size does not exceed 1080p before you compress — do not rely on compression alone to fix an oversized canvas.
  4. 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.
  5. 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

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

All compress to kb guides