Tools / Image ↔ Base64

Free · Browser-side · Private

Free Image ↔ Base64 Converter

Encode images to Base64 / Data URI snippets, or decode Base64 back into a downloadable image. Ideal for CSS, HTML, and lightweight embeds — 100% in your browser.

  • Encode · Decode
  • Data URI · HTML · CSS
  • No Uploads

Open the interactive tool

Run Image ↔ Base64 entirely in your browser. Files stay on your device — nothing is uploaded to process this tool.

Launch Image ↔ Base64

Save results to a Collection

Free accounts get 3 Collections. Organize icons from the library and your workflow, then unlock bulk export with Pro.

Encode and decode with one tool

Move between binary images and text payloads without leaving your device.

Image → Base64

Upload an image and copy raw Base64, Data URI, HTML img, or CSS background snippets.

Base64 → Image

Paste Base64 or a data URI, preview the decoded image, and download it.

Ready-to-paste Snippets

Generate HTML and CSS fragments for quick embedding in pages and components.

Clipboard Paste

Pull Base64 from the clipboard and decode instantly when permissions allow.

Format Detection

Decoded downloads keep a sensible extension based on the image MIME type.

Private Encoding

All encode/decode work stays local. Nothing is uploaded to process conversion.

How it works

Convert either direction in three steps

  1. Choose a direction

    Switch between Image → Base64 and Base64 → Image depending on your task.

  2. Provide the source

    Upload an image to encode, or paste Base64 / Data URI text to decode.

  3. Copy or download

    Copy encoded snippets, or download the reconstructed image file.

Frequently Asked Questions

Common questions about Image and Base64 conversion

When should I use Base64 instead of an image file?

Base64 / Data URIs are useful for tiny icons you want to inline in CSS or HTML. Larger photos are usually better as separate files.

What can I paste for decoding?

Paste either a full data:image/...;base64,... URI or a raw Base64 payload. Invalid strings will show an error.

Can I copy an HTML img tag?

Yes. In encode mode, choose the HTML <img> output style and copy the generated markup.

Is conversion private?

Yes. Encoding and decoding run entirely in your browser.