Toolbox

File to Base64 Online

文件转Base64Data URL编码内嵌

Pick or drag any file to instantly generate its full Data URL and pure base64, with name, type and size shown. One-click copy for embedding and API debugging, fully local.

Click or drag a file here to upload (any format)

All processing is done locally in your browser. No data is uploaded.

How to Use

  • Paste any valid JSON, supports nesting, arrays and escapes
  • Click Beautify to auto indent and format
  • Click Minify to remove whitespace into one line
  • All operations run locally for privacy

Related Tools

FAQ

What is the output format?

A full Data URL (data:type;base64,payload) by default, ready for CSS/HTML embedding or API transport.

Any file size limit?

Limited by browser memory; keep files under tens of MB to avoid slowdowns.

Will my file be uploaded?

No, files are read and converted locally only.