RunToolz iconRunToolz
Welcome to RunToolz!

Image to Base64

Convert images to Base64 strings and vice versa.

Drop image here or click to upload

PNG, JPG, GIF, WebP, SVG, BMP

Maximum file size: 20.00 MB

How to use

  1. Select Image → Base64 to convert an image to text
  2. Upload an image by clicking the upload area
  3. Copy the result as Data URL, Base64 only, HTML, or CSS
  4. Use Base64 → Image to convert text back to image

💡 All processing happens in your browser - images are never uploaded to any server

What is Image Base64 Encoding?

Base64 encoding converts binary image data into ASCII text, allowing images to be embedded directly in HTML, CSS, JavaScript, or JSON without separate file requests.

Data URL Format
data:image/png;base64,iVBORw0KGgo...

Includes MIME type and encoding prefix for direct browser use.

Size Overhead

Base64 increases data size by ~33%. A 10KB image becomes ~13KB as Base64. Best for small images under 10KB.

Common Use Cases

📧 Email Templates

Embed images that display without external links

🎨 CSS Backgrounds

Inline small icons and patterns

📄 Single-File HTML

Create self-contained HTML documents

🔗 API Payloads

Send images in JSON without file uploads

Reduce Requests

Fewer HTTP requests for small images

🗄️ Database Storage

Store images as text in text columns

Frequently Asked Questions