File to Base64

Turn a local file into a Base64 string or Data URI while preserving its bytes. Copy the encoded output or download it for use in text-based systems.

File to Base64
Ready when you are

Add your input, adjust the options and run the tool.

—
Options
Runs in your browser
No input saved

How to use this tool

01

Add your input

Drop files here, or browse

02

Choose your options

Convert any file into exact Base64 bytes or a ready-to-use Data URI, locally.

03

Inspect and export

Review the processing notes, then copy or download the result. Continue with another tool if needed.

JavaScript Base64 recipes for JSON, files and byte arrays