MJPEG to MP4 Converter

Convert MJPEG video to MP4 online. Reduce security camera and webcam footage 5–10× smaller with H.264 inter-frame compression.

Initializing... drag & drop files here

Supports: MJPEG

OptionsAdvanced Options - Our defaults are optimized for the best results. We recommend you keeping the defaults unless you have a specific need.
Show All Options
File Compression
Preset
Video resolution
Trim

How to Convert MJPEG to MP4 Online

  1. Upload Your MJPEG File: Drag and drop or click "Add Files" to select a .mjpeg or .mjpg recording. IP / security camera exports (Reolink, Hikvision, Axis, Amcrest, Wyze), webcam captures, dashcam clips, microscope and lab-rig acquisitions, and old digital-camera videos all work as input. Batch is supported.
  2. Pick Video Codec and Quality Preset: Default is H.264 with the "Very High" preset. Stay on H.264 for the broadest device compatibility, switch to H.265 / HEVC for roughly half the file size on the same quality, or pick AV1 for the smallest output at the cost of slower encoding. Under File Compression, choose a Quality Preset (Highest to Lowest), set a Target file size percentage, enter a Specific file size, or switch to Constant Quality and dial CRF directly (18 is visually lossless, 23 is the H.264 default, 28 produces a noticeably smaller file for previews).
  3. Resolution and Audio (Optional): Keep original (recommended for evidence and scientific footage), pick a resolution preset (144P / 240P / 360P / 480P / 720P / 1080P / 1440P / 2160P / 4320P), scale by percentage, or enter a custom width × height. Many MJPEG sources are 640×480 or 1280×720 — keeping native resolution avoids upscaling artifacts. AAC is the default audio codec for MP4; MP3, AC3, EAC3, FLAC, Opus, and Vorbis are also available under Audio Codec if your downstream tool needs a specific track.
  4. Trim and Convert: Optionally set a start time and duration in seconds or HH:MM:SS.sss to cut out only the segment you need before encoding — useful when an IP camera exports an hour-long .mjpeg but you only need the 30-second event. Click Convert and download. Files process in your browser session — no sign-up, no watermark.

Why Convert MJPEG to MP4?

MJPEG (Motion JPEG) stores video as a sequence of independently compressed JPEG frames with no inter-frame compression. That makes the source robust against frame loss but enormous on disk — a 1-minute 1080p MJPEG clip from an IP camera or microscope routinely lands at 400 MB to 1 GB. Re-encoding to MP4 with H.264 typically shrinks the file by 80-90% for the same visible quality, because H.264 only stores what changed between frames. Common reasons to convert MJPEG to MP4:

  • Compacting IP / security camera exports for archive or sharing — Reolink, Hikvision, Axis, Amcrest, Wyze, and many enterprise NVR systems export evidence clips as MJPEG so every frame is independently decodable. Re-encoding to MP4 / H.264 cuts a 600 MB doorbell clip to 60-100 MB without visible quality loss, making it small enough to email, attach to a police report, or upload to cloud storage.
  • Sharing webcam and screen-capture recordings — Older Logitech / Microsoft webcams, OBS capture pipelines, and telehealth tools sometimes save raw MJPEG. MP4 plays natively in Discord, Slack, WhatsApp, browsers, iPhones, Android, and every modern player — MJPEG does not.
  • Editing in modern NLEs that prefer H.264 / HEVC — Premiere, DaVinci Resolve, Final Cut Pro, and CapCut handle MJPEG but timeline performance is much better on H.264 / H.265. Converting first avoids stutter and lets the editor leverage GPU decode.
  • Scientific / microscopy footage for lab write-ups — Microscopes, particle-tracking rigs, and high-speed scientific cameras frequently capture in MJPEG. An MP4 of the same clip embeds straight into Notion, Confluence, a journal supplementary file, or a thesis defense slide.
  • Re-wrapping legacy camcorder and digital-camera videos — Older Canon, Kodak, and Olympus point-and-shoots from the early 2000s recorded video as MJPEG inside an AVI or MOV wrapper. Bringing those clips into a modern MP4 makes them playable on phones and tablets that won't open the source.
  • Dashcam and machine-vision archive compression — Vision systems on production lines and some dashcams dump MJPEG. Reviewers prefer a small MP4 to scrub through hours of footage rather than downloading the raw frame-independent source.

MJPEG vs MP4 — What Changes

Property MJPEG (source) MP4 / H.264 (output)
Compression Per-frame JPEG (intra-frame only) Inter-frame: I, P, and B frames
Typical 1 min 1080p size 400 MB - 1 GB 50-150 MB
Frame independence Yes — every frame stands alone No — most frames depend on neighbors
Streaming and browser playback Limited (VLC, a few players) Universal (HTML5 video, every device)
Editing in modern NLEs Works but heavy on the timeline GPU-accelerated decode, smooth scrubbing
Default audio Often absent (security cameras) AAC (configurable: MP3, AC3, FLAC, Opus, ...)
Best for Capture, evidence review, scientific archival Sharing, streaming, archive, mobile playback

