Skip to main content
Image toolsLocal in browser — nothing is uploaded

Image <-> Base64 Data URI converter

Encode images into Base64 Data URIs, CSS background snippets, and HTML tags—or decode Base64 strings back into downloadable image files locally.

Decoded Preview

Decoded Base64 preview
image/png · 139 B decoded

Processing runs inside your browser without accounts or server uploads. Modular TypeScript domain logic tested locally.

Report a problem with this tool

Offline Data URI conversion

Magic-byte detection: Automatically detects PNG, JPEG, WebP, or GIF signatures even when raw Base64 is pasted without a data: prefix.

Frequently asked questions

When should I embed small icons as Base64?
Tiny critical UI icons avoid extra HTTP round trips, though external assets cache more efficiently for larger photos.