Base64 Encode & Decode Online
Convert plain text to Base64 and back. Handles accents, Thai, Burmese, emoji and any other Unicode text.
Free · No sign-up · Private — runs in your browser
Try another free tool
About the base64 encode / decode
Encode text to Base64 or decode Base64 back to text with full UTF-8 and emoji support. Free, instant, and private — nothing is uploaded.
This developer & web tools tool is designed for quick, everyday tasks without requiring an account. The calculation or conversion is performed directly in the browser; check the notes below when a result depends on an external data source.
How to use the Base64 Encode / Decode
- Choose Encode or Decode.
- Paste your text.
- Copy the result.
What Base64 is and why it exists
Base64 is a way of writing any data using only 64 safe characters: the letters A to Z and a to z, the digits 0 to 9, plus the symbols + and /, with = used as padding at the end. Many older systems, including email, were built to carry plain text and could corrupt raw binary data such as images or files. Base64 solves that by converting every group of three bytes into four printable characters, which is why encoded text is about one third larger than the original. You will meet it in email attachments, data URIs that embed small images directly in HTML or CSS, API payloads and authentication headers.
Text, Unicode and URL-safe variants
Base64 works on bytes, not letters, so text has to be turned into bytes first. This tool encodes your text as UTF-8 before converting it, which means accented characters, Thai, Burmese, Chinese and emoji survive a round trip correctly. Problems usually appear when two systems assume different character encodings, producing garbled output after decoding.
A second variant, often called Base64URL, replaces + with - and / with _ and may drop the padding so the result can sit safely inside a web address or a token. JSON Web Tokens use this form. The decoder here accepts both versions, ignores stray whitespace and line breaks, and tells you when the input is not valid Base64.
Encoding is not encryption
Base64 provides no secrecy at all. Anyone who sees the encoded text can decode it instantly, with this tool or with a single line of code. Never use it to hide passwords, API keys or personal data. If you need to protect information, use real encryption, and if you need to store passwords, use a dedicated password hashing method. Treat a Base64 string that looks like gibberish as fully readable by anyone who finds it.
Base64 at a glance
| Property | Standard Base64 | URL-safe Base64 |
|---|---|---|
| Alphabet | A–Z a–z 0–9 + / | A–Z a–z 0–9 - _ |
| Padding | = at the end | Often omitted |
| Size change | About +33% | About +33% |
| Typical use | Email, data URIs, APIs | URLs, JWT tokens, filenames |
Key features and practical uses
- Full UTF-8 support
- Clear error on invalid input
- Instant, local processing
Use the tool when you need a fast result without installing desktop software or creating an account. For important documents, calculations or conversions, review the result before relying on it and keep your original file or source information.
Privacy and limitations
Your main tool input is processed in your browser and is not uploaded as a document to UtilSuite. Browser memory, device performance and the input format can affect how quickly a large task completes.
Keep a copy of important originals and do not treat calculator results as professional medical, financial or legal advice. See the Privacy Policy for site-level data practices.
Frequently asked questions
What is Base64?
Base64 is a way to represent binary or text data using only letters, digits, + and /, so it can travel safely through systems that expect plain text.
Is Base64 encryption?
No. It is an encoding, not encryption — anyone can decode it. Never use it to hide passwords.
Why does decoding fail?
The input probably has missing characters, extra spaces or is not Base64. Check for a truncated copy.
Why does my decoded text look broken?
The text was probably encoded with a different character set, or the Base64 string is incomplete. Check that you copied the whole string, including any = signs at the end.
Can I encode a file or image with this tool?
This tool works on text. To embed an image, convert it to Base64 in a file-based tool, or use a data URI in your own code.