The defining tradeoff: MP4 / H.264 throws away frame independence to gain 5-10x compression. That's the right call for sharing and archive but the wrong call when every frame must survive standalone — for those cases, MP4 to MJPEG goes the other direction.

Codec and CRF Quick Guide

Codec Typical size vs source MJPEG Encode speed Compatibility
H.264 (default) ~10-15% of MJPEG Fast Universal — every device since 2006
H.265 / HEVC ~5-8% of MJPEG Medium iPhone / Android / modern browsers, Smart TVs since 2017
AV1 ~4-7% of MJPEG Slow Chrome, Firefox, Edge, modern phones; older devices may not play
DivX / Flash / FLV Comparable to H.264 Fast Legacy desktop players, embedded systems
CRF (H.264 Constant Quality) Quality File size impact Best for
18 Visually lossless ~2x larger than CRF 23 Archival, color-graded review
20-22 High, indistinguishable on consumer screens Slightly larger than default YouTube uploads, polished delivery
23 (default) Good — H.264's recommended balance Baseline General sharing, email, cloud storage
26-28 Acceptable for preview ~50% smaller than default Quick previews, low-bandwidth delivery

Frequently Asked Questions

How much smaller will the MP4 be than my MJPEG source?

Typically 80-90% smaller. A 600 MB 1-minute 1080p MJPEG from a security camera usually lands at 60-100 MB as MP4 / H.264 at the "Very High" preset, and 30-60 MB at H.265 / HEVC. The exact ratio depends on motion content — a static surveillance angle compresses much harder than a busy intersection because H.264 stores only what changed between frames.

Will I lose visible quality?

At the "Very High" preset (roughly CRF 18-20) the difference is imperceptible on a normal monitor. The size reduction comes from inter-frame compression, not quality reduction — H.264 simply doesn't repeat data that didn't change between frames. Pick "Highest" or set CRF to 18 if you need a true archival master; pick CRF 23 for sharing and CRF 28 for quick previews.

Should I pick H.264 or H.265 / HEVC?

H.264 plays on every device made since around 2006 with no fuss — pick it for maximum compatibility, especially when the recipient might open the file on an older laptop or a basic media player. H.265 / HEVC produces roughly half the file size at equivalent quality and plays natively on iPhone (since iOS 11), modern Android, current macOS / Windows, and Smart TVs from 2017 onward, but older Chromebooks and some browsers still struggle. AV1 produces the smallest files but is the slowest to encode and has the narrowest device support.

Can I keep my IP camera's burned-in timestamp overlay?

Yes. The visual timestamp that Reolink, Hikvision, Amcrest, Wyze, and most NVR systems burn into the video frames is part of the image itself, not metadata, so it survives any conversion. Keep resolution at 1080P or 720P (matches most IP-camera native resolutions) so the timestamp digits remain readable; downscaling to 240P or 360P can blur small overlay text.

Does the MJPEG audio track convert correctly?

Most MJPEG sources (security cameras, microscopes, machine-vision rigs) record no audio at all, in which case the MP4 is silent. When audio is present (webcam, OBS capture, dashcam with mic), it's re-encoded to AAC by default — the standard MP4 audio codec that plays everywhere. MP3, AC3, EAC3, FLAC, Opus, and Vorbis are also available under Audio Codec if a downstream tool needs a specific track.

What's the difference between .mjpg and .mjpeg?

They're the same format — Motion JPEG, a sequence of independently compressed JPEG frames. Windows tools historically prefer .mjpg, while Unix and many camera vendors use .mjpeg. The internal data is identical and this converter accepts both interchangeably. Output is a standard .mp4 container regardless of input extension.

Why does my IP camera export an .mjpeg file in the first place?

IP / security cameras pick MJPEG because every frame is independently decodable — if the network drops a packet during recording, only that one frame is lost rather than a whole group of pictures. That matters in evidentiary review where a clip might be subpoenaed. The downside is size: every frame is a full JPEG with no inter-frame savings. Converting to MP4 trades frame independence for 5-10x smaller files, which is the right call once the clip is past the review stage and you're archiving or sharing it. If the destination needs frame independence preserved, see MP4 to MJPEG.

Can I trim a long MJPEG export before converting?

Yes — and for MJPEG sources it's especially worth doing. Set a start time and duration under the Trim option in seconds (45.0) or HH:MM:SS.sss (00:01:30.500). Because MJPEG file sizes scale linearly with duration, cutting an hour-long camera dump to a 30-second event clip before converting can be the difference between a 36 GB upload and a 100 MB output. Trim runs entirely in your browser session.

Can I batch convert a folder of MJPEG files at once?

Yes. Drop in as many .mjpg or .mjpeg files as you want; each converts in parallel within your browser session. Settings can apply to the whole batch (typical for a folder of doorbell-camera triggers or a sequence of microscope acquisitions) or be tuned per-file. Outputs download individually or as a single ZIP. For other targets, see MJPEG to AVI, MJPEG to MOV, or MJPEG to WebM.

Rate MJPEG to MP4 Converter Tool

Rating: 4.8 / 5 - 71 reviews