Quick answer
How to do it
- Use Base64 when a protocol requires a text representation of bytes.
- Use authenticated encryption when authorized recipients need secrecy and tamper protection.
- Use a password hashing function—not Base64—for stored passwords.
Encoding, encryption, and hashing
Encoding changes representation for compatibility. Encryption uses a secret key to protect readable content and should also authenticate it. Cryptographic hashing produces a one-way digest for integrity or specialized password-storage workflows. These goals are not interchangeable.
Common legitimate uses
Base64 appears in email attachments, data URLs, JSON APIs, and certificate containers. It increases size by roughly one third and offers no compression. Decode unknown input cautiously because it may represent binary files or active content rather than harmless text.
Common mistakes to avoid
- Storing an API key after only Base64 encoding it.
- Calling a Base64 string anonymized data.
- Embedding very large files in JSON without considering overhead.
Try the related tool
Use QRFoundry directly in your browser. Tool inputs and uploaded files are processed on your device.
Open Base64 Encoder & Decoder