Base64 Image Encode/Decode
Select File
Drag image here or click to select file
Preview
No preview available
Base64 String
No result yet
Base64 Image Converter & Preview — Encode, Decode, and Inspect
Base64 Image is a client-side tool for converting images to Base64 strings and back. Encode any image file (JPG, PNG, WebP, GIF, SVG, etc.) into a data URI for embedding in HTML, CSS, or JSON, or paste a Base64 string to preview and download the original image.
Features & Usage Tips
Encode an image into a Base64 data URI, or paste a Base64 string to preview and download the decoded image — everything happens locally in your browser.
Base64 Image Basics
Base64 encoding converts binary image data into a text representation using 64 printable characters. It is commonly used to embed images directly into HTML (data URIs such as
data:image/png;base64,...), CSS, or JSON payloads, avoiding extra HTTP requests.- Encode: Select a file and the tool outputs the Base64 string with file name and size. One click copies it, or download saves it as a text file.
- Decode: Paste a Base64 data URI or a bare Base64 string and the tool renders a live preview; download restores the original image file.
- Data URI Support: Both
data:image/...;base64,...prefixed strings and plain Base64 are accepted in decode mode.
Use Cases
🖼️ Email Embedding: Some email clients block external images; embed a small logo or banner as a Base64 data URI so it always displays.
🌐 Single-file Pages: Inline small icons and graphics as Base64 in HTML to reduce requests and keep the page portable.
🔌 API Payloads: Send images as Base64 strings inside JSON when building upload endpoints or mock services.
🗃️ Data Migration: Store small images as Base64 text in databases or config files for easy portability.
Privacy & Security
This tool runs entirely in your browser. Images are converted locally on your device and are never uploaded to any server — safe for sensitive or copyrighted materials.
