← Back to Tools

Base64 Encoder & Decoder

Encode text to Base64 or decode Base64 back to plain text. Essential for Kubernetes Secrets.

Output

How to Use This Base64 Tool

  1. Paste your text: Copy plain text (left box) or Base64 string (right box).
  2. Click Encode or Decode: Use "Encode β†’" to convert text to Base64, or "← Decode" to convert Base64 back to text.
  3. 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 secret to 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.

πŸ”§ Related Developer Tools