Video to Base64 & Base64 to Video Converter

Encode MP4, WebM or MOV video to Base64, or decode and preview. Runs in your browser; nothing is uploaded.

Video preview
Choose a file above or paste Base64 on the left to preview and download it here.

How to convert Video to Base64 and Base64 to Video

  1. Video to Base64: drop or choose a video file (MP4, WebM, MOV, OGV, AVI, MKV, or 3GP up to 25 MB) to encode it into a data:video/...;base64, URI or raw Base64 string.
  2. Base64 to Video: paste raw Base64, a data:video/...;base64, URI, or a <video> / <source> snippet into the Base64 pane to detect the container format, preview playback in your browser, and download the video file.

Working with still pictures or animated GIF/WebP files? Try the Image ↔ Base64 Converter.

Frequently asked questions

Which video formats are detected when decoding raw Base64?
The decoder inspects file signatures (magic bytes) to identify MP4 (video/mp4), WebM (video/webm), QuickTime MOV (video/quicktime), Ogg Theora (video/ogg), AVI (video/x-msvideo), Matroska MKV (video/x-matroska), 3GP, and FLV.
Why is there a 25 MB file size limit for Video ↔ Base64?
Base64 encoding expands binary files by 33%, turning a 25 MB video into a ~33 MB text string in browser memory. For larger videos, serve the binary MP4 or WebM file directly rather than inlining it as Base64.
Why might a decoded video download cleanly even if the inline preview cannot play it?
Magic-byte detection reconstructs the exact original binary container (such as AVI, MKV, or HEVC-encoded MOV) for download, even when your browser only supports H.264/VP9/AV1 playback inside <video>.