Image to Base64
Convert an image to a Base64 data URI for HTML, CSS or JSON.
0 characters
Output
or press ⌘/Ctrl + EnterYour result appears here.
- Runs in your browser
- Nothing is uploaded
- Free, no sign-up
How to use it
- Choose an image file.
- Keep Data URI on so the result starts with data:image/...;base64, and can be pasted straight into HTML or CSS.
- Run it and copy the result.
Why Tool Dock
- FastEverything runs on your own device, so there is no queue and no waiting for uploads.
- PrivateYour files and text never leave the browser. Close the tab and they are gone.
- Batch friendlyDrop several files at once and download each result, or all of them together.
Questions
When should I embed images as Base64?
For tiny icons and placeholders where saving an HTTP request matters. Larger images are better served as files: Base64 is about a third bigger and cannot be cached separately.
Is there a size limit?
Only your browser's memory. Very large images produce strings that editors and style sheets handle badly, so keep embedded images small.
Related tools
- Base64 DecodeTurn Base64 back into text, images or files, right in your browser.
- JWT DecoderRead a JSON Web Token's header, claims and expiry, verify its signature, or build one, without sending it anywhere.
- URL DecodeTurn %20-style percent encoding back into readable text.
- URL EncodePercent-encode text so it is safe to put in a URL.
- BIMI CheckerCheck whether your brand logo can show next to your emails: BIMI record, logo, certificate and DMARC.
- Email Blacklist CheckCheck whether an IP address or a domain’s mail servers are on public spam blocklists.