ToolNest

Image to Base64

Convert images to Base64 and backRuns locally · nothing uploaded

Choose an imageClick or drop an image to encode it
Also works as:base64 to imageimage to data urlbase64 image decoder

How to use

  1. 1Choose Image to Base64 or Base64 to image.
  2. 2Upload an image or paste a Base64 string.
  3. 3Copy the format you need or download the image.

FAQ

When should I inline images as Base64?

For small icons of a few KB. Base64 is about 33% larger than the file, so big images slow pages down.

Do I need the data: prefix?

No. The format is detected from the file header either way.