How to Convert Files for WordPress: Media Upload Guide
Learn which file formats WordPress supports for images, videos, audio, and documents. Covers upload limits, format conversion, optimization tips, and plugin recommendations for media management.
Emma Wilson·February 19, 2026·10 min read
The WordPress Media Upload Challenge
WordPress powers over 40% of the web, but its media handling has specific requirements and limitations that catch many users off guard. You try to upload a video and hit the file size limit. You upload an image in a modern format and WordPress rejects it. You embed a document and it does not display correctly.
Understanding which formats WordPress accepts, how to optimize files before uploading, and how to work around limitations saves hours of frustration. This guide covers everything you need to know about preparing files for WordPress -- from images and videos to documents and audio.
WordPress media library showing uploaded files in grid view
WordPress allows a specific set of file types by default. Attempting to upload an unsupported format produces the error: "Sorry, this file type is not permitted for security reasons."
Pro Tip: WordPress determines file type by checking both the extension and the MIME type. Simply renaming a file's extension will not bypass the security check -- WordPress inspects the actual file content. Always convert files properly rather than just renaming them.
WordPress Upload Size Limits
The default maximum upload size depends on your hosting provider, not WordPress itself. Common limits:
Hosting Type
Typical Max Upload
Can Be Changed?
Shared hosting (basic)
2-32 MB
Limited (ask host)
Shared hosting (premium)
64-128 MB
Via php.ini or .htaccess
Managed WordPress (WP Engine, Kinsta)
50-256 MB
Via hosting dashboard
VPS / Dedicated server
Unlimited (configurable)
Full control
WordPress.com (free)
1 GB (total storage limited)
No
WordPress.com (Business+)
50 GB storage
No
To check your current limit, go to Media > Add New -- the maximum upload file size is displayed below the upload area.
JPEG (.jpg) -- Use for photographs and complex images. Best size-to-quality ratio for photos.
PNG (.png) -- Use for screenshots, graphics with text, logos with transparency. Larger than JPEG for photos but preserves sharp edges and transparency.
WebP (.webp) -- WordPress 5.8+ supports WebP natively. WebP files are 25-35% smaller than JPEG at equivalent quality. Use this as your primary format in 2026.
AVIF (.avif) -- WordPress 6.5+ added AVIF support. Even better compression than WebP (30-50% smaller than JPEG), but some older WordPress installations may not support it.
SVG (.svg) -- WordPress blocks SVGs by default due to security risks (SVGs can contain JavaScript). Enable with a plugin like "Safe SVG" if needed.
Image Optimization Before Upload
WordPress generates multiple image sizes (thumbnail, medium, large, full) for every uploaded image. A single 5 MB upload can create 20+ MB of files on your server. Optimizing before upload is critical.
Target file sizes for WordPress:
Blog post images: 80-200 KB
Hero/banner images: 150-400 KB
Thumbnails: 20-50 KB
Product photos: 100-300 KB
Use the image compressor to optimize images before uploading. For HEIC photos from iPhones, convert to JPEG or WebP first using the HEIC converter.
The -movflags +faststart flag is essential -- it allows the video to start playing before fully downloading (progressive download). Without it, visitors must download the entire file before playback begins.
Pro Tip: If you have a WordPress site with many videos, consider Cloudflare Stream, Bunny Stream, or Mux as alternatives to YouTube/Vimeo. These services are designed for self-hosted-like video delivery without the drawbacks, and they integrate easily with WordPress via embed codes or plugins.
Audio: WordPress Podcast and Music Files
WordPress supports native audio embedding with its built-in [audio] shortcode and the Audio block in Gutenberg:
Like video, dedicated podcast hosting (Buzzsprout, Transistor, Podbean) is usually better than self-hosting audio in WordPress. These services provide:
RSS feed management
Distribution to Apple Podcasts, Spotify, Google Podcasts
Analytics and download tracking
Bandwidth optimization
If you use a podcast host, embed episodes in WordPress via their provided player embed code.
Documents: PDF and Office Files
PDF: The Gold Standard
PDF is the most common document format on WordPress sites. Use cases include:
Downloadable guides, whitepapers, and ebooks
Menus, catalogs, and brochures
Forms and applications
Terms of service, privacy policies
Before uploading PDFs:
Compress using the PDF compressor -- Reduce scanned documents from 20+ MB to 2-3 MB
Optimize for web -- Ensure the PDF has fast web view enabled (linearized)
Add metadata -- Title, author, and description improve SEO and accessibility
WordPress media management comes down to three principles: use the right format (WebP/JPEG for images, MP4 for video, MP3 for audio, PDF for documents), optimize file size before uploading (compress everything), and let specialized services handle heavy lifting (YouTube for video, podcast hosts for audio). Following these practices keeps your WordPress site fast, your storage manageable, and your visitors happy.