Base64 Encoder & Decoder
Runs entirely in your browser
Encode plain text to Base64, or decode Base64 back to text, directly in your browser. Paste your input, choose Encode or Decode, and copy the result.
What is Base64 Encoder & Decoder?
Base64 converts plain text into a text-safe representation made only of letters, digits, +, / and = padding — and back again. It's used to embed binary-safe data in places that only accept plain text, such as JSON fields, HTML, email, and HTTP headers.
How to use Base64 Encoder & Decoder
- Paste your text or Base64 into the Input box.
- Click Encode to convert text to Base64, or Decode to convert Base64 back to text.
- Copy the result from the Output box.
Features
- Encode text to Base64 and decode Base64 back to text, in one tool.
- Correctly handles Unicode text, including accented characters and emoji, in both directions.
- Shows input and output character counts, and a clear error message for invalid Base64.
- 100% client-side — your text never leaves your browser.
Example
This text:
Hello, Toolbeel!
encodes to:
SGVsbG8sIFRvb2xiZWVsIQ==
and decoding that Base64 back returns the original text. Unicode round-trips correctly too — Café ☕ (an accented letter plus a symbol) encodes to Q2Fmw6kg4piV, because the text is converted to UTF-8 bytes before Base64 encoding.
Tips
- Base64 output is always about a third longer than the input, since every 3 bytes become 4 Base64 characters, with
=padding added when the input length isn't a multiple of 3. - Base64 only makes text safe to store or transmit as plain text — it provides no confidentiality, so don't use it to hide passwords or other sensitive data.
- Decoding reads the resulting bytes as UTF-8, so pasting Base64 that was generated from binary data — an image, a font, a zip file — produces an "Invalid Base64" error even though the Base64 text itself is well-formed. This tool decodes text, not arbitrary files.
- "URL-safe" Base64, which swaps
+and/for-and_, isn't accepted directly by Decode — swap those characters back first.
Is Base64 Encoder & Decoder safe?
Yes. Encoding and decoding both run entirely with local JavaScript in your browser — converting text to and from UTF-8 bytes and Base64 — so nothing you type or paste is ever uploaded anywhere. Just remember Base64 is an encoding, not encryption, so don't rely on it to hide sensitive data.
Frequently Asked Questions
Does this support Unicode text and emoji?
Yes, in both directions. Text is encoded as UTF-8 before Base64 encoding, and decoded bytes are interpreted back as UTF-8, so accented letters, symbols and emoji round-trip correctly.
Is Base64 encryption?
No. Base64 is a reversible encoding, not encryption — anyone can decode it back to the original text. Never use it to protect secrets.
What happens if the Base64 I paste is invalid?
You'll see a clear error message instead of a page crash or garbled output — fix the input and click Decode again.
Can I decode a JWT with this?
You can decode individual Base64 segments, but for a full breakdown of a JWT's header, payload and signature, use the dedicated JWT Decoder.
What is Base64 commonly used for?
Embedding binary data (like images) in text formats such as JSON, HTML or email, and encoding credentials for HTTP Basic Authentication headers.