Skip to content
Jetpack

Individual products

Security
VaultPress Backup Scan Akismet Anti-spam
Performance
Site Search Boost VideoPress
Growth
Stats Social Newsletter SEO Blaze CRM
Management
Manage Mobile App

Product Bundles

Pro Security, performance, and growth tools for your WordPress site. Complete The full Jetpack suite with higher service limits.
Pricing
Overview What Jetpack AI does for your site Skills WordPress superpowers for your agent Docs Connect and set up your AI agent Getting started Connect ChatGPT, Claude or a coding agent Compare Jetpack vs other WordPress MCP connectors

Connect your agent. It’s free.

Connect ChatGPT or Claude and let it run your site, with no paid plan needed.

Get it for ChatGPT (opens in a new tab) Or use Claude (opens in a new tab)
Support Guides and help from our team Docs How-to guides for every Jetpack feature Feature Requests Request features and vote on ideas Blog News, product updates, and how-tos
About
Sign in Get Started
Security
VaultPress Backup Scan Akismet Anti-spam
Performance
Site Search Boost VideoPress
Growth
Stats Social Newsletter SEO Blaze CRM
Management
Manage Mobile App

Product Bundles

Pro Complete
Pricing
Overview What Jetpack AI does for your site Skills WordPress superpowers for your agent Docs Connect and set up your AI agent Getting started Connect ChatGPT, Claude or a coding agent Compare Jetpack vs other WordPress MCP connectors

Connect your agent. It’s free.

Connect ChatGPT or Claude and let it run your site, with no paid plan needed.

Get it for ChatGPT (opens in a new tab) Or use Claude (opens in a new tab)
Support Guides and help from our team Docs How-to guides for every Jetpack feature Feature Requests Request features and vote on ideas Blog News, product updates, and how-tos
About Search
Sign in Get Started

Blog / Jetpack 101

How to Embed an MP4 Video in WordPress (Block Editor, Classic, HTML, Shortcode, & Plugin)

Jen Swisher's avatar

Jen Swisher January 29, 2026 · 10 min read


On this page

  1. TL;DR
  2. How to choose the best MP4 embed method (60-second decision)
  3. 1. Embed a video with Jetpack VideoPress
  4. 2. Embed a video with the block editor
  5. 3. Embed a video with the Classic Editor
  6. 4. Embedding a video with a shortcode
  7. 5. Embedding a video using custom HTML
  8. Troubleshooting common MP4 embed issues
  9. The smartest way to host and embed MP4 videos
  10. Frequently asked questions

10 min read

Embedding an MP4 video in WordPress is a great way to share your own content without using a third-party platform. Unlike YouTube or Vimeo, hosting MP4 files directly gives you full control over playback and branding.

In this guide, you’ll learn how to add MP4 videos to your WordPress site using a video hosting plugin, the block editor, classic editor, and HTML. We’ll also look at best practices for performance and what to do if your video doesn’t play.

Quick rule: if your MP4 is small and used rarely, native WordPress is fine. If you publish video regularly or care about performance, use a CDN-backed host (like VideoPress) to avoid slowing down your site.

Fun fact: Did you know? A single 1080p video background can be 50MB. If 10 people visit your site at once, your server has to push 500MB of data instantly. This can often crash shared hosting plans. This is why offloading to a CDN (like VideoPress) is not just a luxury, but a necessity for traffic spikes.

TL;DR

  1. Choose whether to upload the MP4 to WordPress, use VideoPress, use a third-party host, or embed from a file storage service.
  2. Compress the MP4 before uploading so it does not slow the page or exceed upload limits.
  3. Use the Video block or File block for simple self-hosted MP4 embeds.
  4. Use VideoPress when you want WordPress-focused hosting, adaptive playback, and reduced server load.
  5. Use Custom HTML only when you need direct control over the video tag and attributes.
  6. Add captions, transcripts, and a descriptive title when the video carries important information.
  7. Avoid autoplay with sound, and test playback on mobile browsers.
  8. Check lazy loading, poster image, width, and caching behavior before publishing.

How to choose the best MP4 embed method (60-second decision)

MethodBest forProsCons
Video block (native)1–2 small videosFastest setup, no extra toolsUses your server bandwidth/storage
ShortcodeNeed autoplay/loop/posterMore control than blockStill uses your server bandwidth/storage
HTML5 <video>Custom attributes/layoutMaximum controlEasy to misconfigure responsiveness
VideoPress / video CDNFrequent video publishingOffloads bandwidth, faster deliveryPaid plan but worth it

1. Embed a video with Jetpack VideoPress

