Turn images into Base64 text you can paste into HTML, CSS or JSON — or decode Base64 back into a downloadable image. See the size cost before you copy anything.
Image to Base64 Converter
Convert images to Base64 data URIs free, or decode Base64 back to images.
Image to Base64 Converter
Turn images into Base64 data URIs for embedding in HTML or CSS — or paste a data URI back and get the image out again. Everything runs in your browser; your files are never uploaded.
1. Image to Base64
Your images
2. Base64 data URI back to image
Honest costs: Base64 turns every 3 bytes into 4 characters, so a data URI is about 33% larger than the original file, plus the prefix. It is not compression and not encryption — anyone with the string can decode it. Inline small icons and logos; keep large photos as normal files so the browser can cache them. Files over 10 MB are refused here rather than freezing the tab, and files over 1 MB show a size warning. Decoded previews are shown from memory only and are never uploaded.
How to use
- Upload one or more images to encode, or paste a Base64 data URI to decode.
- For encoding, copy the data URI or download it as a .txt file.
- For decoding, check the preview and size, then download the image.
- Remember Base64 adds about a third to the file size — it suits small images, not photos.