Media Tools

Image to Base64

Produce a data URL for a valid PNG, JPEG or WebP image.

JavaScript is required to run the interactive tool. Open the tool separately if it does not load in the frame.

How to use it

Choose an image and copy the generated data URL. The original bytes are encoded locally.

Example

A PNG data URL begins with the prefix data:image/png;base64, followed by the encoded image data.

Frequently asked question

Is this an upload link?

No. The data URL embeds image bytes directly and can be sensitive if shared.

Limits and privacy

The image must decode successfully and is limited to 2 MB for Base64 output; the resulting text is larger than the file.

Tool input is processed in a separate browser environment without advertising or analytics scripts. This page does not upload it to the service.