Image ↔ Base64
Turn an image into a Base64 data URL, or paste Base64 to preview. Stays on your device.
Runs locally in your browser
Image → Base64
Base64 → Preview
How to use Image ↔ Base64
- Drop in an image to get its Base64 data URI instantly.
- Or paste a Base64 string in the other direction to preview it as an image.
- Copy the encoded string, or download the decoded file back to disk.
Common use cases
- Embed a small icon directly into CSS or HTML without an extra request.
- Move an image through a JSON API field that only carries text.
- Decode and inspect a data URI received from a third-party service.
- Verify that a Base64 payload really is a valid, renderable image.
Good to know
- Base64 inflates file size by roughly a third; avoid it for large photos.
- Very large images are limited by available browser memory.
- Decoding needs a complete data string; truncated input will fail.
What you can do next
FAQ
Is my image uploaded?
No. FileReader runs locally in your browser.
Which formats work?
Any image format your browser can decode — PNG, JPEG, WebP, GIF.
Why is the output so long?
Base64 encodes binary as text (~33% larger than raw bytes).