Image to Base64 Converter

Convert images to Base64 and back — paste, URL or file input, copy code for HTML/CSS/JSON.

Input method

Usage guide

Convert an image to Base64 or restore an image from Base64 — everything runs in the browser, nothing uploads.

  • Upload or paste in the file tab, or load via URL/Base64 tabs.
  • The output code drops straight into HTML, CSS, or JSON.
  • Some image URLs are CORS-blocked — upload the file instead.

How to use

Upload, paste, or load from URL — the Base64 code appears instantly, ready for HTML, CSS, or JSON. Restore images from Base64 too.

Frequently asked

Is my image uploaded?
No — everything converts in your browser.
CORS errors on URL input?
Some remote images block cross-origin loading — upload the file instead.
Where can I use the output?
Directly in HTML img tags, CSS backgrounds, or JSON payloads.
image to base64base64 imageimage encoderbase64 decode imagedata URI

Related tools