Image to Base64
Encode an image to a Base64 data URI (or decode one back) without uploading it.
Everything happens in your browser — the file is never uploaded. Max 10 MB.
Frequently asked questions
Why encode an image as Base64?
A Base64 data URI lets you embed an image directly in HTML or CSS, avoiding a separate network request. It is handy for tiny icons, email templates and inlining assets in a single file.
Is my image uploaded anywhere?
No. The file is read locally with the browser's FileReader — it never leaves your device, which makes this safe even for private images.
Does Base64 make images bigger?
Yes, by roughly 33%. Base64 trades size for the convenience of inlining, so it is best for small images; large images are usually better served as normal files.
What output formats do I get?
You get the raw data URI plus ready-to-paste HTML img and CSS background snippets, and you can download the decoded image when going the other way.
Can I decode a Base64 string back to an image?
Yes. Paste a Base64 string or a full data: URI and the tool previews the image and lets you download it.