All tools
Image to Base64 /image-base64
Image / image-base64

Image to Base64

Encode images as Base64 strings; decode and preview back. Runs locally in your browser, never leaves the page.

encode · image → base64 ·
decode · base64 → image
How it works

Reads the image with the FileReader API and encodes it as a Base64 data URL. Decoding parses the string back into an <img>, optionally re-rendered through a canvas for clipboard copy.

Privacy

Everything runs locally in your browser. Your image never leaves the page.

Tips
  • Paste a full data: URL or just the raw Base64 body.
  • Supports JPG, PNG, GIF, WebP, BMP, and SVG.
  • Useful for inline assets in CSS, JSON, or email.