jump totool workspace
ToolHub

Image Base64

Convert between local images and Base64 data.

Runs the entire process locally
views
—
favorites
—

original picture

—Images are processed locally

Base64 results

The processing results will be displayed here
1 lines · UTF-8Read only results

Full results can be copied or downloaded, image content will not be uploaded.

Tool description and FAQ

Tool Guide

01Image encoded as Base64

Automatically encode files after selecting or dragging them into the original image area, optionally including the Data URL prefix. The full text can be copied or downloaded on the right; large results only preview the first 200,000 characters and will not be truncated for copying and downloading.

02Base64 decoded to image

Switch the orientation, paste or open the Base64 text, and click Decode. Supports image Data URLs, including writing methods with charset parameters, and also supports common pure Base64 image header recognition. Preview and download are available upon success; SVG uses the correct .svg extension.

03Import, replace and local processing

Click or drag the file into the original image area to replace the image with the same area. The preview area retains a fixed height and is fully displayed proportionally without cropping the original image. Images are only processed in the current browser, not uploaded, not automatically saved, and the original file will not be overwritten.

FAQ

Q1Why is the encoded text larger than the original image?

Base64 uses text to represent binary, usually increasing the size by about one-third; the prefix also adds a small number of characters. When you need to reduce the size of the image, please use an image compression tool first.

Q2Why doesn't plain Base64 recognize the format?

Common file headers are automatically recognized, but not a full format detector. Please use the Data URL with real MIME and confirm that the actual content is an image supported by the browser.

Q3Can I search all large results in preview?

Large results show only the first 200,000 characters. The complete text can still be copied or downloaded and viewed using a local editor; do not mistake the visible preview fragment for the complete encoding.