Convert to JPG
Change PNG, WebP, GIF and more into JPG.
Encode an image as a Base64 string or data URL.
or drag and drop images here
JPG, PNG, WebP, GIF, AVIF, BMP or SVG images · Multiple files supported
Your files stay on your device
This tool runs in your browser. Your files are never uploaded to a server.
No. The image is encoded in your browser and the text is shown only to you.
Base64 writes every 3 bytes as 4 characters, so the text is about one third larger than the file.
For small things such as icons, a tiny logo in an email or a placeholder. For larger images, a normal file is faster because browsers can cache it.
Yes. SVG files are encoded as image/svg+xml data URLs.
Paste the data URL into the address bar of a browser to view it, or use a Base64 decoder on the Developer tools page.