File to Base64 & Data URI Converter

Encode any file (images, fonts, PDFs, archives) into standard Base64 / Data URI, or reconstruct binary files from Base64 text. 100% private in browser.

Drop file here or click to browse
Supports images, fonts, PDFs, audio, archives, and binaries
Embed this tool on your website / blog No code required · Copy and paste
HTML Embed Code (iframe):
<iframe src="https://lucentool.com/base64-file" width="100%" height="650" style="border:1px solid #e5e0d8;border-radius:12px;max-width:850px;width:100%;" frameborder="0"></iframe>
<div style="font-size:12px;color:#78716c;margin-top:6px;font-family:sans-serif;">Powered by <a href="https://lucentool.com/base64-file" target="_blank" style="color:#c85a32;text-decoration:none;">Lucentool - File to Base64 & Data URI Converter</a></div>

What is a Data URI Scheme?

A Data URI embeds small images, fonts, or assets directly into HTML/CSS files, eliminating additional HTTP requests and preventing visual loading flashes.

The 33% Size Overhead

Base64 maps every 3 bytes into 4 ASCII characters, resulting in a predictable ~33.3% payload size increase. It is optimal for small icons and web fonts, but counterproductive for large videos.