Skip to main content

Convert a local image to a Data URL, or restore a valid image Data URL to a file.

Up to 12 MiB, retaining original image bytes and animation; download full text for longer results.

Preview and results

After processing is complete, the results will be displayed here.

Instructions for use

  1. Select image to Base64 or Base64 to image mode.
  2. The former selects a local image, the latter pastes the complete image Data URL, and then clicks the corresponding conversion button.
  3. Copy the results or download the file. Only a part of the longer Base64 is previewed, and the complete content is subject to the downloaded text.

Input and output examples

Example input
PNG / JPEG / WebP / GIF
Example output
data:image/png;base64,…

These are demo inputs and sample results, and do not mean that your data has been processed.

Calculation basis and reference materials

SVG, external image URLs, or mismatched formats are not accepted. Base64 is typically about one-third larger than raw binary.

Content check: · About this site and content description

Related tools