🧬Image to Base64 Converter - Encode & Decode Images Online
Convert between images and Base64 in both directions. Upload an image to get a Data URI, raw Base64, a CSS background rule or an HTML <img> tag, each ready to copy — perfect for embedding small icons in web pages, email templates or JSON payloads. Going the other way, paste a Base64 string or Data URI and the tool detects the image type, previews it and lets you download it. Everything runs locally and nothing is uploaded.
Free · No sign-up · Runs in your browserLast updated:
Loading tool...
How to use Image to Base64
- 1Choose Image → Base64 and upload, or Base64 → Image and paste
- 2Pick the output format you need
- 3Copy the code, or preview and download the decoded image
FAQ
- Why is the Base64 larger than the file?
- Base64 uses four characters for every three bytes, adding roughly a third to the size. It suits small icons; larger images are better served as files.
- Does the pasted text need a data: prefix?
- No. Common image formats are recognised from the start of the encoded data.
- Are my files or data uploaded?
- No. Everything runs locally in your browser with no network upload, and is discarded when you close the page.
- Do I need to sign up or pay?
- No. The site is completely free, needs no account and has no usage limits.