Convert PNG, JPG, JPEG, WebP, GIF, SVG, BMP, ICO and PDF to Base64 — or decode Base64 back to image/PDF. Everything runs locally in your browser.
📤
Drop image or PDF here
or click to browse · or press Ctrl+V to paste
Supported: PNG, JPG, JPEG, WebP, GIF, SVG, BMP, ICO, PDF
File Name—
File Size—
MIME Type—
Base64 Output0 chars
Original Size
—
Base64 Size
—
Overhead
—
Paste Base64 String0 chars
Detected File Info
File Type—
File Size—
Base64 Size
—
Decoded Size
—
Format
—
📖How to Use the Image Base64 Converter
Choose the direction — select Image → Base64 or Base64 → Image using the toggle at the top.
Encode (Image → Base64): Drag & drop, browse, or press Ctrl+V to paste your image/PDF. The tool will auto-detect the file type and show a preview.
Convert: Click the "Convert to Base64" button. The Base64 string will appear in the output box with a live character count.
Decode (Base64 → Image): Paste a Base64 string in the textarea. The tool accepts both raw Base64 and full Data URI format (data:image/png;base64,...).
Options:
Data URI Prefix: Enable this if you want a string starting with data:image/...;base64, for direct HTML/CSS embedding.
Line Breaks: Enable this to wrap the output every 76 characters (MIME standard).
Copy or Download: Use the Copy Base64 button to copy the encoded string, or Download File to save the decoded image/PDF.
💬Frequently Asked Questions
Which image formats are supported?
PNG, JPG, JPEG, WebP, GIF, SVG, BMP, ICO, and PDF are supported.
Is this tool free to use?
Yes, the Image Base64 Converter on Ultimate Tools Baazar is 100% free with no signup required. You can convert unlimited files.
Are my files safe?
Absolutely. All conversions happen locally in your browser. Your files never leave your device, so your data stays completely private.
Can I embed the Base64 directly in HTML or CSS?
Yes — enable Data URI mode and copy the string starting with data:image/...;base64,. You can paste it into an <img src="..."> or CSS background-image: url(...).
Why does Base64 take more space than the original file?
Base64 encoding increases the size by about 33% because it uses only 64 ASCII characters to represent binary data. This is normal and expected.
Can I decode a Base64 string that has line breaks?
Yes. The tool automatically strips all whitespace before decoding, so you can paste Base64 strings with or without line breaks.