ONELESS · IMAGE LIGHT
Image to Base64
A small image sometimes needs to travel inside a text field, a stylesheet, or a self-contained example. Image to Base64 converts the file you choose into a string without redrawing the picture. You can see the image beside its code, choose raw Base64 or a complete data URL, and copy or save exactly the form your destination expects. The original bytes stay intact, including metadata and animation frames.
Open Image to Base64 · This tool needs JavaScript for image processing. The complete guide is available below.
YOUR IMAGE, YOUR DEVICE
Local processing. A separate result.
Files, code, and calculation values are processed in this browser and are not uploaded by the tool or saved in browser storage. Clear removes the working result. Leaving the page releases its temporary image URLs. Copies you put on the clipboard or download remain under your control. Share copies the tool address without your input.
Encoding preserves every original byte, including embedded metadata. A preview may apply EXIF orientation while the encoded data remains unchanged. Review what the original file contains before sending its code elsewhere.
JPEG, PNG, and WebP are supported, including animated PNG and WebP when the browser can display them. The original file or decoded payload must be at most 8 MB, 16 megapixels, and 16,384 pixels on either side. Base64 text input is limited to 12,582,912 characters. SVG, GIF, HEIC, and arbitrary documents are outside these two tools. File size labels use 1 KB = 1,000 bytes; 1 MB = 1,000,000 bytes.
Read the site privacy policy for the surrounding website.
File sizes and limits use decimal units: 1 KB = 1,000 bytes and 1 MB = 1,000,000 bytes. Rounded labels are for readability; target checks compare exact bytes.