Skip to main content

Image ↔ Base64

Turn an image into a Base64 data URL, or paste Base64 to preview. Stays on your device.

Processed locally · 0 bytes uploaded

Image → Base64

Base64 → Preview

How to use Image ↔ Base64

  1. Drop in an image to get its Base64 data URI instantly.
  2. Or paste a Base64 string in the other direction to preview it as an image.
  3. Copy the encoded string, or download the decoded file back to disk.

Common use cases

  • Embed a small icon directly into CSS or HTML without an extra request.
  • Move an image through a JSON API field that only carries text.
  • Decode and inspect a data URI received from a third-party service.
  • Verify that a Base64 payload really is a valid, renderable image.

Good to know

  • Base64 inflates file size by roughly a third; avoid it for large photos.
  • Very large images are limited by available browser memory.
  • Decoding needs a complete data string; truncated input will fail.

Specs

Supported formats
Input & Output: PNG, JPG, WebP, SVG, GIF ↔ data:image/*;base64 URI & HTML/CSS snippets
File & batch limits
Recommended for icons & assets under ~2–5 MB (Base64 adds ~33% string overhead in browser memory)
AI model download
None (0 MB — native FileReader & Image API)
Browsers & devices
Chrome, Edge, Safari & Firefox on desktop and mobile
Offline support
Yes — works 100% offline once loaded

FAQ

Is my image uploaded?

No. FileReader runs locally in your browser.

Which formats work?

Any image format your browser can decode — PNG, JPEG, WebP, GIF.

Why is the output so long?

Base64 encodes binary as text (~33% larger than raw bytes).

Share this tool: