Drop an image here or click to browse
PNG, JPG, WebP, GIF or SVG. Files stay on your device.
Output length
0 chars
Base64 is about 33% larger than the original file.
Output format
Output
Frequently asked questions
What is a data URI?
A data URI embeds a file directly in text, like data:image/png;base64,iVBOR... You can paste it into an <img> src or a CSS url() and the image works with no separate file or HTTP request.
When should I use Base64 instead of a file?
For small images like icons and tiny graphics, where avoiding an extra request is worth it. Large images become about 33% bigger as Base64 and are better kept as files.
Is my image uploaded to a server?
No. The conversion uses the browser's FileReader API entirely on your device. Your image never leaves this tab.
Preview
Related free tools
Free Base64 Encoder Decoder
Free Base64 encoder and decoder. Encode text to Base64 or decode Base64 back to text, righ
Free CSS Minifier Online
Free CSS minifier. Remove comments and whitespace from CSS to shrink file size and speed u
Free SHA-256 Hash Generator
Free SHA-256 hash generator. Hash text with SHA-256, SHA-384 or SHA-512 securely in your b