Home › Audio & Video › MP4 to WebM

MP4 to WebM

Convert an MP4 video into WebM, the open web video format that HTML5 players, Chrome, Firefox and Android play natively. Choose VP9 or VP8, set the quality with a slider, scale it down if you like, and compare the result side by side. The video never leaves your computer.

Last updated:

Video codec

How it works: the video is encoded by FFmpeg (libvpx for VP8/VP9 and libopus for audio) compiled to WebAssembly, running in a background thread of this tab. It downloads once (about 31 MB, then cached). Your video is read straight from your disk and never uploaded. Encoding in a browser is slower than desktop software: a 1-minute 720p clip takes roughly 1 to 4 minutes on Fast.

Advertisement
Advertisement

How to use the MP4 to WebM

  1. Choose an MP4 video or drop it on the box. Its details appear next to a preview player.
  2. Pick the codec: VP9 for the smallest file, VP8 if it must play on old browsers or devices.
  3. Set the quality with the slider (CRF 32 is a good default), and optionally lower the resolution or frame rate.
  4. Press Convert to WebM and keep the tab open. FFmpeg downloads once (about 31 MB) the first time.
  5. Compare and download: play the WebM next to the original, then press Download WebM.

MP4 vs WebM at a glance

MP4WebM
Typical video codecH.264 (AVC), HEVCVP9, VP8, AV1
Typical audio codecAACOpus, Vorbis
LicensingPatent-licensed codecsRoyalty-free (open source)
Browser supportAll browsersAll current browsers (Safari from 14.1 on macOS)
Best forPhones, editors, TVs, sharingHTML5 video on websites, Android, open platforms

Recommended VP9 settings by resolution

Constant quality (CRF) lets the encoder spend more bits on complex scenes and fewer on static ones. Starting points based on Google's VP9 encoding guidance for on-demand video:

Output heightVP9 CRFTypical average bitrate (30 fps)Opus audio
2160p (4K)15 to 2412 to 18 Mbps128 to 160 kbps
1080p31about 1.8 Mbps128 kbps
720p32about 1 Mbps96 to 128 kbps
480p33about 0.5 to 0.75 Mbps96 kbps
360p36about 0.3 Mbps64 kbps

Actual bitrates depend heavily on motion and detail: a screen recording can be a tenth of these figures, sports footage much more. WebM file size is roughly (video kbps + audio kbps) × seconds ÷ 8 kilobytes.

Using WebM on a website

  • Offer both formats so every browser gets the best one: <video controls><source src="clip.webm" type="video/webm"><source src="clip.mp4" type="video/mp4"></video>.
  • For autoplaying background loops, choose No audio, 720p or lower and 24 fps. Browsers only autoplay muted video, and a silent track saves bytes.
  • Animated GIFs converted to WebM are typically many times smaller with smoother colours.
  • To go back the other way, use WebM to MP4.

Frequently asked questions

How do I convert MP4 to WebM for free?

Choose your MP4, keep the default VP9 codec and quality, and press Convert to WebM. The video is encoded by FFmpeg with libvpx and libopus compiled to WebAssembly, entirely inside your browser, so it is free, has no watermark and nothing is uploaded.

Should I choose VP9 or VP8?

VP9 produces files roughly 30 to 50% smaller than VP8 at similar quality and is supported by every current browser, including Safari 14.1 and later on macOS. VP8 encodes faster and plays on older browsers, smart TVs and Android 4 devices.

What CRF value should I use?

CRF is a constant-quality setting: lower numbers mean better quality and bigger files. Google's VP9 guidance suggests about 31 for 1080p, 32 for 720p, 33 for 480p and 36 for 360p. Use 24 to 28 for visually lossless results, and 40 or more for small previews.

Why is converting slow?

Video encoding is heavy work, and in a browser it runs in WebAssembly on a single thread without GPU acceleration. Expect roughly 1 to 4 minutes per minute of 720p video on the Fast setting. Lowering the resolution or frame rate speeds it up a lot.

