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
Our free Base64 encode decode tool handles both encoding (text or file → Base64) and decoding (Base64 → text) in a clean, simple interface. Base64 is the standard encoding for embedding images in HTML/CSS, HTTP auth headers, MIME email attachments, and JSON/XML binary payloads.
Key Features
- Text & File Encoding: Encode any text string or upload a file (image, PDF, document) to Base64.
- Instant Decoding: Paste any Base64 string and decode it back to text or download as a file.
- Data URI Ready: Output includes the correct data URI prefix for direct use in HTML and CSS.
- URL-Safe Option: Replaces + and / with - and _ for URL-safe Base64 output.
Who Is This For?
Developers debugging API authentication headers, web developers embedding images in HTML without separate files, backend engineers encoding binary data for JSON payloads, and anyone working with Base64-encoded data in any context.
Privacy & Security
Runs 100% in your browser — no signup, no uploads, no data stored.