Ziync.
HomeAbout

Services

Web Design & DevelopmentUI/UX DesignSEO & ContentPaid AdvertisingAI & AutomationDigital StrategyEvent Management

Hire Us

Hire a Next.js DeveloperWeb Development in Chennai

Overview

View All Services

BNex

BNex PlatformBNex Docs
PortfolioBlogsContact
Start a Project
HomeAbout

Services

Web Design & DevelopmentUI/UX DesignSEO & ContentPaid AdvertisingAI & AutomationDigital StrategyEvent Management

Hire Us

Hire a Next.js DeveloperWeb Development in Chennai

Overview

View All Services

BNex

BNex PlatformBNex Docs
PortfolioBlogsContact
Start a Project
Ziync.

We build high-performance digital engines and strategic marketing funnels for mid-size to enterprise growth.

Navigation

  • About
  • Services
  • Portfolio
  • BNex
  • BNex Docs
  • Blogs
  • WhatsApp Guides
  • WhatsApp Templates
  • Free Tools
  • Work With Us
  • Web Development Chennai

Services

  • Web Design & Dev
  • UI/UX Design
  • SEO & Content
  • Paid Advertising
  • Digital Strategy
  • AI & Automation

Popular Articles

  • AI Web Development 2026
  • Firebase Deploy Gap
  • Email Deliverability Guide
  • Autonomous Lead Generation
  • Why Automation Breaks
consult@ziync.com+91 80150 22745WhatsApp
Chennai, India

© 2026 Ziync. All Rights Reserved.

PrivacyTermsGDPR & DPDP
Home/Blogs/WhatsApp Business API
WhatsApp Business API
November 18, 2026
•
8 min read

WhatsApp Business API media limits: every size cap

Every media size limit in the WhatsApp Cloud API, in one table, plus the codec and pixel rules that reject files well under the stated cap.

Manikandan S
Manikandan S
Founder & Technical Lead at Ziync
#WhatsApp Business API#Cloud API#media
A table of WhatsApp Cloud API media size limits beside a video file being re-encoded
A table of WhatsApp Cloud API media size limits beside a video file being re-encoded
Executive Summary & Key Takeaways

Every media size limit in the WhatsApp Cloud API, in one table, plus the codec and pixel rules that reject files well under the stated cap. In this deep dive, we explore actionable strategies, real-world engineering blueprints, and future-proof patterns to elevate your digital operations.

Table of Contents
  • WhatsApp Cloud API media limits in one table
  • Images: 5 MB, but the pixel ceiling bites first
  • Video: 16 MB, and the codec rule that fails quietly
  • Audio: 16 MB, with one format trap
  • Documents: 100 MB, and why nobody should use it
  • `131053 Media file size too big` and the MIME error
  • Media IDs and URLs expire, and that is a design constraint
  • Templates with media headers
  • What I do in practice
  • Related Reading

A client sent me a support ticket last month that read: "the PDF is 6 MB and WhatsApp says too big, but your docs say documents can be 100 MB." Both statements were true. He was sending the PDF as an image header on a template, not as a document. Images cap at 5 MB. Documents cap at 100 MB. The file was fine; the bucket was wrong.

That is the whole problem with WhatsApp media: the limits are not one number, they are six, and which one applies depends on the type you declare, not on the file itself. Here are the actual numbers, then the rules underneath them that reject files which pass the size check.

WhatsApp Cloud API media limits in one table

Media typeFormatsMax size
ImageJPEG, PNG, static WebP5 MB
VideoMP4, 3GPP16 MB
AudioAAC, AMR, MP3, M4A, OGG (OPUS only)16 MB
DocumentPDF, DOC/DOCX, XLS/XLSX, PPT/PPTX, TXT100 MB
Sticker (static)WebP100 KB
Sticker (animated)WebP500 KB
Inbound media (what a customer sends you)any of the above100 MB

These numbers come from Meta's own Media reference page, and they are the caps for a single asset, not a monthly quota. Sending a 4.9 MB image does not eat into anything. The limits I wrote about in WhatsApp messaging limits are a completely different thing: those count unique recipients per day, and they have nothing to do with file weight.

The 100 MB inbound line is the one people misread. It is not a cap on what you can send. It is the ceiling on what WhatsApp will deliver to your webhook before it gives up, and it applies to the customer's phone, not your server.

Images: 5 MB, but the pixel ceiling bites first

The 5 MB number is generous for a compressed JPEG and useless for a design export. A 3000 × 3000 PNG out of Figma can pass 5 MB and still be rejected, because there are three separate image rules:

  • Images must be 8-bit, in RGB or RGBA. A 16-bit export, a CMYK profile, or a greyscale PNG with an odd colour profile can fail.
  • Any image over 4,096 pixels on an edge is rejected. That is harder than 5 MB for screenshots and product shots taken on modern phones.
  • Animated WebP images are rejected. Static WebP is fine and gets transcoded to JPEG on the way out, so if you send WebP for quality reasons, know it arrives as JPEG.

Practical order of operations: resize so the longest edge is under 4,096 px, convert to sRGB, then compress to under 5 MB. Doing it in the other order wastes time compressing a file the API will refuse anyway.

Video: 16 MB, and the codec rule that fails quietly

16 MB sounds like the real constraint until you learn the codec rules, which are stricter than the size cap:

  • H.264 video only, with AAC audio. HEVC, VP9 and AV1 all fail.
  • One audio stream or none. Two audio tracks (common in exports from some editors) fail.
  • H.264 "High" profile with B-frames is not supported by Android WhatsApp clients. This is the one that wastes an afternoon. The upload succeeds, the API returns a message ID, the delivery webhook says delivered, and a portion of recipients on Android simply cannot play the file. Meta's own guidance is to encode with the Main profile without B-frames, or Baseline for the widest compatibility.
  • The moov box must come before mdat. In ffmpeg that is -movflags faststart. Without it, some clients cannot start playback until the whole file downloads, which on mobile data looks like a video that never plays.

