WordPress 6.5 added AVIF uploads — but only if the server underneath can actually decode them. Here is how to check in two minutes, and what to do when it cannot.
Since WordPress 6.5, the media library accepts .avif uploads and can generate the usual thumbnail sizes — if the server's image library (Imagick) was compiled with AVIF support. Many shared hosts were not, and some still are not. When support is missing, uploads either fail outright or succeed without generating thumbnails, which is worse because the breakage is silent.
So the order is always the same: check the server first, test with one file second, upload a folder third. Never upload a client's 200-image delivery before you have confirmed that one AVIF survives the round trip.
It is worth separating two questions that get mixed up: can WordPress accept the file and can the server generate resized versions of it. The first is a whitelist in PHP; the second depends on a compiled library. A site can pass the first and fail the second.
AVIF.If AVIF appears in the list, your server can decode it and WordPress will generate thumbnails normally. If it does not appear, or if the Media Handling section only shows a version number without a format list, your host's Imagick was built without libheif or without an AV1 decoder. See the ImageMagick guide for what that error looks like on the command line — it is the same underlying problem.
On managed hosts that hide Site Health, the equivalent question to support is: "Is Imagick compiled with AVIF support, and which libheif version?" Asking in those terms gets a faster answer than "do you support AVIF?".
You have three options, in order of effort:
What you should not do is upload AVIF files to a server that cannot process them and hope. The media library will show the original, but every thumbnail size will be missing or broken, and page builders that rely on a specific size will fall back to the full image — quietly making your pages slower.
srcset with multiple sizes is being output, not a single full-size file.If steps 2–5 all pass, batch upload is safe. If the thumbnail is a grey placeholder, stop — the server accepted the file but could not decode it, and every image you add will behave the same way.
| Symptom | Cause | Fix |
|---|---|---|
| "Sorry, you are not allowed to upload this file type." | WordPress older than 6.5, or a security plugin restricting MIME types | Update WordPress; check the plugin's upload whitelist |
| Upload succeeds, thumbnails are blank | Imagick cannot decode AVIF | Enable AVIF on the server, or upload JPG |
| "The server cannot process the image." | Same cause, surfaced as an error by the image editor | Same fix |
| Image displays, but pages got slower | Missing intermediate sizes, so the full-size file is served | Regenerate thumbnails after enabling AVIF support |
| AVIF works in the library but not on the live site | A CDN or optimisation plugin is rewriting or stripping the file | Purge the CDN cache; check the plugin's format settings |
Upload a high-quality JPG or PNG master, and let an optimisation plugin generate AVIF or WebP for delivery. This keeps the media library portable — you can migrate hosts, change plugins, or hand the site to a client without a pile of files that half the tooling cannot read — while still serving small images to visitors.
Upload AVIF directly only when it is the only source you have: a client sent AVIF product shots, or you exported them from a tool that writes nothing else. In that case, convert to JPG first unless you have confirmed server support, because a media library full of undecodable files is expensive to clean up later.
If you already uploaded AVIF files to a server that cannot process them, the fix is not to delete and re-upload blindly — you will lose the attachment IDs that posts reference. Instead: enable AVIF support on the server if you can, then regenerate thumbnails with a plugin such as Regenerate Thumbnails. If the server will never support AVIF, replace the files in place (same filename) with JPG versions and regenerate.
Back up the uploads directory before either operation. Regenerating thumbnails on a large library is I/O-heavy and can time out on cheap hosting; run it in batches.