Image to Base64 Converter

Convert images to Base64 data URIs free, or decode Base64 back to images.

100% Free No signup Private — runs in your browser

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

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


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

  1. Upload one or more images to encode, or paste a Base64 data URI to decode.
  2. For encoding, copy the data URI or download it as a .txt file.
  3. For decoding, check the preview and size, then download the image.
  4. Remember Base64 adds about a third to the file size — it suits small images, not photos.

Frequently asked questions

Why does Base64 make my image bigger?
Base64 represents every 3 bytes of image data as 4 text characters, so the text is about 33% larger than the original file. The tool shows both sizes so you can decide before using it.
Is it safe to paste a data URI into my page?
A data URI of your own image is safe and self-contained, but it bloats the page and cannot be cached separately. For large images, a normal image file is almost always the better choice.

Related guides

More Image tools

View all →