Image Base64 Encoder & Decoder

Convert images to Base64 data URIs for embedding in CSS, HTML, or JSON — or paste a Base64 string to get the image back. Runs entirely in your browser. Your files never leave your device.

Image to Base64 / Base64 to Image

100% private. Images never leave your device.

Drop files or a folder here

Upload one image to generate Base64 output.

When to use Base64 encoding

Embedding images in CSS or HTML

Small icons and UI sprites can be inlined as data:image/png;base64,... URIs to eliminate an extra HTTP request. This is especially useful for email templates where external images are often blocked by default.

Storing images in JSON or databases

When a binary file needs to travel inside a text-only format — like a JSON API payload or a text column in a database — Base64 encoding is the standard solution. Paste the resulting string directly into your data.

Decoding Base64 back to an image

Received a Base64 string from an API or a colleague? Paste it here to preview and download the image without writing any code. Supports PNG, JPG, WebP, GIF, and SVG data URIs.

Privacy advantage

Other Base64 tools upload your images to a server for encoding. This tool reads the file locally with the FileReader API — your image bytes never leave your browser.

Related tools