Image to Base64
Encode images as data URIs for HTML, CSS or email — or decode Base64 back to an image.
Encode and decode Base64 for text and files. UTF-8 safe, URL-safe variant, data URI output and image preview. Runs entirely in your browser.
Runs locally — nothing is uploadedAny file type · images get a live preview · or browse
Yes. Text is UTF-8 encoded before Base64, so any character round-trips correctly.
Encode credentials for HTTP headers, decode email attachments or turn files into data URIs. For images specifically, the Image to Base64 tool adds CSS snippets and size warnings. Decode JSON Web Tokens with the JWT Decoder and percent-encode URLs with the URL Encoder / Decoder.
Also useful: HTML Entities Encoder · JSON Formatter
People find Base64 Encoder / Decoder by searching for: