Base64 Encoder / Decoder
Encode text or files to Base64 and decode Base64 back to text or downloadable files. Full Unicode (UTF-8) support, instant conversion, and no data leaves your browser.
How to Use
- 1
Choose Text mode to encode/decode text, or File mode to convert files to/from Base64
- 2
In Text mode, paste or type your content and click Encode or Decode
- 3
In File mode, select a file to get its Base64 data URL, or paste Base64 to download as a file
- 4
Use the Copy button to copy the result to your clipboard
Key Benefits
100% Private
All encoding and decoding happens in your browser. Your data never leaves your device.
Full Unicode Support
Properly handles multi-byte characters, emojis, and all UTF-8 text using TextEncoder/TextDecoder.
Text & File Support
Encode plain text or any file type (images, PDFs, documents) to Base64 data URLs and back.
No Installation Required
Works directly in your browser. No software to download or accounts to create.
Frequently Asked Questions
Is my data sent to a server?
No. All Base64 encoding and decoding happens entirely in your browser using JavaScript. Your data never leaves your device.
What is Base64 encoding?
Base64 is a binary-to-text encoding scheme that represents binary data as an ASCII string. It is commonly used to embed images in HTML/CSS, transmit data in URLs, and encode email attachments.
Does it support Unicode and emojis?
Yes. The tool uses TextEncoder and TextDecoder to properly handle multi-byte UTF-8 characters, including emojis and non-Latin scripts, before encoding to Base64.
Can I encode files like images or PDFs?
Yes. Switch to File mode, select any file, and the tool will generate a Base64 data URL that you can use in HTML, CSS, or API payloads.
Is there a size limit?
There is no hard limit, but very large files (over 10MB) may be slower to process depending on your browser and device memory.