Add to Chrome

Image to Base64 & Base64 to Image

Convert images to Base64 — and decode Base64 back to images. Drag & drop a file or paste a string, then copy or download in one click.

Two-Way Convert SVG & Data URI Offline Ready
Add to Chrome

Convert images to Base64 — and back

Need to embed a base64 image directly in your HTML, CSS, or JSON? Image to Base64 is a fast base64 encoder that converts any picture — including SVG — into a compact data URI you can paste anywhere, with no server uploads and no external hosting.

Need to go the other way? Paste a data URI or raw base64 string and base64 to image decodes it back into a real picture you can preview and download. The output format is detected automatically, with a manual override when you need it.

Everything runs entirely in your browser, so your files never leave your device. Switch between Data URI, Markdown, HTML, CSS, and JSON presets depending on where you need the result — whether you're embedding icons, generating placeholders, or recovering an image from a string.

Encode + Decode SVG Supported PNG, JPEG, WebP, GIF

Frequently Asked Questions

What is Image to Base64 & Base64 to Image?
It's a Chrome extension that converts both ways: encode any image to a Base64 / data URI string, or decode a Base64 string back into an image you can preview and download.
Does it work offline?
Yes. The entire image to base64 conversion happens locally in your browser. Your files are never uploaded anywhere.
What formats can I convert?
Encode PNG, JPEG, GIF, WebP, HEIC and SVG to Base64; decode Base64 back to PNG, JPEG, GIF, WebP, SVG, BMP or ICO. The output is a clean, single-line string.
Can I choose the output format?
Yes. Switch between Data URI, raw Base64, HTML img tag, CSS url(), Markdown, and JSON string—whatever your project needs.
Is there a file size limit?
Files up to 10 MB are supported. For very large images, the base64 encoder will warn you about potential performance impact.