Convert jpg to mp4

Convert JPG to MP4

Turn one JPG or a photo sequence into a compatible MP4 video with FFmpeg or desktop tools.

Convert JPG files online

We don’t have a dedicated online converter for JPG to MP4 yet, but you can convert JPG files online to these and more formats:

How to convert jpg to mp4 file

  • Video

A video editor, social platform, presentation system, or playback device may accept MP4 video but reject still JPG images. Converting creates a timed video from one image or a slideshow from multiple images, with optional audio.

What the JPG format is

JPG, also written as JPEG, is a lossy raster-image format designed for photographs and other continuous-tone images. Digital cameras, smartphones, scanners, Photoshop, GIMP, and web browsers commonly create or use .jpg files. A JPG normally contains one still image; it has no timeline, frame rate, audio track, or video codec.

What the MP4 format is

MP4 is a multimedia container, not a video codec. It commonly contains H.264 video and may contain AAC audio, subtitles, and metadata. Phones, televisions, browsers, video editors, social platforms, and media players widely support MP4. Unlike JPG, an MP4 can store timed video frames, duration, frame rate, audio, and a defined display resolution.

How to convert one JPG

FFmpeg is a free desktop option for Windows, macOS, and Linux. Install it from the official FFmpeg download page, put the image in a working folder, open a terminal in that folder, and run:

ffmpeg -loop 1 -i input.jpg -t 10 -r 30 -c:v libx264 -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" -movflags +faststart output.mp4

Replace input.jpg and output.mp4 with the required filenames. Change -t 10 to set the duration in seconds. The command creates 30 frames per second from the same image; it does not add motion or detail. The scaling filter makes the width and height even, which avoids common H.264 encoding failures. yuv420p provides broad playback compatibility, and +faststart moves MP4 metadata near the beginning for faster web playback.

How to create a slideshow

Rename the images with continuous numbering, such as frame_001.jpg, frame_002.jpg, and frame_003.jpg, then run:

ffmpeg -framerate 1/5 -i frame_%03d.jpg -c:v libx264 -r 30 -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" -movflags +faststart slideshow.mp4

-framerate 1/5 displays each image for five seconds, while -r 30 produces a conventional 30 fps output. The pattern %03d matches three-digit numbers. Keep the sequence continuous; for irregular filenames, import the files into a timeline editor or create an FFmpeg concat list.

How to use desktop software

Shotcut and Kdenlive can import JPG files into a timeline, set each image's duration, add transitions, crop or pad images, add titles, and mix audio. In Shotcut, import the files, add them to the playlist and timeline, set the project resolution and frame rate, then choose Export → Default → Export File. Confirm that the export uses H.264 video in an MP4 container. A graphical editor is more practical than a command line when the slideshow needs varied durations, transitions, text, music, or reframing.

How to use an online converter

CloudConvert and FreeConvert provide browser-based JPG-to-MP4 workflows; available slideshow controls vary by service. Upload one image or a numbered set, choose MP4, set the image duration and order when offered, start the conversion, and download the result. Online processing requires uploading the images to a third party, so avoid confidential photographs and files restricted by privacy or licensing requirements. Use desktop software for large batches, predictable settings, or sensitive material.

Quality and compatibility limits

Conversion cannot restore detail lost by JPG compression. Re-encoding the image into H.264 may add another generation of compression; for a high-quality output, add -crf 18 to the FFmpeg command, balancing quality against file size:

ffmpeg -loop 1 -i input.jpg -t 10 -r 30 -c:v libx264 -crf 18 -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" output.mp4

Match the project dimensions to the destination: 1920×1080 suits landscape HD video, while 1080×1920 suits vertical video. An image with a different aspect ratio may be cropped, stretched, or shown with black bars; choose crop or pad deliberately instead of distorting it. A converted JPG has no audio unless an audio file is added in an editor or with FFmpeg. For broad device support, use H.264 video, AAC audio when required, even pixel dimensions, and the yuv420p pixel format.

JPG vs MP4: format comparison

How the JPG and MP4 formats compare on the properties that matter most for this conversion.

Comparison of the JPG and MP4 file formats
Property .JPG JPEG File Interchange Format .MP4 MPEG-4 Part 14
Open standard Yes Yes
Compression Lossy Both
Typical file size Small Small
Opens in a web browser Yes, natively Yes, natively
Further editing Limited Limited
Metadata support Extensive Extensive
Plain-text readable No No
Best used for Photographs Sharing and distribution
Introduced 1992 2001
Developer Joint Photographic Experts Group Moving Picture Experts Group (ISO/IEC)
MIME type image/jpeg video/mp4

Additional formats for
jpg file conversion

Reverse conversion

Convert to mp4 from
other formats

Share on social media: