Image to Base64
Convert an image to a Base64 data URL, or paste Base64 to restore and download the image. Everything stays in your browser.
Click to choose or drop an image here
Ready. Image data is processed locally and never uploaded.
Preview
About Image to Base64
Convert an image to a Base64 data URL, or paste Base64 back to preview and download the original image, with this free image to Base64 converter. Inline data URLs let you embed small icons, logos, and sprites directly in CSS, HTML, Markdown, or JSON without an extra HTTP request. Copy the encoded string in one click when the preview looks right.
Frontend developers inline tiny icons to avoid a round trip. Email developers embed images where hosted files are blocked. API developers put small images into JSON. Decode mode helps when a data URL in a stylesheet or a database row needs to become a file again. Large photos should usually stay as files; Base64 increases size, so this tool is best for small assets.
Pick an image to encode, or paste a data URL or raw Base64 to decode and preview. Copy the string or download the reconstructed file. Pair with the image resizer if you need fewer pixels before encoding, or with the text Base64 tool if your input is not an image. Blocked script-like filenames are rejected for safety.
Encoding and decoding run locally in your browser, so images never leave your device. Use this free image to Base64 converter and Base64 to image decoder whenever you need private data URLs and round-trip previews.