All Tools
Base64 Converter
Encode images to Base64 or decode Base64 back to images.
Drag & drop files here, or click to select
Nothing leaves your device · No signup · No daily limit
Up to 5 MB per file
How it works
- To encode: drop an image and get its Base64 data URI for inline embedding.
- To decode: paste Base64 or a data URI to get the image back.
- Preview the result to confirm it's what you expect.
- Copy the string or download the decoded image.
What people use it for
- Embedding a small icon directly in CSS or HTML as a data URI.
- Decoding a Base64 image string back into a file.
- Inlining an image to avoid an extra network request.
Good to know
- Base64 makes a file about 33% larger, so inline embedding suits small images (icons, tiny logos) — large images are better left as separate files.
- A data URI is not compressed; do not inline big assets or the page weight balloons.
Frequently asked questions
When should I inline an image as Base64?
For small, frequently used images like icons, where saving a network request outweighs the ~33% size increase. For large images, a normal file reference is better.
Can I decode a data URI back to a file?
Yes — paste the Base64 or full data URI and the original image is reconstructed and can be previewed and downloaded.
Is my image uploaded?
No. Encoding and decoding both happen in your browser.