Before you upload an MP4 video directly to your site, it’s important to consider how that choice can affect your performance, storage, and visitor experience.

Self-hosting videos in your Media Library may seem quick and easy, but it puts extra load on your server. It can slow down your pages, especially if the video file is large or viewed on mobile. It also limits your control over quality, delivery speed, and player behavior.

The better option is to use a WordPress-ready video hosting plugin. These tools are made to store, deliver, and play videos efficiently, without bloating your site or relying on third-party platforms like YouTube.

Jetpack VideoPress homepage with the text "the finest video hosting for WordPress"

Why Jetpack VideoPress is the best fit for WordPress

Jetpack VideoPress is built specifically for WordPress and offers high‑quality, lightning‑fast video hosting. It replaces the need to upload MP4 files directly, giving you a better player and faster load times.

Here’s why it’s the best option:

  • Files are stored on a global video CDN, not your hosting server, so your storage space isn’t used up and your site still loads quickly.
  • The player is clean, ad-free, and responsive by default.
  • You can manage everything from your WordPress dashboard.
  • It supports autoplay, mute on load, custom thumbnails, and more.
  • It keeps your visitors on your site with no distractions or third-party branding.

If you plan to embed more than one or two videos, or want a fast, polished viewer experience, VideoPress is the simplest way to get it done. It saves you time, boosts performance, and gives you more control over how your videos look and play.

How to use Jetpack VideoPress

Setup is incredibly simple and uses the processes you’re already familiar with. All you have to do is:

  1. Start by installing and activating the Jetpack plugin.
  2. In your WordPress dashboard, go to Jetpack → My Jetpack and purchase a VideoPress plan.
  3. Then, go to Jetpack → VideoPress. There, you can turn the feature on and adjust settings as needed.
videos shown on multiple screens

Adding a video to a page or post is as easy as adding any other type of media. While you can also use Jetpack VideoPress with the Classic Editor, this tutorial assumes you’re using the block editor.

  1. Open the page or post in the WordPress dashboard.
  2. Click the + icon at the top left and search for “VideoPress.” Drag the VideoPress block where you’d like it to live on the page.
  3. Drag your video into the VideoPress block or select Upload, Media Library, or Insert from URL depending on your needs. You’ll see an “Upload Complete!” message upon completion.
  4. To adjust the video settings, open the block settings panel at the top right. There are also video options that appear on top of the block itself. You can control playback options, the title and description, the poster image, alignment, captions, progress bar design, and more.
  5. Once you’re done, simply update or publish the page and that’s it!

2. Embed a video with the block editor

The WordPress Video block is another simple option, though keep in mind that videos you upload directly to the Media Library can affect site speed.

  1. In a post or page, click the plus (+) sign to add a block.
  2. Search for “Video” and drag the Video block where you’d like it on the page.
  3. Click Upload to add a new MP4 file or choose Media Library to use an existing one.
  4. Once the video uploads, it will appear directly in the editor. You can add a caption, set alignment, or adjust size using the block settings panel.
embedding a video with the block editor

This method is simple and works well if you’re hosting a small video directly on your site.

Notes:

  • MP4 videos will autoplay only if muted.
  • WordPress automatically creates a responsive video player for your site.
  • The block includes basic controls like play/pause and fullscreen.

3. Embed a video with the Classic Editor

If you’re using the Classic Editor plugin, you can still embed MP4 videos, though there are fewer options available to you.

  1. In the page or post you want to work with, make sure you’re in the Visual tab. Click Add Media.
  2. Upload to or select your MP4 file from the Media Library.
  3. Click Insert into post.
  4. Once the video appears, you can click directly on it and select the pencil Edit icon. There, configure basic settings like autoplay, loop, and subtitles. Then, click Update.
  5. Save or preview your post.
embedding a video with the classic editor

4. Embedding a video with a shortcode

You can use the built-in video shortcode if you prefer to handle things more manually. Before using the shortcode, you need to find the specific URL of your video. To do this, go to Media → Library in the WordPress dashboard and upload your file. Once it’s uploaded, click on the video and copy the URL from the File URL field on the right.

In the example below, you would replace the URL with your specific video URL:

"https://yoursite.com/wp-content/uploads/2025/07/yourvideo.mp4"

You can also configure options like:

"https://yoursite.com/video.mp4"

Shortcode options:

  • autoplay=”true” Starts the video automatically
    muted=”true” Mutes sound, often required for autoplay
  • loop=”true” Repeats the video
  • preload=”auto” Loads the video before play

Paste the shortcode into a Shortcode block, the Classic Editor, or even a widget.

5. Embedding a video using custom HTML

