🔐 Base64 Encoder/Decoder

Encode text to Base64 or decode a Base64 string back to text.

How to use

  1. Enter text or a Base64 string.
  2. Click "Encode" or "Decode".
  3. Use the copy button to grab the result.

🎯 Use Cases

Example

Input
admin:s3cr3t!
Output
YWRtaW46czNjcjN0IQ==

Clicking "Encode" converts a user:password credential to Base64. The result can be used directly as an HTTP Basic auth header value: Authorization: Basic YWRtaW46czNjcjN0IQ==.

FAQ

What's the difference between standard Base64 and URL-safe Base64?
URL-safe Base64 replaces +/ with -_ and omits padding (=) so it can be safely used in URLs or filenames. This tool uses standard Base64.
Are multi-byte characters encoded correctly?
Yes. Encoding and decoding are done on UTF-8 bytes, so non-ASCII text and emoji are handled correctly without corruption.
Is the content I enter sent to a server?
No. It's processed with the browser's built-in btoa/atob and TextEncoder/TextDecoder.

🔐 Learn more: What Is Base64 Encoding and When to Use It

Why it's used in email attachments & data URIs

More Security Tools

🔑
Password Generator
Generate strong random passwords
#️⃣
Hash Generator
Generate MD5, SHA-1, SHA-256 hashes
📱
QR Code Generator
Turn text/URLs into a QR code
🗝️
htpasswd Generator
Generate APR1-MD5 hashed passwords
🔍
SSL Certificate Viewer
Check issuer, validity & SANs
📜
CSR Viewer
Check CSR subject & public key info
♻️
SSL Certificate Converter
Convert PEM ↔ DER (HEX)
🤝
Cert/Key Pair Checker
Verify a certificate matches its private key
🩺
SSL Checker
Check HTTPS connectivity & trust
🪄
Self-Signed Certificate Generator
Generate a self-signed SSL cert & key
🔑
HTTP Auth Header Generator
Build Basic/Bearer Authorization headers
🪪
JWT Decoder
Inspect JWT header/payload, verify HS256
🎫
Random Token Generator
Generate Hex/Base64/UUID tokens
🔒
Jasypt Encrypt/Decrypt
Encrypt/decrypt Spring Boot ENC(...) values