Base64 encoder and decoder: text, images and files
Embedding an icon in CSS, sending an image in an API call, or wondering what a Base64 string holds? Convert text and files both ways and preview decoded images.
Runs locally; files are not uploaded
Features
- Text ⇄ Base64 as UTF-8
- Images and files to Base64 or data URIs
- Base64 back to files with previews
- URL-safe alphabet
- PNG, JPG, GIF, WebP, PDF and ZIP recognised
Good for
- Inlining icons and fonts
- Passing images in API calls
- Reading Base64 in emails and logs
How it works
- 1
Choose text or file, encode or decode.
- 2
Paste or pick.
- 3
Copy the result or download the file.
FAQ
- Is my data uploaded?
- Everything happens in your browser. Files are never uploaded anywhere and are gone when you close the page.
- Is Base64 encryption?
- No, anyone can decode it.
- Garbled Chinese?
- Text is decoded as UTF-8; Base64 made from GBK text won't read correctly.