You have the perfect reaction GIF for a thread, you hit Add attachment, and the board tells you “The file is too big, maximum allowed size is 2 MiB.” Or worse, the upload bar crawls to the end and the page returns a blank error with no explanation at all. Forums are the last corner of the internet still handing out two-megabyte upload limits, and the reason is not stinginess — it is three layers of default configuration stacked on top of each other, none of which the forum admin necessarily chose.
Quick answer: Open xconvert.com/compress-gif, leave File Compression on Max file size, open the Size limit dropdown and choose Forum (2 MB max). That sets the limit to 2,000,000 bytes — deliberately the decimal reading, which leaves about 97 KB of headroom under PHP’s default
upload_max_filesizeof2M(2 MiB = 2,097,152 bytes), the setting behind most forum caps. If your board’s error message names a smaller number — 1 MB, 512 KB, 256 KB — use Custom size value instead and type it, because plenty of forums sit far below the hosting ceiling. phpBB, for one, ships with a 256 KiB default.
Jump to a section
- Where the 2 MB number actually comes from
- Why forums cap lower than chat apps
- What 2 MB buys you in a GIF
- Read the error, not the folklore
- Cap a GIF at a forum’s limit on xconvert
- FAQ
Where the 2 MB number actually comes from
Almost nobody sat down and decided that two megabytes is the right size for a forum attachment. The number is inherited, and it comes from a stack of three independent ceilings — the smallest one wins, and it usually wins silently.
| Layer | Default | What happens when you exceed it |
|---|---|---|
Web server — nginx client_max_body_size | 1m | HTTP 413 Request Entity Too Large. nginx’s own docs note “browsers cannot correctly display this error”, which is why you get a blank page |
PHP — upload_max_filesize | 2M (2 MiB = 2,097,152 bytes) | The upload is discarded before the forum’s code ever sees it |
PHP — post_max_size | 8M | If the whole form exceeds this, $_POST and $_FILES come back empty — the forum thinks you submitted nothing |
Forum software — phpBB max_filesize | 262144 bytes (256 KiB) | The polite in-app error you were hoping for |
Those are the shipped defaults, straight from each project. PHP’s manual lists upload_max_filesize at 2M and post_max_size at 8M. nginx’s core module documentation lists client_max_body_size 1m. And phpBB’s own installer schema inserts max_filesize as 262144 — 256 KiB — alongside max_attachments of 3 and an attachment_quota of 52,428,800 bytes (50 MiB) per board.
So when a board advertises “2 MB”, what you are usually looking at is the PHP default that nobody edited. And when a board advertises 5 MB but still rejects your 3 MB file, you have found the layer underneath it — either nginx at 1m or PHP at 2M, quietly overruling the setting the admin actually changed.
Why forums cap lower than chat apps
Discord takes 20 MB on a free account (its figure of August 2026) and email providers commonly take 25 MB, so the gap can feel arbitrary. It is not. Forums and chat apps are different businesses with different storage physics.
- Forums are usually self-hosted on a fixed disk. A phpBB or MyBB board runs on somebody’s shared hosting plan with a hard quota. Every attachment is a permanent charge against it. Chat platforms run on object storage with effectively unlimited elastic capacity, paid for by an investor or a subscription business.
- Forum content is a permanent public archive. A thread from 2011 is expected to still render in 2031, images included. Nobody is planning to delete your attachment, so the cost is not “2 MB”, it is “2 MB forever, plus backups.”
- The defaults are old, and defaults are sticky. phpBB’s 256 KiB and PHP’s
2Mwere set when they were generous, and they persist because changing them requires editing server config that most board owners never touch. - Bandwidth on a busy thread multiplies. One 2 MB signature GIF on a 40-post page is 80 MB of transfer for a single page view, per visitor. Chat apps deliver from a CDN; a self-hosted board serves it from the same box running the database.
Modern platforms show the other side of this. Discourse, which is not PHP and is typically hosted rather than self-run, ships with max_image_size_kb and max_attachment_size_kb both defaulting to 10240 — 10 MB, five times PHP’s 2M default and in the same league as the chat apps rather than the legacy boards. The 2 MB world is specifically the legacy PHP forum world, and that is still a very large part of the internet.
What 2 MB buys you in a GIF
Two megabytes is a real budget, not a punishment — as long as you spend it on the right axis. A GIF’s size is essentially pixels × frames × how compressible the content is, and xconvert’s GIF size estimator models a produced GIF at 0.575 bytes per pixel-frame, the median across our 2026-08-22 production measurement corpus. A “pixel-frame” is one pixel in one frame.
Divide 2,000,000 bytes by 0.575 and you get about 3.48 million pixel-frames to spend. Here is what that looks like at real canvas sizes:

