Image to Base64

Preview an image and copy its Base64 or data URI. Your file stays in your browser.

Choose a PNG, JPEG, GIF or WebP up to 10 MiB.

How it works, and what stays on your device

Choose a PNG, JPEG, GIF or WebP up to 10 MiB. Preview the image before copying the result.

Copy Base64 for just the encoded bytes or copy the data URI to include the image type.

Frequently asked questions

What is the difference between Base64 and a data URI?

Base64 is the encoded image bytes. A data URI adds a prefix with the image type so it can be used as an image source.

Does this upload my image?

Your browser converts and previews the image locally. Your file stays on your device.

Does the conversion change the image?

The result includes the original file bytes and metadata. Base64 does not resize or compress the image.