Skip to content

Base64 Encode / Decode

Encode text and files to Base64 or decode it back

Text to encode

Type, paste or drop a file

Base64

Result appears here

How to use

  1. Choose Encode or Decode.
  2. Type or paste text, drop a file, or click Encode file for binary files.
  3. Copy the result, download it, or click Swap to decode what you just encoded.

Base64 in practice

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.

Frequently asked questions

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.