Browser only - 100% private

Image to Base64 Converter

Convert an image to a base64 data URL, or decode a base64 string back to an image file. Useful for inline CSS, JSON payloads, and email signatures.

Instant preview Privacy-first No signup

Image ↔ Base64

Encode an image as a base64 data URL, or paste base64 to download an image.

Upload an image to encode as base64.

JPG, PNG, WEBP, GIF, AVIF, SVG, and iPhone HEIC accepted. HEIC is decoded locally to JPG before encoding.

Image to Base64 online with ImgShifter

Image to Base64 is two browser-only utilities in one: encode any image as a base64 data URL (with or without the data:image/...;base64, prefix), or paste an existing base64 string to download the decoded image. The encode reads your file with FileReader.readAsDataURL; the decode parses the data URL with the browser's Fetch API and saves the resulting Blob to your downloads folder. No server, no signup, no watermark.

Use base64 inline for small images (under ~3 KB) where avoiding a separate HTTP request is worth the ~33% size penalty: HTML img src, CSS background-image, JSON API payloads, email signatures, self-contained HTML exports. Avoid it for large images and anything used in multiple places - linked URLs cache once across the whole site, while inlined base64 duplicates the bytes everywhere. The data: prefix is required for direct browser rendering; toggle it off for storage backends that handle MIME types separately.

Both directions run entirely on your device. The encode never reaches a server; the decode is a pure Fetch on a data URL, which the browser handles synchronously in memory. Confirm in the Network tab or by going offline after the page loads.

Other ImgShifter tools people use alongside Image to Base64.

Frequently asked questions

Short answers for image workflows, privacy, and supported formats.