Base64 Encoder / Decoder
Encode text to Base64 or decode Base64 back to plain text
Encode — Plain Text → Base64
Decode — Base64 → Plain Text
How to Use
- Paste your plain text into the input box.
- Click Encode to convert it to Base64.
- To reverse, paste a Base64 string and click Decode.
- Click Copy to copy the result to clipboard.
What is Base64?
Base64 is a binary-to-text encoding scheme that represents binary data using only 64 printable ASCII characters (A–Z, a–z, 0–9, +, /). It is not encryption — it is simply a way to encode binary data so it can be safely transmitted over text-based channels.
Common Use Cases
- API authentication: HTTP Basic Auth sends credentials as Base64-encoded "username:password".
- Email attachments: MIME encodes binary attachments in Base64 for text-based email protocols.
- Embedding images in HTML/CSS: Small images can be inlined as
data:image/png;base64,...URIs. - JWT tokens: JSON Web Tokens use Base64URL encoding for header and payload sections.
- Environment variables: Binary secrets/certificates are Base64-encoded before storing in .env files.
Base64 vs Encryption
Base64 is not secure. Anyone can decode a Base64 string instantly. Never use it to "hide" passwords or sensitive data. Use it only for encoding, not for security.