Image to Base64
Turn images into data URIs or raw Base64, in your browser. Stays on your device. Nothing is uploaded.
Choose files
or drop them here
Ctrl+V to paste from the clipboard
- JPG
- PNG
- WEBP
- SVG
- GIF
up to 50 files, 25.0 MB each
Stays on your device. Nothing is uploaded.
How to image to base64
- Choose your images, or drop them on the page.
- Pick Data URI (drops into CSS/HTML) or raw Base64.
- Press Convert. The bytes are encoded in this tab.
- Download the .txt file with the encoded payload.
What Base64 is for
Base64 turns image bytes into plain text so an image can live inside a text format: a stylesheet, an HTML email, a JSON payload, a single-file HTML document. The Data URI form (`data:image/png;base64,...`) drops straight into `background-image` or `<img src>` with no extra step; the raw form suits APIs that want the bare encoded string.
The encoding runs entirely in memory: your file is read, encoded and saved in this tab. Nothing is uploaded, and the output is a plain text file you can open, search and copy from.
A practical note: Base64 makes data about 33 percent larger than the binary original. Data URIs are perfect for small logos and icons; for big photographs, a separate file is almost always better.
Limits and honest notes
Files up to 25 MB each can be encoded, but multi-megabyte data URIs in a stylesheet will slow a page down. The tool does the work honestly; judgement stays yours.
The original MIME type is detected from the file itself, so a mislabeled extension still produces a correct data URI. Up to 50 files per run.
Frequently asked questions
Data URI or raw Base64?
Data URI for CSS and HTML (it includes the `data:image/...` prefix). Raw Base64 for APIs and storage that expect the bare string.
Why is the encoded text bigger than my file?
Base64 packs 3 bytes into 4 characters, a fixed 33 percent overhead. That is the cost of carrying binary data through text formats.
Can I convert the Base64 back to an image?
Browsers render data URIs directly: paste one into an `<img src>` or a viewer's address bar. A dedicated decoder is on the roadmap.
Is my image uploaded?
No. The encoding runs entirely in your browser.
Private by design
Stays on your device. Nothing is uploaded. The conversion runs in your browser: open the Network tab while you convert and you will see that nothing is sent. No account, no watermark, no daily limit.