Image tool

Image to Base64

Convert a local PNG, JPG, or WebP into a Base64 image data URL. Copy the result or download it as text without uploading the image.

Start with your image

One still PNG, JPG, or WebP, up to 30 MB and 24 megapixels. Maximum 8,192 pixels per side. Animated images are rejected.

Image settings

Your file is processed in your browser and is not uploaded to ToolPixels.

Embed an image as text

The output is a complete data URL with the detected image MIME type and Base64 content. Use it where an image URL is accepted, subject to your application or website content security policy.

Base64 adds roughly one third to the file size before the data URL prefix. It is usually suited to small assets, not large photos. Original bytes, including metadata, are preserved. Encoding is not encryption.