If you want even more control, use the HTML5 <video> tag to embed MP4 files. Start by copying your video URL just as you did in Option 4 above. Then, replace the URL in the code below with your own.

<video width="640" height="360" controls>
  <source src="https://yoursite.com/wp-content/uploads/2025/07/yourvideo.mp4" type="video/mp4">
  Your browser does not support the video tag.
</video>

Optional attributes:

  • controls Shows play and pause buttons
  • autoplay Starts playback automatically
  • loop Restarts the video when it ends
  • muted Starts the video with no sound
  • poster Adds a preview image

Paste the code into a Custom HTML block, widget, or the Text tab of the Classic Editor.

Troubleshooting common MP4 embed issues

The video doesn’t play:

  • Make sure the file is in .mp4 format.
  • Check that the video URL is correct.
  • Clear your cache or try a different browser.

The video loads slowly:

  • Compress the file size before upload.
  • Host large videos outside of your WordPress media folder.
  • Use a tool like Jetpack VideoPress to serve videos from a global CDN.

The layout breaks on mobile:

  • Use responsive players like the Video block or Video.js.
    Avoid setting fixed width and height in the <video> tag.

The smartest way to host and embed MP4 videos

Uploading MP4 files directly to your Media Library works for short, lightweight videos. But if you want to publish longer videos, often share video content, or prioritize performance and design, you’ll need something more powerful.

That’s where Jetpack VideoPress comes in.

Jetpack VideoPress is a video hosting solution built specifically for WordPress sites. It gives you a clean, fast video experience without relying on third-party platforms or slowing down your site.

Here’s how VideoPress makes a difference:

  • Faster load times: Videos are hosted on Jetpack’s global content delivery network, optimized for speed.
  • No ads or distractions: You control the player, with no branding or third-party ads.
  • A responsive player:VideoPress works on all devices and screen sizes, automatically.
  • A focus on privacy: Your visitors stay on your site — no cookies, tracking, or redirects.
  • Built-in storage. Videos are hosted outside of your Media Library, which reduces server load.
  • Customization options: You can set thumbnail images, mute videos on load, or enable autoplay.

VideoPress also integrates smoothly with the WordPress block editor, so you can upload and embed videos directly from your dashboard with no extra setup.

If you’re ready to offer fast, professional video playback on your WordPress site, without the limits of file size, bandwidth, or third-party platforms, VideoPress is the perfect solution.

Frequently asked questions

Can I embed an MP4 video in WordPress without YouTube or Vimeo?

Yes, you can embed an MP4 video in WordPress without using YouTube or Vimeo. You can upload the MP4 to your WordPress Media Library and then add it to a page or post with the Video block, the WordPress shortcode, or an HTML5 <video> tag.

This keeps the video on your own site. Keep in mind that self hosted MP4 files use your server storage and bandwidth. If your videos get many plays, you may want to host the MP4 on a video hosting service or a video CDN, then embed it in WordPress.

Should I upload my MP4 to the WordPress Media Library or host it somewhere else?

You can do either, but the right choice depends on how you use video. Uploading an MP4 to the WordPress Media Library is simple and works well for small files and light traffic. The downside is bandwidth use, storage use, and slow playback during busy times.

Hosting the MP4 on a video platform or a CDN reduces strain on your site and can help page speed. If video is a key part of your site, hosting the MP4 off site can reduce buffering and support steady delivery across many locations.

What MP4 format and settings work well for WordPress video playback?

WordPress can display MP4 videos, but playback depends on how the file is encoded. A safe choice is H.264 for video and AAC for audio inside an MP4 file. These settings play on many browsers and phones. If your MP4 does not play, the codec is a common cause.

Also keep file size in mind. Large files load slowly on mobile data. Export with a sensible bitrate, and include a poster image so the page loads with a still frame first. If you can, set the file for fast start so it begins playing sooner.

How do I embed an MP4 in the WordPress Block Editor using the Video block?

To embed an MP4 in the Block Editor, add a Video block, then upload the MP4 or select it from the Media Library. WordPress will insert a video player that fits the content area.

After you add the video, open the block settings and set a poster image, and choose playback options such as autoplay, loop, or controls. For layout, place the block inside a Group or Columns block if you need spacing or alignment. Test on mobile, since video size and page width can change on small screens.

How do I embed an MP4 using the WordPress shortcode, and what options can I use?

You can embed an MP4 with the built in WordPress video shortcode by adding it to a post or page in a Shortcode block, or in the editor where shortcodes are allowed. A basic example is:

[video src="https://example.com/uploads/video.mp4"]

