📝 Base64 Encoder Decoder

Online Base64 encoding and decoding, supports text conversion, runs in browser

🔒 All conversions are completed locally in your browser, not uploaded to server, protecting your data privacy

Output Result

📚 User Guide

What is Base64?

Base64 is an encoding method that uses 64 characters to represent any binary data. It's commonly used to transmit long identification information in HTTP environments, or to transfer small amounts of binary data in URLs, Cookies, and web pages.

Use Cases

  • Embedding small images in HTML or CSS
  • Transmitting simple encoded information in URLs
  • Email attachment encoding
  • HTTP Basic authentication
  • Data storage and transmission

How to Use

  1. Select "Encode" or "Decode" mode
  2. Paste or type the text to process in the input box
  3. Click the "Convert" button
  4. View the result and copy or download it

Important Notes

  • Base64 encoded data is approximately 33% larger than the original data
  • Base64 is not an encryption algorithm, just an encoding method, cannot be used to protect sensitive information
  • When decoding, ensure the input is a valid Base64 string

FAQ

Q: Is Base64 encoding secure?

A: Base64 is only an encoding method, not encryption. Anyone can decode it. For encryption, use AES, RSA or other encryption tools.

Q: Why does the data become larger after encoding?

A: Base64 uses 6 bits to represent 8 bits of data, resulting in approximately 33% increase in data size. This is normal.