Base64 Encode / Decode
Free online Base64 encoder and decoder.
Drop an image to get its Base64 data URI, plus ready-to-paste HTML <img> and CSS background-image snippets. Everything is generated locally.
Start with your image
A data URI, an <img> tag, and a CSS rule — ready to paste.
Base64 is ~37% larger than the file. Only embed small images; link larger ones normally. Files over 8 MB are refused — Image Compressor can slim them down first.
These buttons share the page link, not your input.
Your current input will be stored in the link after the # symbol, not uploaded to Handy Browser Tools. Anyone with this link can read that text. If you send or post it, the service you choose also receives the link. Do not include passwords or private information.
For small images (icons, logos under ~10 KB) where saving an HTTP request matters, such as emails, single-file HTML pages, or CSS sprites. For larger images, a normal file is better because Base64 adds ~33% size overhead.
Base64 encodes 3 bytes into 4 characters, so output is about 133% of the original size. The exact sizes are shown after conversion.
No, the file is read and encoded entirely in your browser.
Free online Base64 encoder and decoder.
Free browser image compressor for JPEG, PNG and WebP.
Generate a favicon.ico plus all standard PNG icon sizes (16-512px) in your browser, then download the whole pack as one ZIP.