Image to Base64

Image to Base64 / Data URL, restorable

All processing happens locally in your browser; images are never uploaded to a server

Upload image

Click or drag to upload an image

Supports PNG / JPG / WebP / GIF / SVG, up to 10MB

Restore image from Base64

Paste a Base64 string or Data URL to restore and preview the image.

Tips

  • • Base64 encoding increases size by about 33%, not suitable for large images
  • • Data URLs can be used directly in <img src="..."> or CSS background
  • • Loading images from URLs may be limited by CORS — uploading directly is recommended
  • • All conversion happens locally in your browser; images are never uploaded
  • • Both pure Base64 and Data URL formats are supported when restoring

Tip

Convert images to Base64 Data URIs and back, with one-click copy. Useful for embedding images in HTML/CSS and debugging API payloads — entirely in your browser.

Features

Bidirectional

Encode image files to Base64 or decode a Data URI back to a downloadable image.

One-Click Copy

Copy the full data URI string to your clipboard instantly.

Format Info

Shows MIME type and encoded size to help optimize embedding.

Developer-Friendly

No network calls — safe for internal or confidential assets.

Steps

1

Upload or Paste

Choose an image file to encode, or paste an existing Data URI to decode.

2

Get Result

Review the Base64 string, size and MIME type.

3

Copy / Download

Copy the code or save the decoded image.

FAQ