image to base64
How to convert an image to Base64
Base64 turns binary bytes into ASCII text. Data URLs let you embed small images in HTML/CSS/JSON without another HTTP request.
When it makes sense
Good for tiny icons, HTML email, or prototypes. Bad for large photos—Base64 adds ~33% and hurts asset caching.
Convert in LedaTools
Drop the image, copy data URL or raw Base64. Encoding never leaves your device.
Common uses
CSS backgrounds, README embeds, design tokens, or APIs expecting a data URL. Check receiver size limits.
Optimize first
Compress or resize before encoding. A 2MB PNG gets worse as Base64.
Alternative
For large assets, use CDN/object storage and normal URLs. Reserve Base64 for small payloads.
FAQ
Is my image uploaded?
No. Processing stays local.
What formats?
PNG, JPG, WebP, and GIF (with a size limit).
What is a data URL?
A URI that embeds the file as Base64 (data:image/...).