Image to Base64
Convert an image into a Base64 data URL you can paste directly into HTML, CSS or a JSON payload. It embeds the picture in the code itself, removing a separate file request. It is free, needs no account, and adds no watermark to your result.
Image to Base64
Add your files. Recommended settings are ready, so you can process in one click.
PDF, Word, images, audio, video, archives and more
Up to 100 files · 250 MB · No account- 1Add files
- 2Choose an action
- 3Download or keep going
What people use it for.
What happens to your file.
The image bytes are Base64-encoded and returned either as a complete data URL, ready to paste into a src or CSS url(), or, with the raw option ticked, as the bare string. The type in the data URL comes from the bytes themselves, so a JPEG saved with a .png name is still labelled correctly.
Where it stops: Base64 makes data roughly a third larger, and inlined images cannot be cached separately by the browser. Use it for small assets only.
Everything you need, without a paywall.
Common questions.
When should I not inline an image?
For anything large. Base64 adds about 33% overhead and the image cannot be cached independently, so a big inlined image makes every page load slower.
What size is reasonable to inline?
Small icons and logos, typically a few kilobytes. Beyond that, a normal image file with caching wins.
How do I use the output?
Paste the data URL straight into an img src attribute or a CSS url() value; it works exactly like a file path.
You might also need.
Decode Base64 image data or a complete data URL into a downloadable image file.
Generate common favicon sizes and an ICO file from a source image for websites and web apps.
Encode and decode Base64, URLs and HTML entities or generate SHA-256, SHA-512, MD5, UUIDs and random strings.
Convert PNG images to WebP while preserving alpha transparency and controlling output quality.