Base64 Encoder / Decoder
Encode plain text to Base64 or decode Base64 back to plain text — instantly in your browser.
Results are for general guidance only — not professional advice. Learn more.
How to use this tool
Select Encode to convert plain text to Base64, or Decode to convert a Base64 string back to plain text. The output updates live as you type.
This tool handles Unicode characters correctly — it uses encodeURIComponent before encoding and decodeURIComponent after decoding to support characters outside the basic ASCII range.
If the Base64 string is invalid during decoding, an error message will be shown.
Thanks for helping us improve this tool. 🙏
Frequently asked questions
What is Base64?
Base64 is an encoding scheme that converts binary data into a string of ASCII characters using 64 printable characters (A–Z, a–z, 0–9, +, /). It is used to safely transmit binary data over systems that only handle text, such as email or JSON APIs.
What is Base64 used for?
Base64 is widely used for embedding images in CSS or HTML as data URIs, encoding binary file attachments in emails (MIME), passing credentials in HTTP Basic Auth headers, storing binary data in JSON or XML, and encoding JWTs (JSON Web Tokens).
Is Base64 encryption?
No. Base64 is an encoding format, not encryption. It provides no security or confidentiality — anyone can decode a Base64 string instantly. Never use Base64 as a substitute for encryption when security is required.