Base64 Encoder
Encode text or files to Base64, with URL-safe and MIME options.
Nothing encoded yet
Type text or drop a file. Files are read in your browser with the FileReader API and never uploaded.
Runs entirely in your browser. Your data isn't uploaded — this page makes no network request with anything you type, which you can verify in your browser's network tab. How this works.
What is the Base64 Encoder?
Base64 turns arbitrary bytes into a 64-character ASCII alphabet so they can travel through channels that only tolerate text — HTTP headers, JSON fields, data URLs, email bodies, environment variables and Kubernetes Secrets.
It is an encoding, not encryption: anyone can decode it. This tool encodes text or a file locally in your browser and supports the variants that actually come up in practice: the standard alphabet, the URL-safe alphabet, optional padding and MIME line wrapping.
How to use it
- Type or paste your text, or drop a file onto the input area.
- Pick the standard or URL-safe alphabet.
- Choose whether to keep = padding and whether to wrap at 76 characters for MIME.
- Press Encode (or Ctrl/Cmd + Enter), then copy the result.
Example
Text encoded with the standard alphabet.
engineering utility platform
ZW5naW5lZXJpbmcgdXRpbGl0eSBwbGF0Zm9ybQ==
Features
- Text and file input, including images and binaries
- Standard (+/) and URL-safe (-_) alphabets
- Optional padding and MIME 76-character line wrapping
- Correct UTF-8 handling for non-ASCII text
- Data URL output for images, ready to paste into CSS or HTML