Base64 Encoder / Decoder
Encode text or files to Base64 and decode Base64 strings back to plaintext or binary. Pick standard RFC 4648 or URL-safe encoding, paste or drop your input, and copy or download results in one click. Zero-Knowledge — every operation runs in your browser's volatile memory. Nothing is transmitted.
🔒 Zero-Knowledge — all encoding runs in your browser. Nothing is transmitted.
Why Use This Base64 Tool?
Base64 is the universal encoding layer for binary data in text-only channels: HTTP headers, JSON payloads, JWT tokens, email attachments (MIME), and data URIs in HTML/CSS. This tool implements RFC 4648 standard Base64 and its URL-safe variant (replacing + with - and / with _) for use in query strings, JWT headers, and S3 keys without percent-encoding. Everything runs via the browser's native TextEncoder API and custom byte-to-alphabet mapping — no server round-trip, no request log, no third-party library with a supply-chain risk. File encoding reads bytes directly via FileReader, so even binary payloads are processed entirely in local memory.
Dual-variant support: Standard Base64 (RFC 4648 §4) uses A–Z, a–z, 0–9, +, / with = padding. URL-safe Base64 (§5) replaces + → - and / → _ — safe in URLs, filenames, JWT headers, and S3 object keys without percent-encoding.
File encode/decode: Drop any file to get its Base64 representation, or paste a Base64 string to download the decoded binary — images, PDFs, or arbitrary blobs. The FileReader API processes bytes locally; nothing is uploaded.
Instant copy and download: One-click copy sends output to the clipboard. Download exports decoded binary as a file with a sensible default name. Both actions work entirely in the browser.
Live character and size counters: Input and output panels show character count and byte size so you can reason about payload inflation (Base64 expands by ~33%) before embedding in headers or tokens.
Zero-transmission guarantee: No API route, no analytics on your payloads, no server logs. TextEncoder and FileReader run in the browser's volatile memory — close the tab and every trace is gone.
How to Use the Base64 Tool
- 1
Choose Encode or Decode tab. For text, paste your input. For files, switch to the File tab and drag-and-drop or browse.
- 2
Select variant: Standard (for MIME, JSON) or URL-safe (for JWT, query strings, filenames).
- 3
Click Encode or Decode. Output appears instantly in the right panel with character count.
- 4
Copy output to clipboard, or click Download to save the decoded binary as a file.
Frequently Asked Questions
Also try our Hash Generator to compute SHA-256, SHA-512 and HMAC digests client-side.
Related Tools
Password Generator
Generate strong, random passwords instantly.
Hash Generator
Hash text with MD5, SHA-256, SHA-512 and more.
Password Strength Checker
Test how strong your password really is.
PIN Generator
Generate secure numeric PIN codes.
Random Number Generator
Generate random numbers in any range.
UUID Generator
Generate v4 UUIDs for IDs and tokens.