| Canvas | Frames inside 2 MB | Duration at 10 fps |
|---|---|---|
| 640×360 | 15 | 1.5 s |
| 480×270 | 26 | 2.6 s |
| 400×225 | 38 | 3.8 s |
| 320×180 | 60 | 6.0 s |
| 240×135 | 107 | 10.7 s |
The shape of that table is the whole trick: halving the canvas roughly quadruples the animation you can afford. A 640×360 GIF gets you a second and a half; the same clip at 320×180 — still perfectly readable inline in a forum post — gets you six seconds. Flat content such as UI recordings and line art beats these numbers comfortably; noisy photographic footage will not reach them.
One more planning rule, from production data: in the 30 days to 15 November 2026, 7.9% of GIFs given a typed size smaller than the file ended above it (127 of 1,610 jobs). For a GIF many times over 2 MB, cut the canvas or the frame count first rather than expecting the search to close the gap on its own. The 10 MB / 5 MB / 1 MB guide covers the neighbouring targets, and the KB-scale guide covers what changes when the ask drops below a megabyte.
Read the error, not the folklore
“Forums allow 2 MB” is a useful default assumption and a bad rule. Before you compress, spend thirty seconds finding your board’s actual number, because there are four separate limits it might be enforcing:
- Per-file size. The one in the error message. Believe this number over anything in the FAQ, which is often years out of date.
- Attachments per post. phpBB ships with three. Splitting one large GIF into several small ones is not always an option.
- Total quota per user or per board. phpBB’s default board-wide attachment quota is 50 MiB. On an old board you may be competing with a decade of other people’s uploads.
- Signature rules. Signature images almost always have their own, much tighter limits — often a few hundred kilobytes plus a maximum pixel width and height. These are usually written in the board rules rather than enforced by an error message, and moderators do enforce them by hand.
Watch the units too. Forum software written in PHP tends to report MiB (2 MiB = 2,097,152 bytes) while calling it “MB”, so a file of exactly 2,000,000 bytes passes a “2 MB” limit with room to spare. That asymmetry is why our Forum preset targets the decimal number: when a limit is ambiguous, the smaller reading is always the safe one.
Cap a GIF at a forum’s limit on xconvert
- Open xconvert.com/compress-gif and click Upload, or drag the GIF onto the box.
- Leave File Compression on Max file size — it is the mode the page opens on.
- Open the Size limit dropdown and choose Forum (2 MB max). The other entries are Custom size % (the default, with a Max % of original slider that opens at 50), Custom size value, Discord (20 MB max) and Email (25 MB max).
- If your board’s limit is not 2 MB, pick Custom size value instead, type the number into Max size and set the unit dropdown to KB or MB as needed. Use the number in the error message, not the one in the board rules.
- Click Compress and download, then check the byte count before you upload. Max file size mode runs several encodes rather than one, so give a large GIF a minute. The limit is a ceiling the search aims under, not a guarantee: if it cannot be reached, the smallest version is delivered above the limit and the result card says so. In a test on 18 November 2026 a 5.11 MB GIF (480×270, 50 frames) came back at 1.84 MB with every frame and its dimensions kept.
If the result comes back near your target but the animation looks rough, the solver has spent your budget on the wrong axis. Switch File Compression to Custom — it opens with Image quality at 80, Drop Frames at every 3rd frame and Resolution at 80% already on — under Image resolution choose Width (Keep aspect ratio), switch its unit from Percent (%) to Pixels and type the width the GIF is actually displayed at in a post — 320 to 400 pixels is plenty for an inline reaction GIF — then leave Drop Frames on Every 3rd frame and try again.
Your file is processed on our servers, not in your browser. Uploads and results are deleted automatically about 5 hours after they were written, or sooner if a server runs short of disk space.
FAQ
What exactly is the “Forum (2 MB max)” preset set to?
2,000,000 bytes. It uses the decimal reading of a megabyte deliberately, which is the smaller of the two possible interpretations: PHP’s 2M default is 2 MiB, or 2,097,152 bytes, so a file capped at 2,000,000 bytes clears it with roughly 97 KB to spare. The neighbouring presets follow the same convention — Discord at 20,000,000 bytes and Email at 25,000,000.
My forum says the limit is 2 MB, but a 1.9 MB file still fails. What’s wrong?
Something underneath the forum is rejecting it first. The two usual suspects are nginx, whose client_max_body_size defaults to 1m and returns a 413 that browsers render as a blank or generic error page, and PHP’s post_max_size, which applies to the whole form — your GIF plus the message body plus every other field. When post_max_size is exceeded, PHP hands the forum an empty $_FILES array, so the board often reports “no file selected” rather than “too large”. Try 900 KB; if that works, you have found the real ceiling.
Why can Discord take 20 MB when my forum can’t take 2?
Different storage economics. A self-hosted board stores attachments permanently on a fixed disk it pays for by the gigabyte, and serves them from the same machine running the database — a 2 MB signature GIF on a 40-post page is 80 MB of transfer per page view. Chat platforms deliver from a CDN with elastic storage. It also shows up along software lines: PHP-based forums inherit tight defaults, while Discourse ships with a 10 MB default for both images and attachments.
My board’s limit is 256 KB, not 2 MB. Is that even possible for a GIF?
Yes, and it is phpBB’s shipped default rather than an unusually strict admin. At 256 KB you have roughly 445,000 pixel-frames to spend, which is about 13 frames at 240×135 — or barely 3 at 480×270. That is a short loop at a small canvas, and there is no way around the arithmetic. Use Custom size value with the unit set to KB, and cut the canvas before you cut anything else.
Will the Forum preset change my GIF’s dimensions?
It can. In Max file size mode the search may lower the quality, reduce the colors, shrink the dimensions and, rarely, remove every second frame, and the result card reports what was changed — but it will not reduce the palette below 32 colours and will not auto-scale below 240 pixels wide or 35% of the source width, whichever is larger. If you need an exact pixel width, set it yourself under Custom → Image resolution rather than leaving it to the search.
Is 2 MB enough for a screen recording?
Only a short one, and only if you shrink it first. A 640×360 capture gets about 15 frames inside 2 MB — a second and a half. Halve it to 320×180 and you have six seconds, which covers most “here is the bug” clips. If the recording genuinely needs to be longer, a forum that accepts a video link is a better home for it than a GIF that has to be destroyed to fit.
Sources
Last verified 2026-11-22.
- PHP Manual — Description of core php.ini directives —
upload_max_filesizedefault 2M;post_max_sizedefault 8M; “If the size of post data is greater than post_max_size, the$_POSTand$_FILESsuperglobals are empty.” - nginx — ngx_http_core_module,
client_max_body_size— default1m; exceeding it returns “the 413 (Request Entity Too Large) error”, and “browsers cannot correctly display this error.” - phpBB — installer schema data (
schema_data.sql) — shipped defaultsmax_filesize262144(256 KiB),max_filesize_pm262144,max_attachments3,attachment_quota52428800(50 MiB). - Discourse —
config/site_settings.yml—max_image_size_kbandmax_attachment_size_kbboth default to10240. - xconvert source and production measurement — the Size limit presets resolve to exact byte values:
PRESET_FORUM2,000,000,PRESET_DISCORD20,000,000,PRESET_EMAIL25,000,000, using SI-decimal megabytes (worker code read 2026-11-18). In the 30 days to 15 November 2026, 7.9% of GIFs given a typed size smaller than the file ended above it. The size estimator uses 0.575 bytes per pixel-frame (2026-08-22 corpus); solver floors are a 32-colour palette and a downscale floor of max(240 px, 35% of source width). - Discord Support — File Attachments FAQ — read through Discord’s help-centre API on 18 November 2026 (the page itself answered 403 to an automated read) — “For non-Nitro subscribers, the maximum file upload is 20MB” and “As of August 2026, the free upload limit is 20MB (up from 10MB)”. The preset label on the page reads
Discord (20 MB max)(rendered 2026-11-18). - xconvert GIF compressor — live tool; controls verified: File Compression opens on Max file size, whose Size limit dropdown contains Custom size % (default), Custom size value (with a Max size field and a B / KB / MB unit dropdown), Discord (20 MB max), Email (25 MB max) and Forum (2 MB max); switching to Custom reveals Image Quality (%), Drop Frames → Frames To Drop (Every 3rd frame preselected), Image resolution and Colors.
