Media & Developer Utilities

Base64 Image & File Studio

Convert images, fonts, and assets into Base64 Data URIs for inline HTML/CSS embedding or decode Base64 strings back into files.

Sample Presets:

Choose File, Drag & Drop, or Paste from Clipboard

Supports PNG, JPG, WebP, SVG, GIF, ICO, PDF, WOFF2 fonts, or JSON. Processed 100% in your browser.

lighthouse-badge.svg
image/svg+xmlOriginal: undefined BBase64: 348 chars
Live Visual Preview
lighthouse-badge.svg
Transparency checkerboard active
HTML <img> Element:
<img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjY0IiBoZWlnaHQ9IjY0Ij48cGF0aCBmaWxsPSIjMDBhMTllIiBkPSJNMTIgMkw0IDVsMCA2YzAgNS41NSAzLjg0IDEwLjc0IDggMTIgNS4xNi0xLjI2IDgtNi40NSA4LTEyVjVsLTgtM3oiLz48cGF0aCBmaWxsPSIjZmZmIiBkPSJtMTAgMTUgNS41LTUuNS0xLjQyLTEuNDJMMTAgMTIuMTcgOC45MiAxMS4wOSA3LjUgMTIuNXoiLz48L3N2Zz4=" alt="lighthouse-badge.svg" />
CSS Background Property:
background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjY0IiBoZWlnaHQ9IjY0Ij48cGF0aCBmaWxsPSIjMDBhMTllIiBkPSJNMTIgMkw0IDVsMCA2YzAgNS41NSAzLjg0IDEwLjc0IDggMTIgNS4xNi0xLjI2IDgtNi40NSA4LTEyVjVsLTgtM3oiLz48cGF0aCBmaWxsPSIjZmZmIiBkPSJtMTAgMTUgNS41LTUuNS0xLjQyLTEuNDJMMTAgMTIuMTcgOC45MiAxMS4wOSA3LjUgMTIuNXoiLz48L3N2Zz4=');
Full Base64 Data URI String (374 chars)

About this tool

Comprehensive documentation & audit utility guide
Verified Utility

Base64 is a binary-to-text encoding scheme that converts binary files (images, fonts, PDFs, icons) into ASCII string formats for inline embedding inside HTML, CSS stylesheets, and JSON APIs. This studio performs bidirectional encoding and decoding entirely within your browser using the HTML5 FileReader API with zero server latency.

How it works
1
Drop or Paste File

Drag and drop any image, font, or document, or paste directly from your clipboard (Ctrl+V) to encode it.

2
Select Embed Format

Choose between full Data URI, raw Base64, HTML <img> tags, or CSS background-image snippets with 1-click copy.

3
Decode & Download

Switch to decoder mode to preview raw Base64 strings and reconstruct downloadable binary files with automatic MIME detection.

What it checks
Binary to Base64 encoding via HTML5 FileReader API
HTML <img> and CSS background-image snippet generator
Automatic MIME type & file extension magic-byte detector
Direct clipboard image pasting (Ctrl+V / Cmd+V)
Visual preview with transparency checkerboard background
100% client-side privacy — zero files sent to external servers