Will the WebM be smaller than the MP4?

Usually, with VP9 at default settings, especially for phone videos recorded at high bitrates. If the MP4 is already heavily compressed, the WebM can be similar or larger; raise the CRF value or reduce the resolution to make it smaller.

Does WebM support audio?

Yes. WebM uses Opus (or older Vorbis) audio. This converter encodes Opus, which is transparent for music at about 128 kbps and for speech at 64 kbps. You can also remove the audio to create silent background or loop videos for websites.

Is my video uploaded?

No. The file is read directly from your disk by FFmpeg running in your browser tab. Only the FFmpeg program itself is downloaded from a public CDN the first time.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

WebM to MP4Convert WebM videos to MP4 (H.264) with your choice of resolution and quality. No upload.Video ConverterConvert videos to MP4 or WebM with your choice of resolution, frame rate and bitrate.Video CompressorCompress videos in your browser: pick a quality and resolution to shrink the file size.Video ResizerResize a video for Reels, TikTok, Shorts or YouTube with fit, fill or blurred bars. No upload.MP4 to GIFConvert an MP4, MOV or WebM clip to a sharp GIF: trim, set fps and width, optimized palette.Video to MP3Extract the audio from a video as MP3.MKV to MP4Convert MKV to MP4 in seconds by copying H.264/AAC streams, or re-encode with ffmpeg.Webcam Video RecorderRecord video from your webcam and mic, then download it.Subtitle EditorEdit, shift and convert SRT and VTT subtitles.Video TrimmerCut the start and end off a video on a visual timeline and save the clip as WebM.Video to Frames ExtractorExtract still frames from a video every few seconds or every Nth frame, as JPG or ZIP.Video Speed ChangerSpeed up a video or make slow motion from 0.25× to 4×, with audio, and save it as WebM.Mute VideoRemove the sound from a video and save a silent copy as WebM, right in your browser.Rotate VideoRotate a video 90° or 180°, or mirror it, with sound, and save the fixed copy as WebM.SRT Time CalculatorShift subtitle timing, convert SRT frame rates, sync by two points and fix broken SRT files.Video Resolution CheckerCheck a video's resolution, length, frame rate, bitrate and codecs without uploading it.Video File Size CalculatorEstimate video file size from resolution, fps, bitrate and length, or the bitrate for a size limit.Vocal RemoverRemove vocals from a song to make a karaoke instrumental, or pull out an acapella, in your browser.Video CropperCrop a video to 1:1, 9:16, 16:9 or any area by dragging a box, with sound. Saves MP4 or WebM.Video MergerJoin several video clips into one MP4 or WebM in any order, with trimming and fades.MOV to MP4Convert MOV to MP4 instantly with no quality loss, or re-encode to H.264. No upload.WebM to MP3Extract the audio from WebM video or audio files and save it as MP3. Free, no upload.Add Audio to VideoAdd music or a voice-over to a video: replace or mix the sound, set offset, volume and fades.Video ReverserPlay a video backwards: reverse a clip with or without reversed sound, or make a boomerang loop.Silence RemoverFind and cut long pauses and dead air in recordings, podcasts and voice memos automatically.Add Subtitles to VideoBurn SRT or VTT subtitles into a video with your own font, color, outline and position.Add Watermark to VideoPut a text or logo watermark on any video, set position, size and opacity, then save it.Video Thumbnail GeneratorGrab thumbnails from a video at any time or make a contact sheet grid. JPG, PNG or ZIP.Slideshow MakerTurn photos into a video slideshow with transitions, captions and music. Saves MP4 or WebM.Add Text to VideoPut titles and captions on a video with your font, colour, position, timing and fade. No upload.Audio Visualizer Video MakerMake an audiogram: cover image plus animated bars or waveform synced to your audio, as MP4/WebM.AVI to MP4Convert AVI videos (Xvid, DivX, MJPEG) to H.264 MP4 in your browser, several files at once.Flip VideoMirror a video horizontally or vertically, fix selfie videos and save MP4 or WebM with sound.Frame by Frame Video PlayerStep through a video one frame at a time with frame number, timecode, slow motion and PNG export.Landscape to Vertical VideoTurn a 16:9 video into 9:16 for Shorts, Reels and TikTok with a blurred background fill.Video LooperLoop a video N times or to a set length, or make a boomerang, and save it as MP4 or WebM.MP4 to WAVExtract the audio from MP4 videos as WAV: 16/24/32-bit, any sample rate, mono or stereo, batch.Online Video PlayerPlay local videos with 0.25-4x speed, A-B loop, zoom, SRT/VTT subtitles and keyboard shortcuts.Screen to GIF RecorderRecord your screen, a window or a tab and turn it straight into an optimized GIF.Slow Motion Video MakerMake smooth slow motion (0.1x-0.75x) with frame interpolation or blending on any part of a video.Square Video MakerFit any video into a 1:1 square without cropping, with blurred, color or image fill.Stop Motion MakerMake stop-motion animation with your webcam: onion skin, reorder frames, add music, save MP4 or GIF.Streaming Data Usage CalculatorEstimate GB used by video, music and video calls per day and month, and check it against a data cap.Subtitle ExtractorExtract embedded subtitle tracks from MKV and MP4 videos and save them as SRT, VTT or ASS.Teleprompter Video RecorderRecord yourself on webcam while your script scrolls on screen near the camera.Text to Video MakerTurn lines of text into an animated video with backgrounds, transitions and music; export MP4.Time-Lapse Video MakerTurn a long video into a time-lapse (2x to 200x) by keeping every Nth frame.Timecode CalculatorAdd, subtract and convert SMPTE timecode, frames and seconds at 23.976 to 60 fps, incl. drop-frame.Fix Audio Sync in VideoFix out-of-sync audio: shift the sound earlier or later in ms, preview, save without re-encoding.Video Collage MakerCombine 2 to 9 videos into one split-screen grid with trims, mute and gap colour, then save MP4.Video Fade In and OutAdd a fade from or to black or white at the start and end of a video, with matching audio fade.Video Frame Rate ConverterChange a video's FPS (60 to 30, 24 to 30 and more) with drop, blend or motion interpolation.Video Intro MakerMake a 5-10 second animated intro or outro with your logo, text, colors and sound; export MP4.Video Meme GeneratorAdd a white caption bar or classic top and bottom meme text to a video or GIF.Video Recording Time CalculatorHow many hours of video fit on an SD card or drive, or how much storage a recording needs.Video StabilizerReduce camera shake in handheld videos with ffmpeg deshake or a fast built-in stabilizer.Video to Animated WebPTurn a video clip into an animated WebP that is far smaller than a GIF, with a size comparison.Video Transition MakerJoin clips with crossfade, fade to black, wipe, slide, zoom or dissolve transitions. Save MP4.Video Voiceover RecorderRecord narration over a video with your mic, retake parts, mix with ducking and export the video.Webcam Virtual BackgroundBlur or replace your webcam background live with AI, then record clips or take snapshots.Zoom VideoZoom into part of a video with a static crop zoom or animated punch-in keyframes.Hum RemoverRemove 50/60 Hz electrical hum and its harmonics from recordings, with auto detection.Subtitle CleanerRemove [sound] tags, speaker names, HTML tags and ads from SRT/VTT; fix overlaps and long lines.Dual Subtitle MergerMerge two subtitle files (e.g. English + Spanish) into one dual-language SRT or ASS file.Ken Burns Effect MakerTurn a photo into a smooth pan-and-zoom MP4 clip by drawing start and end frames.Lower Third GeneratorDesign animated name titles for videos and streams; export transparent WebM, PNG frames or an OBS URL.Side by Side Video MakerPut two videos side by side, stacked or picture-in-picture with sync offset and save as MP4.Video FiltersApply B&W, sepia, vintage and cinematic color filters to a video and save it as MP4 or WebM.
See all 94 Video Converters & Editors →