You can also add a poster image and simple options: poster, preload, loop, autoplay, and muted. Autoplay often fails if audio is on, so muted is important. After publishing, test in Chrome, Safari, and on iPhone, since autoplay rules vary by browser.

How do I embed an MP4 in the Classic Editor or with custom HTML code?

In the Classic Editor, you can click Add Media, upload or choose your MP4, then insert it into the post. WordPress will place a video player shortcode or embed. If you want custom HTML, you can add an HTML block and use the HTML5 <video> tag.

A simple version includes controls and a source URL, plus a poster image. You can also add muted and playsinline for mobile behavior. Always test on iOS Safari and Android Chrome. Small code errors, a bad URL, or an unsupported codec can break playback.

Why is my MP4 video not playing in WordPress, and how do I fix it?

If your MP4 is not playing, start by checking the file link and the file itself. Confirm the URL is correct and the video loads in a browser tab. Next, confirm the MP4 uses a common codec, such as H.264 for video and AAC for audio. Then check server settings. The server should send the correct MIME type, usually video/mp4.

Some hosts also block byte range requests, which can break seeking and playback. Also watch for mixed content if your site uses HTTPS but the video URL uses HTTP. Fix the URL or move the file to HTTPS.

Like Loading…
Jen Swisher's avatar

Written by

Jen Swisher

Jen is a Customer Experience Specialist for Jetpack. She has been working with WordPress and Jetpack for over a decade. Before starting at Automattic, Jen helped small businesses, local non-profits, and Fortune 50 companies create engaging web experiences for their customers. She is passionate about teaching others how to create on the web without fear.

The Finest Video Hosting for WordPress

Stunning-quality video with none of the hassle. Drag and drop videos through the WordPress editor and keep the focus on your content, not the ads.

Get VideoPress

Questions about this post? Ask in the support forum

Share


Keep reading.

More from Jetpack 101, newest first.

See all posts

Jetpack 101 Mar 31, 2026

WordPress Image SEO: 12 Techniques to Rank Higher & Load Faster

Are images helping or hurting your rankings? What can you do about it? 12 realistic ways to optimize your image strategy for more high-quality traffic.

Jen Swisher's avatar Jen Swisher 14 min read

Jetpack 101 Mar 26, 2026

WordPress Site Redirecting to Spam? Here’s How to Fix a Hacked Site

Uncover hidden malware, remove malicious code, and stop spam redirects fast — before they damage your reputation. Secure your WordPress site.

Jen Swisher's avatar Jen Swisher 12 min read

Jetpack 101 Mar 24, 2026

WordPress Form with File Upload: How to Create One in 3 Steps

How to create a secure file upload form in WordPress — fast. Add drag-and-drop uploads in just 3 simple steps. Plus, the top tool to keep…

Jen Swisher's avatar Jen Swisher 5 min read

Run your WordPress site the AI-first way.

Free to start, and AI agents are free to connect. Money back within 14 days on yearly plans.

Get Started Get Jetpack free

WordPress Plugins

  • Akismet Anti-spam↗ (opens in a new tab)
  • Jetpack↗ (opens in a new tab)
  • Jetpack Boost↗ (opens in a new tab)
  • Jetpack CRM↗ (opens in a new tab)
  • Jetpack Protect↗ (opens in a new tab)
  • Jetpack Search↗ (opens in a new tab)
  • Jetpack Social↗ (opens in a new tab)
  • Jetpack VideoPress↗ (opens in a new tab)
  • VaultPress Backup↗ (opens in a new tab)
  • WP Super Cache↗ (opens in a new tab)
  • Download

AI

  • Jetpack AI
  • Skills
  • WordPress MCP

Partners

  • Partner Program
  • Recommended Hosts
  • For Hosts
  • For Agencies
  • For Affiliates

Developers

  • Documentation↗ (opens in a new tab)
  • Beta Program
  • Jetpack on GitHub↗ (opens in a new tab)

Help

  • Knowledge Base
  • Forums↗ (opens in a new tab)
  • Reviews and Testimonials
  • Contact Us
  • About Jetpack
  • Press
Select language English
  • English
  • Deutsch
  • Español
  • Français
  • 日本語

© 2026 Automattic Inc. All rights reserved.

  • Terms of Service↗ (opens in a new tab)
  • Privacy Policy↗ (opens in a new tab)
  • GDPR

Made with care by

Download on the App Store Get it on Google Play
Loading Comments...
  • Reblog
  • Subscribe Subscribed
    Jetpack
    Join 53,354 other subscribers

    Have a WordPress.com account? Log in now.

  • Jetpack
    Copy shortlinkView post in Reader
    Manage subscriptionsSign upLog in
    Report this content
    Collapse this bar
%d