Base64 Image Encoder
Convert any image to a Base64 data URI — for CSS backgrounds, HTML src, and email embeds.
Drop an image or click to browse
PNG, JPG, GIF, SVG, WebP — processed entirely in your browser
When to use Base64 images
Base64-encoding an image embeds it directly in HTML or CSS as a data URI, eliminating an HTTP request — useful for small icons, loading spinners, and email embeds where external URLs may be blocked. The trade-off is a ~33% size increase and longer HTML/CSS payloads, so it is best kept to images under ~5 KB. SVG files often compress well as URL-encoded data URIs instead — try the SVG to Data URI tool for that. For general Base64 text encoding, see the Base64 Encoder / Decoder.
Related Encoders & Decoders tools
Base64 Encoder
Encode or decode Base64 strings.
URL Encoder
Safely encode or decode URL parameters.
Base Converter
Convert numbers between binary, octal, decimal, hex, and base 2-36.
ROT13 Encoder / Decoder
Apply the reversible ROT13 letter-substitution cipher.
HTML Entity Encoder / Decoder
Escape or unescape HTML entities like & and <.
Punycode Converter
Convert internationalized domains to and from Punycode.
Text to Morse Code
Translate text into Morse code dots and dashes.
Morse Code to Text
Decode Morse code dots and dashes back into text.