Base64 Image Converter

Convert images to Base64 and Base64 to images. Supports PNG, JPEG, GIF, WebP, SVG. Free, client-side, no data uploaded.

Drop an image here or click to select

PNG, JPEG, GIF, WebP, SVG

Image to Base64

Upload or drag-and-drop an image to convert it to a Base64-encoded string. The output includes the full data URI (with MIME type prefix) that you can paste directly into HTML img tags, CSS background-image properties, or JSON payloads.

Base64 to Image

Paste a Base64 string (with or without the data URI prefix) to decode it back into a viewable image. You can then download the resulting image file. This is useful for debugging API responses, inspecting embedded assets, or recovering images from encoded data.

Supported formats

  • PNG - lossless compression, transparency support
  • JPEG - lossy compression, smaller file size for photos
  • GIF - animation support, limited to 256 colors
  • WebP - modern format with better compression than JPEG/PNG
  • SVG - vector format, scales without quality loss

Frequently Asked Questions

Is my data sent to a server? No. All encoding and decoding happens entirely in your browser. Your images never leave your device.

Why is the Base64 string larger than the original file? Base64 encoding represents binary data using 64 ASCII characters, which requires about 33% more space than the original binary. This is the inherent overhead of the encoding scheme.