Skip to content
All tools

Image to Base64 / Data URI and Base64 to Image Converter

Convert images to Base64, Data URI, <img>, CSS and Markdown snippets; paste Base64 to preview and download the image with the right extension. Free, in-browser.

·4 runs ·Developer API ↓

Drag and drop an image here or click Choose image (≤10 MB — JPG, PNG, WebP, GIF, SVG, AVIF, ICO, BMP).

No image yet. Images are processed only in your browser.

Images and Base64 strings are converted in your browser — nothing is uploaded or stored.

Developer API

Developer API

No API for this tool yet

This tool is web-only for now. Sign up to be notified when the API opens, or contact us if you need an early integration.

How to use

A free image-to-Base64 converter: choose an image to get the Base64 string, Data URI and ready-to-paste snippets for <img>, CSS background-image or Markdown — handy for embedding small icons in HTML, emails or JSON. The other way round: paste a Base64 string or Data URI to preview the image, see its real format (detected from the first bytes, not the declared type) and download it with the right extension. Everything runs in your browser; images are never uploaded.

  1. Image → Base64: click Choose image or drag and drop (≤10 MB). Click Try an example to use a sample image.
  2. Click Copy on the line you need: raw Base64, Data URI, <img> tag, CSS or Markdown; the tool shows original size vs string size (≈ +33%).
  3. Base64 → Image: switch to the Base64 → Image tab, paste the string (with or without the data: prefix; base64url and line breaks are fine) and click Decode (Ctrl+Enter).
  4. Preview the image, its format and dimensions; click Download to save it with the correct extension.

Frequently asked questions

Base64 encodes the binary image as letters and digits. As a Data URI (data:image/png;base64,…) you can embed the image directly in HTML, CSS, emails or JSON without a separate file.

No. Base64 is about 33% larger than the file, is not cached separately by browsers and makes HTML/CSS heavier. Embed only small icons and logos (under roughly 10–20 KB).

The tool checks the first decoded bytes to recognise JPG, PNG, WebP, GIF, SVG, AVIF, ICO and BMP. If nothing matches, the string may be another file type, truncated, or corrupted while copying.

No. Encoding and decoding happen entirely in your browser; the SieuTool server only records the number of runs (without data) and stores nothing.
  • Only convert images you have the right to use.
All Images tools →
Sends only the tool name, the last error code and your browser type — never what you typed.