Base64 Data URI Encoder

Encode images, audio, and SVG graphics into fast Base64 data URIs completely inside your browser.

Drag & drop any image or file to encode to Base64

PNG, JPG, SVG, WebP, ICO, fonts, audio (100% in-browser)

Creator Guide & Technical Specs

How to Generate Base64 Data URIs in 3 Steps

Convert files to Data URIs or decode strings back to files:

1Step 1

Upload File or Paste String

Drop any image, SVG, or media file, or paste an existing Base64 encoded string.

2Step 2

Select Output Format

Choose raw Base64 string, CSS background-image url(...), HTML <img> src, or download decoded binary.

3Step 3

Copy Embed Code

Copy the ready-to-use Data URI string directly into your CSS stylesheet or HTML markup.

Using Data URIs for Performance & Single-File Bundles

Performance

Eliminating HTTP Image Requests

Inlining small icons and graphics directly into HTML/CSS Data URIs removes round-trip HTTP network latency, improving First Contentful Paint (FCP).

RFC 2397

MIME Type Auto-Detection

Automatically tags binary Data URIs with valid MIME headers (image/png, image/svg+xml, image/webp) for standard browser rendering.

Frequently Asked Questions About This Tool

Base64 inlining is best for small icons (under 10KB), SVG graphics, and email templates where external asset hosting is unavailable.