Base64 Encode & Decode
Encode text or files to Base64 and decode Base64 strings back to text.
How to Use Base64 Encode & Decode
- 1
Select "Encode" or "Decode" mode using the toggle.
- 2
For encoding: paste your text or upload a file.
- 3
For decoding: paste your Base64 string.
- 4
The result appears instantly below.
- 5
Click "Copy" to copy the output, or "Download" for file results.
About Base64 Encode & Decode
Base64 is a binary-to-text encoding scheme that represents binary data using only printable ASCII characters. Our Base64 tool handles both encoding (text/file → Base64) and decoding (Base64 → text) in a clean, simple interface.
Base64 encoding is used widely in web development: embedding images directly in HTML/CSS, encoding binary data for JSON APIs, email attachments (MIME), HTTP Basic Authentication headers, and storing binary data in text-based formats like XML or JSON. Developers regularly need to encode and decode Base64 strings when debugging APIs or building integrations.
The tool also handles file encoding — upload any file (image, PDF, document) and get its Base64 representation, ready to embed in HTML img tags, CSS background URLs, or JSON payloads. The encoded string is shown with the appropriate data URI prefix for direct use.