Raw Base64 and data URIs
Raw Base64 contains only encoded bytes. A data URI also includes the media type and encoding prefix needed for direct use in an image source or CSS value.
Encode an image as raw Base64 or a complete data URI, or decode Base64 content back into a previewable image. Copy the generated value or download the decoded result without uploading the source.
Raw Base64 contains only encoded bytes. A data URI also includes the media type and encoding prefix needed for direct use in an image source or CSS value.
Base64 text is larger than the original binary data, so it is best reserved for small assets or systems that specifically require text encoding.
Image uploads can be up to 10 MB.
Include it for direct use in HTML or CSS. Raw Base64 is useful when an API or data field expects only the encoded bytes.
No. Encoding and decoding happen locally in your browser.
Drop image here or click to browse
Support for JPEG, PNG, GIF, WebP, SVG • Max 10MB