Base64 Encoder & Decoder
Encode text to Base64 or decode Base64 back to plain text. Essential for Kubernetes Secrets.
How to Use This Base64 Tool
- Paste your text: Copy plain text (left box) or Base64 string (right box).
- Click Encode or Decode: Use "Encode β" to convert text to Base64, or "β Decode" to convert Base64 back to text.
- Copy the result: Click "Copy" to grab the output for use in your Kubernetes YAML or API.
Common Use Cases for Base64 Encoding
βΈοΈ Kubernetes Secrets
Kubernetes requires Secret values to be Base64-encoded. Encode your passwords, API keys, and certificates before adding them to Secret manifests.
π API Tokens
Some APIs require Base64-encoded authentication headers (Basic Auth). Encode username:password combinations.
π Data URIs
Embed images or files in HTML/CSS using data URIs. Encode file content to Base64.
π TLS Certificates
Store certificates in Kubernetes as Secrets. Encode .crt and .key files before deployment.
What is Base64 Encoding?
Base64 is an encoding scheme that converts binary data into ASCII text. It uses 64 characters (A-Z, a-z, 0-9, +, /) to represent data. This makes it safe to transmit over text-only channels like YAML, JSON, or HTTP headers.
β οΈ Important Notes
- β’ Not encryption: Base64 is encoding, NOT encryption. Anyone can decode it. Don't rely on it for security.
- β’ Size increase: Base64 increases data size by ~33%. 100 bytes becomes ~133 bytes.
-
β’ Kubernetes requirement: Kubernetes Secrets MUST use Base64. Use
kubectl create secretto auto-encode.
Tool Features
βοΈ Two-Way Conversion
Encode plain text to Base64 OR decode Base64 back to plain text. Works with UTF-8 text.
β‘ Instant Results
No page refresh needed. Click encode/decode and see results immediately.
π Privacy First
Runs 100% in your browser. Your sensitive data (passwords, keys) never leaves your device.
π One-Click Copy
Copy button for quick paste into Kubernetes YAML, curl commands, or CI/CD configs.