Skip to main content
Preparing workspace

Base64 to Video

Decode Base64 to a playable MP4, WebM or MOV, or encode a video file to Base64 or a data URL. Shows container, duration and size. Nothing is uploaded.

Still loading. If the tool doesn’t appear, reload this page.

About this tool

Base64 to Video

Decode Base64 or a data URL back into a playable video, or encode a video file to Base64, with the container, duration and frame size read from the file.

To convert Base64 to video, paste raw Base64 or a data:video/mp4;base64,… URL: it is decoded in your browser, the container is detected from its bytes, and you can preview and download it. The Video → Base64 tab works the other way, giving a data URL, raw Base64 or <video> tag. A 3 MB clip becomes 4 MB of Base64.

How to use Base64 to Video

  1. Pick the direction: Base64 → Video to decode, or Video → Base64 to encode.

  2. To decode, paste raw Base64 or a full data:video/…;base64, URL; to encode, choose a video file from your device.

  3. Check the detected container, duration and frame size, then download the video or copy the data URL, raw Base64 or <video> tag.

Why use Base64 to Video

  • Container read from the bytes

    MP4, MOV and 3GP (ftyp brands), WebM and MKV (EBML header), Ogg, AVI, FLV, WMV and MPEG streams are identified from their signatures, so a wrong MIME type is caught.

  • Real duration and frame size

    Taken from the mvhd timescale and the 16.16 fixed-point width/height in tkhd, not from a guess or a player callback.

  • Stays on your machine

    Decoding and playback both use a local blob URL, so unreleased footage is never uploaded.

Common use cases

  • Play a short clip that an API returned as a Base64 field, without saving it to disk first
  • Confirm whether a `data:video/mp4;base64,...` string is really MP4 or a WebM that was mislabelled upstream
  • Check the duration and resolution of an uploaded clip before deciding whether your transcoding pipeline needs to run

Frequently asked questions

How do I convert a video to Base64?

Switch to Video → Base64 and pick the file (up to 25 MiB). It is read and encoded in your browser, then you copy or download it as a data URL (data:video/mp4;base64,…), raw Base64, or a ready <video> tag. The tool also reports the container, duration and frame size of the file you picked.

Link to answer
How do I turn a Base64 string back into a video file?

Stay on Base64 → Video, paste the string and press Download — the tool decodes it locally and saves the file with the right extension for its container. Everything after the comma in `data:video/mp4;base64,` is the payload, and you can paste either the whole data URL or just that part.

Link to answer
How much bigger is a Base64 video than the original file?

About 33% bigger: Base64 encodes every 3 bytes as 4 ASCII characters, so a 10 MB MP4 becomes roughly 13.3 MB of text. That overhead is why video is almost always transferred as a binary upload or a signed URL rather than inline in JSON.

Link to answer
Why will the decoded video not play in my browser?

Three common reasons. The container may be one browsers do not support — AVI, WMV, FLV and MPEG-TS have no native `<video>` support even though the file is valid. The codec inside a supported container may be unsupported, such as H.265 in an MP4. Or the payload is truncated or header-only: when an MP4 has no `mdat` box holding the encoded frames, this tool says so explicitly.

Link to answer
How does the tool know the duration without playing the file?

For ISO Base Media files it reads the movie header box: `mvhd` stores a timescale (ticks per second, commonly 600 or 1000) and a duration in those ticks, and the length in seconds is duration ÷ timescale. WebM, AVI and MPEG streams store timing differently, so duration is only reported for the MP4 family.

Link to answer
Is there a size limit?

Decoding accepts Base64 up to 60 MiB of decoded video, and encoding accepts files up to 25 MiB. Both run in your browser tab with nothing uploaded, so the limit is memory: the bytes, the Base64 text and the preview all have to fit at once.

Link to answer

Embed this tool on your site

Add the Base64 to Video widget to your blog or website — free, responsive, no signup. Just keep the “Widget by AltFTool” credit link visible.

<iframe src="https://www.altftool.com/embed/widget/base64-to-video"
  title="Base64 to Video — free AltFTool widget"
  width="100%" height="640" style="border:0;border-radius:12px;overflow:hidden"
  loading="lazy" referrerpolicy="no-referrer-when-downgrade" allow="clipboard-write"></iframe>
<p style="font-size:12px;margin:4px 0 0">Widget by <a href="https://www.altftool.com/tools/all/base64-to-video?utm_source=embed&utm_medium=widget" rel="nofollow">AltFTool — free online tools</a></p>

Browse all embeddable widgets →