Convert GIF to M4V

Converting GIF to M4V produces the file Apple’s own applications expect: the same H.264 video an MP4 would carry, under the extension that makes an Apple TV app, a Photos import or an old iTunes library file it as a video rather than as a picture. The conversion runs in your browser.

  • Where it runs In your browser. The file is never uploaded.
  • Lossy Some detail is traded for size. M4V cannot hold everything a GIF can.
  • File size limit Up to 100 MB per file, free, without an account.
  • Worth knowing The result has no sound, because a GIF has none to carry. Each frame keeps its own timing, so an animation with irregular delays plays at the speed it was authored at rather than an averaged one.

Up to 100 files at once. Mixed formats are fine.

What the M4V extension actually changes

M4V and MP4 are the same container. Apple published M4V in 2005 as its own naming for the ISO base media format, and a file written as one is structurally what a file written as the other would be. The difference is entirely in how software reacts to the four letters after the dot.

Inside Apple’s applications those four letters are a routing instruction. An .m4v is filed as a video item; the same bytes named .mp4 are treated more loosely and, in a Photos or media library context, can end up categorised differently. That is a small thing until it is the reason an animation you imported is not where you expected to find it.

The FairPlay association, and why it does not apply here

The format’s record notes that M4V supports encryption, and that is the reason the extension has the reputation it has: nearly every M4V most people have encountered came from the iTunes Store wrapped in FairPlay, playable only on devices signed in to the account that bought it.

Nothing in this conversion touches that. The file produced here is an ordinary unprotected video — VLC opens it, a Windows machine opens it, an Android phone opens it if you rename it. The extension carries the capability, not the restriction.

H.264 High profile, which Apple hardware decodes in silicon

The video track is H.264 in the High profile, paired with the container the same way MP4 is on this site. That pairing is the one every Apple device made in the last fifteen years decodes in dedicated hardware rather than on the CPU.

On a phone that is the difference between playing a looping animation in the background and watching the battery indicator move. It also means an Apple TV plays the file directly from a shared folder without asking a media server to transcode it first, which is the failure mode people hit when they put an unusual codec into an Apple-flavoured container.

The clip has no sound, and Apple’s players do not mind

A GIF carries no audio, so the M4V has a video track and nothing else. QuickTime Player, the iOS player and the Apple TV app all handle a silent video without a warning or a placeholder.

Where it can matter is further along. Uploading a silent video to a service that expects audio, or handing it to an editing timeline with a fixed track layout, occasionally produces a complaint about a missing stream. Adding a silent track in a video editor before that step is quicker than converting the GIF again.

Where the .m4v extension will be refused

Outside Apple’s software the extension is a liability rather than a help. Web upload forms, content management systems and a number of Android applications check the file name before they check the file, and a list that permits .mp4 frequently does not mention .m4v. The upload is rejected for a file the service would have played perfectly.

The workaround is to rename it, and it genuinely works, because the contents are the same. But if you already know the destination is not Apple, converting to MP4 in the first place saves the round trip — that page argues the size case for the same animation.

The GIF’s own frame delays are carried into the M4V

GIF timing is stored per frame in hundredths of a second, and hand-made animations use it irregularly: a long hold, then a fast run. The conversion keeps each frame’s own duration rather than resampling to a constant rate, so a loop that was timed by eye still reads the way it was timed.

A delay of zero appears constantly in real GIFs and means "as fast as possible", which browsers have long interpreted as 100 milliseconds. The conversion does the same, so a GIF that played at ten frames a second in a browser plays at ten frames a second as an M4V rather than racing.

Dimensions are nudged to even numbers first

H.264 requires an even width and an even height. GIFs have no such rule and old ones are full of odd dimensions, so both are rounded up to the next even number before encoding — a 375-pixel-wide GIF becomes a 376-pixel-wide M4V.

Rounding up adds a column or a row rather than cutting one away, which keeps the edge of the animation intact. On a phone screen the extra pixel is not visible; on a tightly cropped logo, cropping instead would have been.

Transparency and the 256-colour floor, both settled before this step

If the GIF has a transparent background, it does not survive: the video track written here carries no alpha channel, and this conversion has no background colour to choose. An animation designed to float over a coloured page will arrive with whatever the transparent pixels resolve to, which is not what it looked like on the page.

