Görüntüyü buraya sürükleyin veya seçmek için tıklayın
Convert image files to Base64 strings
Adjust balance between compression and quality
Resize images for optimization
Base64 increases file size by about 33%. Use only for small images.
Suitable for small images or icons under 5KB
Drag and drop or click to upload image file to convert. Supports JPEG, PNG, WebP formats.
Set desired quality (0.1-1.0) and maximum size. Smaller images are more suitable for Base64 conversion.
Click convert button to transform image to Base64 string. You can preview results in real-time.
Copy generated Base64 string to clipboard or download for use.
Use Base64 conversion for small images (under 5KB) or icons. Large images increase file size by 33%.
Base64 strings can be directly inserted into HTML or CSS, but large images may slow page loading.
All processing happens in browser, so your privacy is safely protected.
To convert an image to Base64, add the image: a data URI starting with data:image/…;base64, is created immediately. Click Copy and paste it into an HTML img src or a CSS background-image. PNG and WebP images keep their format and transparency.
Paste it as the image source, for example <img src='data:image/png;base64,…'>, or in CSS as background-image: url('data:image/png;base64,…').
Yes. PNG, JPG and WebP images are encoded in their own format, so a transparent PNG stays transparent. Other formats such as GIF or BMP are encoded as PNG.
Base64 represents binary data as text and is about one third larger than the original bytes, so it suits small images such as icons and logos best.
No. The image is read and encoded in your browser and never leaves your device.
Last updated: