Free Image to Base64 Converter and Decoder
Choose a picture to get its Base64 code, or paste a code to see and save the picture.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Step 1: Open Image to Base64 and add your input
Type your numbers or text, add your file, or pick the options you need. Nothing is uploaded: everything stays in your browser.
- 2Step 2: What Image to Base64 does
Turn a picture into Base64 text, or turn Base64 back into a picture.
- 3Step 3: Read the result and compare
The result appears at once. Change one value to see how the answer moves, then keep the figure that fits your case.
- 4Step 4: Copy or save it
Copy the result or download it. For an important decision, confirm it with the official source or an adviser.
About this tool
Developers and email designers often need a picture as text. Choose a picture to get a data address you can paste into HTML, CSS or an email signature, or paste a Base64 code to see the picture and download it. The work is done inside your browser.
When to use it
Embed a small picture directly in HTML, CSS or JSON by turning it into Base64 text, or turn Base64 back into a picture.
Tips
Base64 increases the size by about a third, so use it only for small icons.
Privacy
Everything runs in your browser, so your data is not uploaded or stored.
Tips for best results
Take a moment to read the options before you start, and try the tool with a small sample first. Everything runs in your browser on your own device, so nothing you type or add is uploaded, and closing the tab clears it. If something does not look right, reload the page and try again, or use the report link on this page to tell us what went wrong so we can fix it. If a result still looks wrong, change one value at a time to see which box matters most. Bookmark this page if you will need the tool again.
Quick facts
- Category: Images
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in many languages.
- Content last reviewed:
Frequently asked questions
What is Base64 used for?
It lets a small picture sit directly inside HTML, CSS or JSON as text, so no separate file has to load.
Is there a size limit?
Base64 makes files about one third bigger, so it is best for small icons and logos.
Why is the text so long?
Base64 encodes binary data as text, which is about 33 percent larger.
Can I decode it back?
Yes, paste the Base64 to get the picture.