My standing ffmpeg line for WhatsApp video:

ffmpeg -i input.mov -c:v libx264 -profile:v main -pix_fmt yuv420p \
  -c:a aac -b:a 128k -movflags +faststart -fs 16M output.mp4

-fs 16M stops the encode when the file hits the cap, which is a crude but effective way to guarantee you never ship an oversized file. If it cuts early, lower the bitrate rather than the resolution, because WhatsApp crops and scales video on small screens anyway.

Audio: 16 MB, with one format trap

Audio is the simplest bucket and still has a trap. OGG is supported only with OPUS codecs, mono input only. Most OGG exports are stereo Vorbis, which fails. If you are generating voice notes or IVR-style audio, export MP3 or M4A and skip the OGG question entirely.

Worth knowing: audio messages are far less used than images, so a broken audio path can sit undetected for weeks. If audio is part of your product (verification codes by voice, order confirmations read aloud), test it end to end before you rely on it.

Documents: 100 MB, and why nobody should use it

100 MB per document is a large ceiling, and the temptation is to send invoices, catalogues and contracts through it. Two reasons not to:

  1. Most Indian mobile users on metered data will not thank you for a 40 MB PDF. The recipient is on a phone, usually on mobile data.
  2. A failed download or a customer who never opens the file reads in your analytics exactly like a delivered message. You learn nothing.

Keep documents under a couple of MB and put the heavy detail behind a link if it matters. The 100 MB limit is a safety net, not a target.

131053 Media file size too big and the MIME error

If you get an error containing 131053, it is labelled "mismatched MIME type" and it is almost never about size. It means the type you declared in the request does not match what the file actually is. A .png that is really a JPEG, a .mov renamed to .mp4, a PDF saved by a tool that writes a different MIME header: all of these fail here.

The fix is to inspect the file rather than trust the extension:

file -I your-image-asset.png

Then send the type that comes back. On the server side, do not infer MIME from the filename extension. Read the first bytes. A three-line sniff is more reliable than any regex over a filename.

The separate inbound case is code 131052, delivered as a webhook with this title:

Media file size too big. Max file size we currently support: 100MB. Please communicate with your customer to send a media file that is smaller than 100MB

That one belongs in your handling logic, not your bug tracker. If a customer sends a 130 MB video, the right behaviour is to reply automatically with a short message asking for a smaller file. Silence here reads as a broken bot.

Media IDs and URLs expire, and that is a design constraint

Three expiry clocks, all different, and each one produces a bug that only appears in production:

WhatExpires after
Media ID returned by the upload API30 days
Media ID received in an inbound webhook7 days
Media URL from GET /MEDIA_ID5 minutes
The uploaded file itself30 days

The 5-minute URL is the one to internalise. A common pattern I have had to fix: the app fetches a media URL, stores it against the message record, and renders it in a dashboard the next morning. Every one of those images is broken. Store the media ID, fetch a fresh URL at render time, and cache the bytes on your own storage if you need them long term.

The 7-day webhook clock is the second one. If a customer sends you a delivery photo and your reconciliation job runs weekly, the media ID has already expired when it gets there. Download and store inbound media on receipt, not on demand.

Templates with media headers

A template can carry a media header, and the size rules above apply to the header asset exactly as they would to a normal message. The image/video/document type is fixed when the template is approved, so a template approved with a document header can never send an image, no matter what your code passes.

If you are still fighting template rejections, the approval rules are their own subject: why WhatsApp templates get rejected covers the causes I actually see, and the template approval guide walks the review process properly. The Cloud API setup guide covers sending media end to end if you are wiring this up for the first time.

What I do in practice

  • One compression step at upload time, sized per type: 4,096 px and 5 MB for images, H.264 Main under 16 MB for video, under 2 MB for documents.
  • Read MIME from bytes. Never from the extension.
  • Store media IDs, not URLs. Re-resolve at render.
  • Handle 131052 and 131053 explicitly with a logged reason and a reply to the user, because both are recoverable and both look like random failure if you do not.
  • Test on a real Android device, not just the emulator, for video. The codec failures do not reproduce reliably anywhere else.

None of this is complicated, but every one of the rules above exists because a file that looked valid on my machine was not valid on WhatsApp's servers. The API does not care what your file is called. It cares what is inside it.

If you are sending a few hundred media messages a month and would rather not rebuild this pipeline yourself, BNex handles the media upload, expiry and type-mapping side of it, and it is what I would use before writing this from scratch again.

Stuck on a specific failure, or want a second pair of eyes on your media pipeline? Message me on WhatsApp with the exact error text and I will tell you which layer it is in.

Related Reading

  • The WhatsApp Cloud API errors you will actually hit
  • WhatsApp messaging limits, and what they actually count
  • Connect WhatsApp to your existing CRM with webhooks

Get more insights like this

Join our list for practical automation, web engineering, and growth strategy — written by builders, for builders.

Manikandan S

Manikandan S

Founder & Technical Lead at Ziync

Founder and technical lead at Ziync. I build high-performance websites and web applications for startups and mid-market teams: React, Next.js, Firebase. Based in Chennai, working with clients worldwide.

Learn more about our team
Previous Post

WhatsApp Cloud API rate limits and throughput, in plain numbers

Next Post

The WhatsApp Cloud API errors you will actually hit, and what each one means

Back to All Articles