Base64 to Video Converter (MP4, WebM) – Free

Decode a Base64 string into a video you can watch and save. This Base64 to video converter recognizes MP4 and WebM containers and does all the work in your browser.

How to use the Base64 to Video tool

  1. Paste the encoded clip into the Base64 or Base64 data URL box. Large strings can take a moment to paste.
  2. Select Decode file and wait for the Done message under the result.
  3. Read the Result line for the size in bytes and the detected media type.
  4. Play the clip in the video player that appears below the result.
  5. Select Download to save the file with its detected extension.

How MP4 and WebM are detected

MP4 follows the ISO base media file format, ISO/IEC 14496-12. The file is a list of boxes, each with a 4 byte length and a 4 byte type. The first box is normally ftyp, the file type box, so bytes 4 to 7 spell ftyp. The tool reads the major and compatible brands inside that box to identify the container.

WebM is a profile of Matroska and starts with an EBML header whose ID is 1A 45 DF A3. The tool tests those four bytes. In Base64, WebM data starts with GkXfo, and MP4 data starts with AAAA, one character that depends on the box length, then GZ0eX.

Worked example: a 24 byte ftyp box

The string below is the first box of an MP4 file and nothing more. Its bytes read: length 24, type ftyp, major brand mp42, minor version 0, and two compatible brands, isom and mp42. The tool recognizes the mp42 brand and classifies the data as video/mp4. A real clip continues with moov and mdat boxes that hold the index and the encoded frames.

Input:   AAAAGGZ0eXBtcDQyAAAAAGlzb21tcDQy
Result:  24 bytes · video/mp4
File:    decoded.mp4

What passes the Base64 to video check

Because the test is a container signature, the label video is broader than it sounds in some cases and narrower in others.

  • QuickTime and 3GPP files with recognized brands download with their matching extensions.
  • Use Base64 to Audio for M4A and Base64 to Image for AVIF.
  • Matroska .mkv shares the EBML header with WebM and is saved as decoded.webm.
  • AVI, Ogg video, FLV and MPEG transport streams are rejected with The Base64 does not contain a supported video format.
  • Older QuickTime files whose first box is moov or mdat are rejected, since ftyp is missing.

Working with large Base64 video

Video is the heaviest thing people put into Base64. Each megabyte of video becomes about 1.33 million characters. The decoder sets no size cap, but your browser has to hold the pasted text, the decoded bytes and the playable copy together, so clips of many tens of megabytes can make the tab sluggish.

Preview and download are separate concerns. The player needs a codec your browser supports, and some browsers lack H.265 or AV1 decoding. The Download link works either way, because it only writes bytes to disk. If the Result line shows a plausible size but the player stays black, save the file and test it in a desktop media player.

Frequently asked questions

Is my video uploaded for conversion?

No. The clip is rebuilt from the Base64 text in your browser's memory and played from there. Nothing is transferred, which also means there is no upload wait.

Which formats does Base64 to Video accept?

MP4, QuickTime and 3GPP video containers with recognized file brands, and files with the EBML header used by WebM.

Why does the decoded video not play?

Either the codec is not supported by your browser or the data is incomplete. A truncated MP4 often lacks the moov index, which players need to start. Check that the byte count matches the source file size.

Can I decode a data URL from a video element?

Yes. Paste the full value, for example one that begins with data:video/mp4;base64, and the prefix is removed for you. The declared type does not affect detection.

Does decoding reduce video quality?

No. Base64 decoding is lossless and the tool does not transcode. Resolution, bitrate, audio tracks and subtitles in the container are exactly those of the encoded file.

Related tools