Base64 Encoder & Decoder Online
Encode text to Base64 or decode Base64 back to plain text online. Also convert files to Base64 data URIs.
Encode File to Base64
Upload an image or file to get its Base64 data URI.
How to encode or decode Base64
- Paste text or Base64 string into the input area.
- Click Encode to convert text to Base64, or Decode to convert back.
- Copy the result with one click.
- For files, use the file upload section to get a Base64 data URI.
What is Base64?
- Binary-to-text encoding — converts binary data into printable ASCII characters.
- Used in APIs — safely transmit binary data in JSON payloads.
- Email attachments — MIME encoding uses Base64 for file attachments.
- Data URIs — embed images directly in HTML/CSS without extra HTTP requests.
- 100% client-side — your data never leaves your browser.
Need more tools?
Browse our collection of free developer tools.
Browse All Tools →