🔐 Base64 Encoder / Decoder
Encode or decode Base64 text instantly.
📋 How to Use
1. Paste your text or Base64 string into the box.
2. Choose Encode (text to Base64) or Decode (Base64 back to text).
3. Copy the result — invalid Base64 input is flagged instead of producing garbage output.
✅ Features
Two-way conversion in a single interface.
UTF-8 safe, so accented characters and emoji round-trip correctly.
No data is sent anywhere — encoding happens directly in your browser.
What is Base64?
Base64 is a way of writing any data — text, images or files — using only 64 safe characters (A–Z, a–z, 0–9, + and /). It is used whenever binary data has to travel through systems that only expect plain text, such as email attachments, JSON APIs, data URLs in HTML/CSS and basic authentication headers.
What this tool does
- Encode: turn normal text into a Base64 string.
- Decode: turn a Base64 string back into readable text to see what it contains.
Important things to know
Base64 is not encryption. Anyone can decode it instantly, so never use it to hide passwords or private data. Encoded output is also about 33% larger than the original, which is why large images are usually better served as normal files instead of Base64 data URLs.
If decoding fails, check for missing "=" padding at the end, extra spaces or line breaks, or a URL-safe variant that uses "-" and "_" instead of "+" and "/".