Image to Base64: Create a Data URL from a Picture
Convert an image to a Base64 data URL you can paste into HTML, CSS or JSON.
Files never leave your deviceFreeBatch + ZIP
How to use it
- Drag your files into the box or click to choose them.
- Change the settings if needed.
- Press “Start” and download the result.
About Image to Base64
Base64 encodes the image bytes as text so it can be embedded directly in code, for example inside CSS or an email template. The output grows by about a third, so use it for small icons only. The result is downloaded as a text file.
FAQ
Is Base64 good for large images?
No. It increases size by about 33%, so keep it for small images.
Are my files uploaded to a server?
No. Everything runs in your browser; your files and text never leave your device.
Is it free? Do I need an account?
The tool is free and needs no registration.
Does it work on a phone?
Yes, in modern desktop and mobile browsers; large files depend on your device power.
Related tools
Image to PDFCombine one or many images into a single PDF, in your order. Files never leave your device.PDF to JPGTurn each PDF page into a JPG image and download them as a ZIP. Runs in your browser.JPG to PNG ConverterConvert JPG files to PNG in seconds. Batch convert and download a ZIP. Files never leave your device.PNG to JPG ConverterConvert PNG files to smaller JPG images. Transparent areas become white. Batch conversion, no upload.WebP to JPG ConverterConvert WebP images to widely supported JPG. Batch conversion, files stay on your device.WebP to PNG ConverterConvert WebP files to PNG in your browser, one or many at once. Files never leave your device.JPG to WebP ConverterConvert JPG files to WebP in your browser, one or many at once. Files never leave your device.PNG to WebP ConverterConvert PNG files to WebP in your browser, one or many at once. Files never leave your device.