Base64 Encode/Decode
Encode text and files to Base64, or decode Base64 strings back to readable text with live preview.
Free & unlimited
Direction
Variant
Output format
Input text
Base64 output
SGVsbG8sIHdvcmxkISBXZWxjb21lIHRvIFRvb2xjaGFtcC4=
All processing happens in your browser. No data is sent to any server.
About this tool
- 1
Enter text or upload file
Paste text to encode, or upload a file.
- 2
Choose direction
Select encode (text → Base64) or decode (Base64 → text).
- 3
Process
The conversion happens instantly.
- 4
Copy result
Copy the Base64 string or decoded content.
- Base64 encoding increases data size by ~33%.
- Use URL-safe Base64 for data in URLs (replaces +/ with -_).
- Files can be embedded in HTML/CSS using data URIs: data:mime;base64,...
- Base64 is encoding, not encryption - it offers no security.
- Encode & decode
- File support
- URL-safe option
- Instant conversion
- Copy to clipboard
- Encode images for inline CSS or HTML embedding.
- Decode Base64 strings from APIs or emails.
- Encode data for URL parameters.
- Debug Base64-encoded payloads in logs.