How to use
- Choose Encode or Decode.
- Type or paste text, drop a file, or click Encode file for binary files.
- Copy the result, download it, or click Swap to decode what you just encoded.
Encode text and files to Base64 or decode it back
Base64 shows up everywhere in development: Basic authentication headers, JWTs, data URLs for inline images, email attachments, Kubernetes secrets and binary blobs inside JSON. This tool handles Unicode text correctly (UTF-8), supports the URL-safe alphabet and can turn any file into a data: URL ready for HTML or CSS.
Base64 represents binary data using 64 printable ASCII characters, so it can travel through systems that only handle text: JSON APIs, email, HTML data URLs, environment variables. It makes data about 33% larger.