How to Base64-encode
- Type or paste your text. The encoding updates as you type.
- Tick URL-safe for tokens and URLs (uses
-and_, drops=padding). - For images, PDFs or any binary, use Encode a file… to get a
data:URI.
Common uses
- HTTP Basic authentication:
Authorization: Basic+ Base64 ofuser:password. - Embedding small images or fonts in CSS and HTML (see image to Base64).
- Putting binary data in JSON, YAML (Kubernetes Secrets store values Base64-encoded) or environment variables.
Base64 is not encryption: anyone can decode it. Output is about 33% larger than the input.