File to Base64

File to Base64: Convert a local file into downloadable Base64 text, entirely in the browser.

File to Base64

File to Base64: Choose a file up to 2 MB and click Encode Base64. A short preview appears and the complete encoded data can be downloaded as text.

Loading the tool...

✓ Your inputs stay in this browser

How to use File to Base64

Choose a file up to 2 MB and click Encode Base64. A short preview appears and the complete encoded data can be downloaded as text.

Example

A five-byte file containing Hello becomes SGVsbG8=.

What to know

Base64 expands file size, is not encryption, and can reveal sensitive data if shared. The converter never uploads your file.