Skip to content
DDevToolery

Base64 File Converter

Convert a local file to Base64 and back again.

Loading tool…

About this tool

Encodes a file into Base64 so it can be embedded in JSON, XML or a config file. The file is read with the browser's File API and never uploaded. Base64 inflates data by about a third, which is why the limit here is deliberately modest.

Limitations

  • The file is read in the browser and never uploaded.
  • Base64 inflates data by roughly a third, and the whole result is held in memory. Large files will be slow.

Questions

Why is there a 10 MB limit?
The encoded result is held in memory as a string, rendered into the page and copied to the clipboard. A 10 MB file becomes roughly 13 MB of text, which is already more than any of those steps handle comfortably.

Privacy

This page does its work in your browser. What you paste is processed by JavaScript running on your own device and is never sent to a DevToolery server — there is no server that could receive it. The page itself is a static file delivered by a CDN. See exactly what is stored.