Base64 Image Converter
Convert images and Base64 strings to each other. Enter Base64 text to display images, or upload images to generate Base64 text.
Base64 Text
0
Image Preview
Click or drag image to this area to uploadSupports PNG, JPEG, GIF and other formats
About This ToolThis is a free online Base64 image converter. You can paste Base64-encoded image text to preview the image, or upload an image to get its Base64 string. All processing is done in the browser; no data is sent to any server.What is Base64 Image? How does it work?Base64 is an encoding scheme that represents binary data (e.g. image bytes) using 64 printable ASCII characters (A–Z, a–z, 0–9, +, /). Image files are binary; encoding them as Base64 turns them into a text string that can be embedded in HTML (e.g. data:image/png;base64,...), CSS, JSON, or XML. The encoded size is about 4/3 of the original binary size.Common Use Cases
- Inline images in web pages (Data URI): embed small images in HTML/CSS to reduce HTTP requests.
- APIs and emails: send image data inside JSON or XML without separate file uploads.
- Icons and thumbnails: inline small images in front-end code or configs.
- Offline or cross-origin: store or transfer images as text when file URLs are not available.
Usage InstructionsMethod 1: Enter Base64 text on the left (can include data URI prefix like data:image/png;base64,), and the image will automatically display in the preview area on the right.
Method 2: Click or drag to upload an image file on the right, and the system will automatically convert the image to Base64 text and display it in the left text box.
Tip: Supports common image formats like PNG, JPEG, GIF, WebP. Base64 text can be copied directly.
Method 2: Click or drag to upload an image file on the right, and the system will automatically convert the image to Base64 text and display it in the left text box.
Tip: Supports common image formats like PNG, JPEG, GIF, WebP. Base64 text can be copied directly.