Base64 Encoder and Decoder
Encode text or files as Base64, or decode Base64 back to its underlying bytes.
Text or file
Convert UTF-8 text or a local file up to 10 MiB. To decode, paste Base64 or choose a text file containing Base64.
Result
Copy readable text or download the exact output.
Enter text or choose a file, then choose Encode or Decode.
Runs in your browser. Nothing is uploaded.
Also known as: base64 encode, base64 decode, file to base64
How to use
- Select Encode or Decode and choose an alphabet.
- Enter text or pick a file on your device.
- Run the conversion, then copy the text or download the exact bytes.
Frequently asked questions
Is Base64 encryption?
No. Anyone with the string can decode it without a key.
Can it handle Vietnamese text?
Yes. Text is converted using UTF-8 so Vietnamese accents survive a round trip.
What is Base64URL?
It replaces plus and slash with hyphen and underscore. This tool omits padding when encoding to Base64URL.
Why is there no readable preview?
Decoded bytes may be a binary file rather than UTF-8 text. Download them to keep the exact result.