Image to Base64
Convert a local image file into Base64 or a data URL.
Runs on your device. Nothing you add is uploaded.
Choose a fileor drop it here, or pasteImages ยท stays on your device
Your result shows here once you add a file. Nothing leaves your device.
How to use Image to Base64
- Choose an image from your device.
- Leave the prefix on for a data URL, or turn it off for plain Base64.
- Copy the result where you need it.
Questions
Is the image uploaded?
The browser reads the file and converts its bytes locally.
Does this change image quality?
Base64 preserves every byte of the original file. The text is typically about one-third larger.
How this works
Reads the local file as bytes and encodes them with the browser's Base64 API.
Everything happens in this browser tab. What you type or add stays on your device, and the page has no tracking. Your last settings are kept in this browser so the tool opens the way you left it. Privacy
Related tools
More in Encode & decodeBase64 to Image
Preview and download a raster image from Base64 text or an image data URL.
SVG to Data URI
Make a percent-encoded or Base64 data URI from SVG markup.
Data URI Generator
Embed UTF-8 text in a data URI with a media type you choose.
Morse Code Translator
Translate between written Morse code and text.