Image to Base64 Converter
Turn an image into Base64, or Base64 back into an image.
Drop another image anywhere on this page, or
Thanks.Tell us why
Runs on your device. No upload wait.
Questions
When should I put an image in Base64?
For small images, like icons and logos under a few kilobytes, that you want inside an HTML email, a CSS file or a JSON payload with no separate request. For anything larger a normal image file is better: Base64 is about a third bigger and can’t be cached on its own.
What is a data URL?
A way to put a file’s contents straight into a link: data:image/png;base64, followed by the Base64 text. Browsers display it like an image address.
How is the image type found when decoding?
From the data URL if it says, and otherwise from the decoded bytes themselves, which begin with a signature for each format. So plain Base64 without a data URL prefix works too.
Is it free? Do I need an account?
It is free to use and there is nothing to sign up for. There are no watermarks and no daily limits.
Missing something, or not working as it should? Tell us