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
Processing runs inside your browser without accounts or server uploads. Modular TypeScript domain logic tested locally.
Report a problem with this toolOffline 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.
Related tools
Browse all toolsDeveloper tools
Base64 encoder & decoder
Encode and decode UTF-8 text or binary files to standard and URL-safe Base64 locally without server uploads.
Image tools
Image compressor
Compress JPEG, PNG, and WebP images directly in your browser without uploading files.
Image tools
SVG optimizer & rasterizer
Sanitize and minify SVG markup cleanly while inspecting dimensions and exporting @1x, @2x, or @4x PNG and WebP images.