Video to Base64
Turn a short video clip into a Base64 string or an embeddable HTML5 video. Everything happens locally in your browser, so even large clips are not uploaded anywhere.
Video file
Drop a video here or choose one
How to convert Video to Base64 online
- Select a video file or paste a URL.
- Choose the output format.
- Click Encode video to Base64 and preview the clip.
Output formats
Choose how the result should be wrapped. The converter can return:
- txt: only the Base64 string, ready to paste into code, a database field or an API request.
- uri: a complete
data:URI that you can paste in a browser address bar or use anywhere a URL is accepted. - html video: an HTML5
<video controls>player. - html source: a media element with a nested
<source>tag and MIME type. - html embed: an
<embed>tag. - html object: an
<object>tag with a type attribute. - html hyperlink: an
<a>link that downloads or opens the embedded file. - html iframe: an
<iframe>that renders the content inline. - javascript video: JavaScript that creates a
<video>element. - javascript popup: JavaScript that opens the content in a new window.
- json: a JSON object with the file name, MIME type and data.
- xml: an XML element with the data inside a CDATA section.
Should you embed video as Base64?
Only for very short clips (a few hundred KB), for example looping UI animations or test fixtures. Long videos should be served as normal files so browsers can stream and cache them.
Frequently asked questions
How do I embed a Base64 video in HTML?
Use <video controls src="data:video/mp4;base64,..."></video>. MP4 (H.264) and WebM play in all modern browsers.
Why does my Base64 video start with AAAAIGZ0eXB?
That is the Base64 form of an MP4 "ftyp" box, the first structure in every MP4 and MOV file.
Comments (0)
Questions, ideas or a bug in “Video to Base64”? Leave a comment, rate the tool, or reply to others.
No comments yet. Be the first to share your feedback!