Guide · By PostBoost team · · Markdown
Short answer: to compress a video for social media without visible loss, re-encode it as an MP4 with H.264 video and AAC audio, at the size the network actually shows (1080 pixels wide for vertical video, 1920×1080 for landscape), at the frame rate you filmed up to 60 fps. Use constant quality (RF or CRF 20 to 24 for 1080p) when the file just needs to be smaller, and a two-pass target bitrate when it has to fit a cap. The cap that catches most people is Instagram's: 300 MB for a Reel and 100 MB for a video Story through Meta's API, which scheduling tools use (Meta for Developers).
A phone or camera records at a far higher bitrate than a feed plays back, so most of a raw file's size is detail no one sees on a phone screen. Removing it is the whole job. Below: the caps per network, the arithmetic for hitting a size, and settings for HandBrake and ffmpeg that we ran before publishing.
Video size limits by network
These are the limits for video posted through each network's API, the path scheduling tools use. Our network guides cover each one in detail.
| Network | Max file size | Max length | Notes |
|---|---|---|---|
| Instagram Reel | 300 MB | 15 minutes | Video bitrate 25 Mbps at most, width 1920 px at most, 23 to 60 fps |
| Instagram Story (video) | 100 MB | 60 seconds | Same codec rules as Reels |
| Threads | 1 GB | 5 minutes | Video up to 100 Mbps, 23 to 60 fps (Threads image and video size) |
| TikTok | 4 GB | 3, 5 or 10 minutes, per account | 23 to 60 fps, 360 to 4096 px per side (TikTok video size) |
| 500 MB | 3 seconds to 30 minutes | MP4 only through the API (LinkedIn video specs) | |
| X | 8 GB (16 GB Premium) | 20 minutes (125 Premium) | PostBoost caps every X account at 20 minutes (X video length) |
| YouTube | 256 GB | 12 hours once verified | 15 minutes before you verify (YouTube video size) |
| No organic cap published | Reels 3 to 90 seconds through the API | 4 GB for feed video ads (Facebook video size) |
Sources: Meta's Instagram media reference and Threads API overview, TikTok's media transfer guide, LinkedIn's Videos API, the X media upload docs and YouTube Help. The free social media video specs tool lists them side by side.
So for most networks the size cap is generous and compression is about upload speed and a clean result. Instagram is the exception: a long Reel or Story from a phone can be over its cap.
What makes a video file big
A video's size is its bitrate multiplied by its length. Bitrate depends on three things you control:
- Resolution. A 4K vertical clip (2160×3840) has four times the pixels of 1080×1920. Instagram takes at most 1920 pixels across, and every feed shows vertical video at phone size, so scale 4K down to 1080 wide before anything else. The aspect ratio calculator gives the matching height for any shape.
- Frame rate. Slow-motion phone footage at 120 or 240 fps is above the 23 to 60 fps that Instagram, Threads and TikTok accept. Bring it to 30 or 60. Leave a normal 25 or 30 fps source alone.
- Encoder quality setting. This is where most of the saving is. A lower quality number (RF in HandBrake, CRF in ffmpeg) keeps more detail and makes a larger file.
The codec matters less than people think. H.264 is the safe choice: every network in the table accepts it, and LinkedIn's API takes MP4 only. HEVC (H.265) gives a smaller file at the same quality, and Instagram, Threads, TikTok, YouTube and Facebook accept it. For LinkedIn, and for one file you post everywhere, stay with H.264.
Compress with HandBrake (free, Windows, Mac, Linux)
HandBrake is the easiest way to do this without the command line.
- Open the video and pick the preset Fast 1080p30 (General presets). HandBrake's preset list calls it "a good choice if you're just getting started"; it writes an MP4 with H.264 video and AAC stereo audio.
- On the Dimensions tab, check the output size. For vertical video you want 1080×1920. If it comes out smaller, raise the Resolution Limit setting, which caps the output size (HandBrake: resizing video).
- On the Video tab, keep Constant Quality and set the RF. HandBrake's guidance for x264 is "RF 20-24 for 1080p Full High Definition" and "RF 19-23 for 720p High Definition". Lower is higher quality and a larger file. Start at 22 and only go lower if you see blocky shadows or smeared motion.
- Encode, then watch the result on a phone, where your audience will see it.
HandBrake also has Social 25 MB presets (for example "Social 25 MB 30 Seconds 1080p60") that aim for a file of 25 MB or less from a source of the length in the name. They suit messaging apps more than feeds; none of the networks above needs a file that small.
Compress with ffmpeg
ffmpeg is free and scriptable, which helps when you prepare videos in batches. We ran each command below with ffmpeg 4.4 on 1080×1920 test clips (8-bit and 10-bit) and checked the output with ffprobe: H.264 in 8-bit 4:2:0, AAC audio, and the index at the front of the file.
Smaller file, same look (constant quality):
ffmpeg -i input.mov -c:v libx264 -preset slow -crf 22 -pix_fmt yuv420p \
-c:a aac -b:a 128k -movflags +faststart output.mp4
-crf 22sets the quality, on the same scale as HandBrake's RF: lower keeps more detail.-preset slowspends more encoding time for a smaller file at the same quality.mediumis the default (ffmpeg -h encoder=libx264lists it).-pix_fmt yuv420pwrites 8-bit video with 4:2:0 chroma subsampling, which Meta's specs ask for. Without it, 10-bit HDR footage can come out as 10-bit video.-movflags +faststartmoves the index (the "moov atom") to the beginning of the file. Meta's Reels spec asks for the "moov atom at the front of the file".-b:a 128kmatches the 128 kbps audio bitrate in Meta's Reels spec.
4K or slow-motion source: add a scale and frame rate filter before the codec options, for example -vf "scale=1080:-2,fps=30". The -2 keeps the shape and rounds the height to an even number, which H.264 needs.
Instagram's bitrate ceiling: at a low CRF, busy footage can go over Instagram's 25 Mbps limit. Add -maxrate 25M -bufsize 50M to cap the peaks.
Compress a video to a specific file size
When a file has to fit a cap, work out the bitrate first. This is our arithmetic, not a network's formula:
video bitrate (kbps) = target size (MB) × 8,000 ÷ length (seconds) − audio bitrate (kbps)
Then take about 5% off for container overhead and the difference between MB and MiB. For a 15-minute Reel under Instagram's 300 MB:
- 300 × 8,000 ÷ 900 = 2,667 kbps in total
- minus 128 kbps of audio = 2,539 kbps
- minus 5% = about 2,400 kbps of video
| Target | Total budget | Video bitrate to use |
|---|---|---|
| Instagram Reel, 15 min, 300 MB | 2,667 kbps | about 2,400 kbps |
| Instagram Story, 60 s, 100 MB | 13,333 kbps | about 12,500 kbps (stay under the 25 Mbps cap) |
| LinkedIn, 10 min, 500 MB | 6,667 kbps | about 6,200 kbps |
Encode at that bitrate in two passes, so the encoder spends the bits where the picture needs them:
ffmpeg -y -i input.mov -c:v libx264 -preset slow -b:v 2400k -pass 1 -pix_fmt yuv420p \
-an -f null /dev/null
ffmpeg -i input.mov -c:v libx264 -preset slow -b:v 2400k -pass 2 -pix_fmt yuv420p \
-c:a aac -b:a 128k -movflags +faststart output.mp4
Give both passes the same video options, filters included. If pass 2 sets a pixel format or frame rate that pass 1 didn't, x264 can stop with an error such as "different bitdepth setting than first pass" or "timebase mismatch with 1st pass". That is why -pix_fmt yuv420p is in pass 1 too: without it, pass 2 fails on 10-bit footage, which phones record when HDR video is switched on. On Windows, write NUL instead of /dev/null. The first pass leaves ffmpeg2pass log files in the folder; delete them afterwards. On our 10-bit H.264 and 10-bit HEVC test clips the output was 8-bit H.264 at 2,435 and 2,403 kbps of video for the 2,400k target.
Constant quality is still the better default. A two-pass target spends the same bitrate on a static talking head as on a fast product demo, so use it only when the size is the hard requirement.
What PostBoost does with your video
PostBoost publishes the file you give it. It doesn't re-encode MP4 uploads, so the compression you choose is what the network receives:
- MP4: stored exactly as uploaded.
- MOV or MKV with standard 8-bit H.264 video: repackaged as an MP4 without re-encoding, so the picture is untouched. Audio that isn't AAC is converted to AAC at 128 kbps.
- HEVC or ProRes in a MOV, or 10-bit H.264: kept as it is. Export an H.264 MP4 instead, which LinkedIn requires anyway.
- WebM, AVI, FLV and WMV: not accepted for upload, because they would need a full re-encode.
PostBoost also has its own per-file video size limit, set on the server that runs it. Through the API, files over 10 MB use the chunked upload. In the post editor, each network's rules are checked before you can schedule, for example a Reel's length or a mix of video and photos in one post. Run the caption through the free social media post checker too, and see why scheduled posts fail to publish for the other common causes of a rejected post.
A quick checklist before you upload
- MP4, H.264 (8-bit, 4:2:0), AAC audio at 128 kbps.
- 1080 pixels wide for vertical video; no 4K for feeds.
- Frame rate as filmed, between 23 and 60 fps.
- RF or CRF 20 to 24, or a two-pass bitrate from the formula when you have to hit a size.
- Under the cap of every network you post the same file to: 100 MB if one of them is an Instagram Story.
- Watched once on a phone after compressing.
Do this in PostBoost
Free tools for this guide
Free tool
Social media video sizes and lengths cheat sheet
Video ratio, resolution, length, file size and formats for Reels, TikTok, Shorts, YouTube, X, LinkedIn, Pinterest and more, each with its source.
Free tool
Aspect ratio calculator
Find the aspect ratio of any image size, or the missing width or height at 16:9, 4:5 or 1.91:1, and see which social media sizes match. Free tool.
Free tool
Social media post checker: check your post before you publish
Check a post before posting: character limits, hashtags, media count, video length and see-more cut-offs for X, Instagram, LinkedIn, TikTok and more.
FAQ
How do I make a video file smaller without losing quality?
Re-encode it with H.264 at constant quality: CRF or RF 20 to 24 for 1080p in HandBrake or ffmpeg, AAC audio at 128 kbps, and the resolution the network shows (1080 pixels wide for vertical video). Phone and camera files are recorded at far higher bitrates than a feed needs, so the drop in size is large and the change is hard to see.
What is the best format to export video for social media?
An MP4 with H.264 video (8-bit, 4:2:0) and AAC audio. Instagram, Threads, TikTok, YouTube, X, LinkedIn and Facebook all accept it, and LinkedIn's Videos API takes MP4 only.
What is the maximum video file size on Instagram?
Through Meta's API, which scheduling tools use: 300 MB for a Reel (up to 15 minutes) and 100 MB for a video Story (up to 60 seconds), with video bitrate capped at 25 Mbps.
How do I compress a video to a specific file size?
Work out the video bitrate: target size in MB × 8,000 ÷ length in seconds, minus the audio bitrate, minus about 5% for headroom. Then encode with that bitrate in two passes. A 15-minute Reel under 300 MB comes out at about 2,400 kbps of video with 128 kbps audio.
Does PostBoost compress videos when I upload them?
No. An MP4 is stored as you upload it. A MOV or MKV with standard 8-bit H.264 video is repackaged as an MP4 without re-encoding, so the picture is untouched. Compress the file before you upload it.
Should I lower the frame rate to make a video smaller?
Only when the source is above 60 fps, such as slow-motion phone footage at 120 fps. Instagram, Threads and TikTok accept 23 to 60 fps. Below that, keep the rate you filmed at, because converting 25 fps to 30 fps adds judder without saving much.
Sources
- Meta for Developers: Instagram IG User Media reference (Reels: MOV or MP4, H.264 or HEVC, 23 to 60 FPS, 1920 columns max, 25 Mbps VBR max, AAC 128 kbps, 3 s to 15 min, 300 MB; Stories: 60 s, 100 MB)
- HandBrake documentation: Adjusting quality (constant quality, RF ranges per resolution)
- HandBrake documentation: Official presets (Fast 1080p30, Social 25 MB presets)
- FFmpeg documentation: Codecs (libx264 crf, preset and b options; AAC encoder 128 kbps default)
- FFmpeg documentation: Formats (mov/mp4 muxer movflags faststart)
- TikTok for Developers: Content Posting API media transfer guide (MP4, MOV, WebM; 23 to 60 fps; 4 GB)
- Microsoft Learn: LinkedIn Videos API (3 seconds to 30 minutes, 75 KB to 500 MB, MP4)
- X developer docs: Media upload endpoints (20 minutes and 8 GB, Premium 125 minutes and 16 GB)
- Meta for Developers: Threads API overview (video 5 minutes, 1 GB, up to 100 Mbps)
- YouTube Help: Upload videos longer than 15 minutes (256 GB or 12 hours)
- PostBoost docs: Media uploads (chunked upload for files over 10 MB)