Embed a small icon in CSS.
logo.png
iVBORw0KGgo…
A Data URI adds a media type and ;base64 marker before the payload.
Create a Base64 Data URI from an image or preview Base64 image data locally.
Convert images to Base64 data URLs and preview Base64 image content locally.
This image converter turns image bytes into Base64 and a Data URI containing the MIME type. It can also preview Base64 image data.
logo.png
iVBORw0KGgo…
A Data URI adds a media type and ;base64 marker before the payload.
photo.jpg
data:image/png;base64,iVBOR…
Base64 usually increases binary size by about one third and is best for small assets.
data:image/png;base64,iVBOR…
image/png
A Data URI adds a media type and ;base64 marker before the payload.
Processing happens locally in this browser. Your text or file is not uploaded to LumaTool servers.
Embed a small icon in CSS.
Create an HTML image Data URI.
Inspect Base64 image content from an API.
logo.png photo.jpg data:image/png;base64,iVBOR…
A Data URI adds a media type and ;base64 marker before the payload. Base64 usually increases binary size by about one third and is best for small assets.
Processing happens locally in this browser. Your text or file is not uploaded to LumaTool servers.
Choose only the options needed to turn an image or Base64 image value into Base64, a Data URI or the decoded image; the defaults preserve the least surprising behavior.
Review validation messages and compare a representative sample before using the result in production.
Yes. The workspace and result controls adapt to desktop and mobile browsers.
Pasting a text Base64 value that is not an image. Using a large photo inline and increasing page weight.
Processing happens locally in this browser. Your text or file is not uploaded to LumaTool servers.
Encode and decode Base64 text with UTF-8, URL-safe, and Unicode support.
Use Now ICompress, resize, crop, rotate, flip, and convert JPG, PNG, and WebP images locally in your browser.
Use Now UEncode, decode, parse, and build URL query parameters in batches.
Use Now HEscape and unescape HTML entities for safe display and debugging.
Use Now