Add the content
Paste or edit a Data URI or raw Base64 directly, or drop an image to replace the current content with its generated Data URI.
Try different keywords
No results found
Edit or paste Base64 and preview it live. Uploading an image replaces the editor content, with all processing kept in your browser.
or click for JPG, PNG, GIF, WebP, SVG, BMP, or ICO
10 MB maximum · file stays in this browserChoose an image to encode and preview immediately
Paste or edit a Data URI or raw Base64 directly, or drop an image to replace the current content with its generated Data URI.
The right side always parses the editor content while cleaning whitespace, repairing padding, and detecting common image types.
Check the preview, dimensions, and size, then copy the current code or download the rendered image.
Base64 maps 6-bit groups of image binary into printable characters, allowing the bytes to travel inside JSON, HTML, or CSS text. It is encoding, not compression, so a round trip does not lower quality.
The tradeoff is roughly one-third more size. Inline icons can save requests, while large embedded images inflate the document, lose independent caching, and may slow the first render.
A Data URI combines a MIME type and Base64 data into a directly usable address. Full Data URI works for image attributes, raw Base64 fits APIs with a separate MIME field, and HTML or CSS output avoids manual assembly.
As a rule of thumb, inline icons or decorative assets only a few KB wide. Reused, independently cached, or larger images usually belong at a normal URL. Email-client support also varies, so test the target clients.
Yes. The tool detects common PNG, JPEG, GIF, WebP, and SVG file signatures, then uses your fallback MIME type when a signature is unknown.
Four text characters represent three original bytes, so the body grows by about one third, plus a small prefix for a complete Data URI.
No. This tool reads the original file bytes and only changes representation; it does not resample or compress the image.
No. File reading, validation, preview, and download happen in the current browser page with no upload or browser-storage write.
It may be truncated, include unsupported characters, declare a MIME type that disagrees with the bytes, or contain data the browser cannot decode as an image.