The colours are a floor rather than a loss. A GIF frame holds 256 of them at most, and that reduction happened when the GIF was made. The M4V records them faithfully and adds no palette of its own, so the animation does not degrade further — it cannot improve, whatever quality band is chosen.

Everything happens on the device holding the GIF

The frames are read by the browser’s own image decoder and written into the container in the same tab. Nothing is uploaded, there is no account, and the file is gone from memory when the tab is closed.

That decoder is not in every browser. Where it is absent the page says so plainly and names browsers that have it, rather than sending the file somewhere else to be finished — which would quietly break the only claim on this page worth making.

How to turn a GIF into an M4V

  1. Drop the animated GIF onto this page, or click to choose it.
  2. The frames are decoded and encoded as H.264 in an Apple container.
  3. Download the M4V and add it to the library or device you meant it for.

GIF and M4V: an image file becoming an Apple video item

GIF compared with M4V
GIFM4V
Full nameGraphics Interchange FormatiTunes Video
File extension.gif.m4v
Media typeimage/gifvideo/x-m4v
CompressionLossless — nothing is discardedLossy — file size is bought with quality
First published19872005
Published byCompuServeApple
SpecificationGIF89a
LicensingOpen standardPublished, not standardised
Standing todayLegacy, still read everywhereCurrent
Bit depth8
Colour it can describeindexed palette
Largest image65,535 px per side
Opens in a browserEvery browserSome browsers
Considered insteadWebP, MP4MP4, MOV

Opening the result

Only some browsers read M4V. It is the less portable of the two, so it is worth being sure the program at the other end accepts it before sending one.

M4V is a container rather than a single format. What actually plays is the codec inside it — usually H.264, HEVC and AAC — which is why two files with the same extension can behave differently on the same device.

GIF dates from 1987 and is largely superseded. M4V is what current software writes, so the conversion is as much about staying readable as about the file itself.

The usual programs do not overlap: GIF opens in GIMP, Adobe Photoshop and ImageMagick, M4V in QuickTime Player, VLC and iTunes — so whoever receives the result needs something from the second list.

What each format is for

The two are aimed at different work: GIF at the web, M4V at handing a finished file over and phones. That is worth weighing before converting, because the reason one exists is usually the reason the other is awkward.

GIF is CompuServe's format, published in 1987. It records 8 bits per channel.

M4V comes from Apple and dates from 2005. QuickTime Player, VLC and iTunes all read it.

GIF was published in 1987 and M4V in 2005. The older one is generally the safer file to hand to somebody; the newer one usually does the job in fewer bytes.

GIF to M4V: Apple software, FairPlay and the extension

Is an M4V an MP4 under a different extension?

Very nearly. Both are the same ISO base media container, and the M4V this conversion writes carries the same H.264 video an MP4 would. The differences that exist are Apple’s conventions rather than the file structure: the extension tells Apple software to file the item as a video, and the format allows FairPlay protection, which store purchases carry and which this file does not.

Will the M4V be copy protected?

No. The format permits FairPlay encryption and that is what people associate the extension with, because the M4V files most people have met came from the iTunes Store. Nothing here encrypts anything — the file this produces is an ordinary unprotected video that any player will open.

Which one should I use, M4V or MP4?

M4V if the destination is Apple’s own software and you want it filed as a video: an Apple TV app, an old iTunes library, a Photos import. MP4 if the file is going anywhere else at all, because a handful of upload forms, content management systems and Android apps check the extension rather than the contents and will reject .m4v while accepting the byte-identical .mp4.

Will it play on an iPhone or an Apple TV?

Yes. The video is H.264 in the High profile, which is what Apple hardware has decoded in silicon since well before the iPhone 4, so playback costs almost no battery. The clip has no audio track, which Apple’s players handle without complaint.

Can I AirDrop it straight to my phone?

Yes, once it is downloaded. AirDrop hands the file over as it is and iOS opens it in the player. Whether it lands in Photos or in Files depends on where you accept it — an M4V arriving from AirDrop is offered to the Files app rather than added to the camera roll automatically.

Is the GIF sent anywhere?

No. The GIF is decoded and the M4V written inside your browser using the machinery it already has for media. There is no upload and no account, and nothing about the file reaches a server.

More about these formats

Where these figures come from

The claims this page makes about GIF and M4V are checkable, and these are the documents that settle them.