Convert text to Base64 or decode Base64 back to plain text, instantly, entirely in your browser.
Type or paste text to see the converted output
This free Base64 encoder and decoder converts plain text into Base64 format, or decodes Base64 strings back into readable text — instantly, live, and entirely inside your browser. Base64 is a standard way to represent binary or text data using only safe, printable ASCII characters, widely used in web development, email, APIs, and data URIs.
Choose Encode to convert your text into its Base64 representation, or Decode to convert a Base64 string back into plain text. Internally, the tool first converts your input into UTF-8 bytes, then maps those bytes through the standard 64-character Base64 alphabet (A-Z, a-z, 0-9, +, /), padding the result with = characters as needed so the output length is always a multiple of four.
Developers debugging API payloads or JWT tokens, anyone decoding a Base64-encoded email attachment or data URI, and students learning how binary-to-text encoding works. It's a quick, no-signup alternative to running btoa()/atob() in a browser console.
The bit-level process behind the conversion
Base64 uses 26 uppercase letters, 26 lowercase letters, 10 digits, and 2 symbols (+ and /) — 64 total printable characters, hence the name.
Because 3 bytes become 4 characters, encoded output is always about a third larger than the original binary data.
Base64 is fully reversible with no key — it provides no confidentiality, only a safe text representation of binary data.
From choosing a mode to copying your result
Select Encode to convert plain text to Base64, or Decode to convert Base64 back to plain text.
Type or paste the text or Base64 string into the input box.
The converted output appears instantly below, ready to copy.
Encoding a short greeting
Where this encoding shows up day to day
Embedding small images or icons directly inside CSS or HTML without a separate file request.
Decoding the header and payload segments of a JSON Web Token to inspect its claims.
MIME email encodes binary attachments as Base64 so they survive text-only mail transport.
Encoding a username:password pair for the Authorization header.
Kubernetes secrets and many config formats store binary or sensitive values as Base64 text.
What this tool does well, and where Base64 itself has boundaries
Get accurate results every time
Summary: This tool encodes text to Base64 or decodes Base64 back to text, instantly and entirely client-side — useful for debugging APIs, JWTs, and data URIs. Pair it with the URL Encode / Decode tool for other text-encoding needs.
Common questions about Base64 encoding
Technical references to complement this tool
Other internet and developer tools