Image Base64 converter

Convert images to Base64 or data URLs, decode, preview and download original bytes or snippets.

Local processing
Instructions and limits
  1. Choose, paste or drop a PNG, JPG, GIF or WebP and select Base64, data URL, HTML or CSS output.
  2. To decode, paste Base64 or a data URL, inspect the preview and download the original image. Copy and downloads include the full result.

Original bytes are preserved without re-encoding. Up to 10 MB, 16 MP and 8192 px per edge. Animation: 200 frames and 120 million canvas-pixels × frames. SVG, HTML, remote URLs and MIME mismatches are rejected. Long output is shortened only in preview.

Use cases and example

Encode image assets for web snippets, API fields or email templates, or restore an image returned as Base64 by an API.

Upload a PNG logo and choose a data URL for an img src, or plain Base64 for an API field. Decoding preserves original PNG, GIF and WebP animation bytes.

Base64 is usually larger than the binary file and is not image compression. HTML and CSS snippets are displayed as text only. SVG and remote image loading are unsupported.