Image to Base64
Convert images into Base64 data strings.
Loading workspace...
About the Image to Base64
Use it to embed a small image directly in HTML, CSS or JSON as a data URI, avoiding an extra network request.
Runs entirely in your browser. Your files and text are never uploaded.
How to use it
- Drop the image.
- Copy the Base64 data URI or the ready-made CSS/HTML snippet.
- Paste it into your code.
Frequently asked questions
When should I inline images as Base64?
Only for tiny images such as icons under about 2–4 KB. Larger images are better as separate cacheable files.
Why is the Base64 string bigger than the file?
Base64 adds about 33% overhead.
Is the image uploaded?
No. Encoding happens in your browser.
Related Tools
Specialized workflows in Utilities & Developer