Base64 image

Base64 image converter

Convert PNG, JPG, WebP, GIF, or SVG images to Base64 Data URLs, or paste Base64 content to restore an image preview. Everything runs locally in your current browser.

Frontend onlyDrag and dropNo storage

Image to Base64

Click to choose an image or drop it onto the upload area. The page reads the image and generates both Base64 and a full Data URL.

Ready for image

Image preview

-
File name
-
Type
-
Size
-
Dimensions
-

Conversion result

Base64 to image preview

Paste a full Data URL or raw Base64 image content. The page detects common image formats automatically.

Ready for image

Restored preview

-

Detected result

Source
-
Type
-
Size
-
Dimensions
-

Images stay local

This tool uses FileReader, Blob, and Image in the browser to read, encode, and preview images. It does not upload images, save content, or call a backend.

Built for these checks

Inline assets

Convert small icons or placeholders to Data URLs for temporary HTML, CSS, or email template checks.

API debugging

Inspect whether Base64 images from APIs, config, or logs can be restored into a valid preview.

Local safety

Image content stays in the current page memory and is gone after clearing or refreshing the page.

FAQ

Are images uploaded to a server?

No. File reading, Base64 conversion, and image preview all run locally in the browser.

Why is the size limit 5MB?

Base64 expands text size, so the limit helps avoid slow pages and mobile memory pressure.

Can raw Base64 preview without a type?

Common PNG, JPG, WebP, GIF, and SVG content is detected from the data. If detection fails, use a full Data URL.