Base64 and Image Converter

Image → Base64 Encode

拖拽图片到这里,或 点击选择

Base64 → Image Decode

Tool Description

Base64 Encoding is a scheme that converts binary data (such as images) into a text string composed of 64 ASCII characters. This enables embedding or transmitting binary data in text-only environments like HTML, CSS, and JSON.

Core Features:

  • Image → Base64 Encode: Convert your uploaded image file (e.g., JPG, PNG, GIF, SVG) into a Base64 string. The result is also known as a **Data URI**.
  • Base64 → Image Decode: Convert a valid Base64 string or Data URI back into an image, with preview and download capabilities.
  • Data URI Prefix: You can choose whether to include the MIME type prefix (e.g., `image/png;base64,`) in the generated Base64 string. This prefix is required when using the string directly in web pages.