Back to Toolkit

File Base64 Encoder / Decoder

Convert image files to Base64 strings or decode Base64 back to images entirely in your browser. Max 500 KB.

100% Client-Side — Nothing ever leaves your device

1 Input
2 Process
3 Result
Completely Secure & Private

This tool runs entirely in your browser using JavaScript. No network requests are made, no data is transmitted to any server. Your files and output exist only in your browser's memory until you close the page. Only safe file types (images) are accepted, with a 500 KB size limit.

Drop a file here or click to browse
Safe types only: PNG, JPEG, GIF, WebP, BMP, SVG, ICO, TIFF — Max 500 KB
How It Works
1

Input

Encode: Drop or select an image file.
Decode: Paste a Base64 string.

2

Process

The tool verifies the file is a valid image and converts it using the FileReader API

3

Result

Encode: Copy the Base64 string or data URI.
Decode: Preview and download the image.

Allowed Safe File Types

PNG — Lossless compression, transparency support

JPEG — Lossy compression, photographs

GIF — Animated images, limited color palette

WebP — Modern format, superior compression

BMP — Uncompressed bitmap

SVG — Scalable vector graphics

ICO / TIFF — Icons and high-quality images

Privacy & Security
  • 100% client-side — runs entirely in your browser via JavaScript
  • Zero network traffic — no API calls, no server requests, no data transmission
  • Nothing stored — images are never logged, recorded, or saved
  • Works offline — once the page loads, it functions without any internet connection
Common Use Cases

Data URIs — embed images directly in HTML or CSS without external files.

API payloads — encode images for JSON-based API requests.

Email templates — inline images in HTML emails for consistent rendering.

Debugging — decode and preview Base64 image strings from logs or configs.