Base64 Encoder & Decoder
Encode any text to Base64 or decode Base64 back to readable text. Fully Unicode-aware (UTF-8), so emoji and accented characters work correctly.
About this tool
Encode any text to Base64 or decode Base64 back to readable text. Fully Unicode-aware (UTF-8), so emoji and accented characters work correctly.
Use the Encode button to convert text to Base64. To decode, paste Base64 and switch the mode with the toggle below the button.
Example
Input: Hello 👋
Output: SGVsbG8g8J+Riw==
Privacy
This tool runs entirely in your browser. Your data is processed locally and never uploaded to a server.
How to use this tool
- Paste the text you want to convert into the input box.
- Choose Encode to turn readable text into Base64, or choose Decode to turn Base64 back into text.
- Check the output and copy it into your app, config file, or test case.
- If the text includes emoji or accented characters, keep UTF-8 enabled so the result stays correct.
Step by step, what happens
- The tool reads the text exactly as you entered it, including spaces, punctuation, and Unicode characters.
- If you encode, it converts the text into Base64 so it can be safely stored or transferred as plain characters.
- If you decode, it expects valid Base64 and turns it back into readable text.
- The UTF-8 handling ensures characters like accents and emoji are preserved instead of being mangled.
- If the input is not valid Base64 when decoding, the tool should show an error rather than guess.
Worked example
Here is a simple example where a short greeting with an accent is encoded and then decoded again.
Input: Café
- Paste Cafe with the accented e into the input box.
- Click Encode to convert the text into Base64.
- The tool outputs the Base64 form, which can later be pasted into the Decode mode.
- If you decode that result, you get the original word back exactly.
Output: Q2Fmw6k=
Tips and common mistakes
- When decoding, make sure the input is valid Base64 and does not include extra spaces or line breaks unless the tool supports them.
- Use this tool for text, not for files. If you need file encoding, use a file-specific Base64 tool instead.
- UTF-8 support matters for emoji, accented letters, and non-English text, so do not switch to a non-Unicode mode for those inputs.
- If the output looks wrong after decoding, check that you copied the full Base64 string and did not miss the padding at the end.
Frequently asked questions
What is Base64?
Base64 represents binary data using 64 printable ASCII characters. It is widely used to embed images, transmit data in JSON, and encode email attachments.
Does it support emoji and accents?
Yes, encoding uses UTF-8, so emoji and accented characters round-trip correctly.
Is Base64 encryption?
No. Base64 is encoding, not encryption, anyone can decode it. Do not use it to protect secrets.
More Developer Tools Tools
Explore related calculators in this category
Image to Base64
Convert an image to a Base64 data URI you can embed directly in HTML or CSS.
JWT Decoder
Decode a JSON Web Token (JWT) to view its header and payload. Does not verify the signature.
.htaccess Generator
Generate common .htaccess rules, force HTTPS, www redirect, and caching, with checkboxes.
API Key Generator
Generate random, secure API keys and tokens with an optional prefix. Cryptographically secure.
You Might Also Like
Popular tools from other categories
1031 Exchange Calculator - Free Online
Free Calculate tax deferral in a 1031 exchange. Step-by-step solutions and formulas included. Fast, accurate, and free, with formula and example.
4% Rule Calculator
Find the retirement nest egg you need using the 4% safe-withdrawal rule.
70% Rule Calculator
Calculate max offer using the 70% rule for flips.
A1C Calculator - Free Online
Free Convert between A1C percentage and estimated average glucose. Step-by-step solutions and formulas included. Simple, fast, and free.
Can't Find the Right Calculator?
Try our AI Math Solver, type any problem in plain English and get instant step-by-step solutions.