Skip to main content

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.

Reviewed for accuracy by the Math Ora X team Last updated

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

  1. Paste the text you want to convert into the input box.
  2. Choose Encode to turn readable text into Base64, or choose Decode to turn Base64 back into text.
  3. Check the output and copy it into your app, config file, or test case.
  4. If the text includes emoji or accented characters, keep UTF-8 enabled so the result stays correct.

Step by step, what happens

  1. The tool reads the text exactly as you entered it, including spaces, punctuation, and Unicode characters.
  2. If you encode, it converts the text into Base64 so it can be safely stored or transferred as plain characters.
  3. If you decode, it expects valid Base64 and turns it back into readable text.
  4. The UTF-8 handling ensures characters like accents and emoji are preserved instead of being mangled.
  5. 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é

  1. Paste Cafe with the accented e into the input box.
  2. Click Encode to convert the text into Base64.
  3. The tool outputs the Base64 form, which can later be pasted into the Decode mode.
  4. 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

You Might Also Like

Popular tools from other categories

Can't Find the Right Calculator?

Try our AI Math Solver, type any problem in plain English and get instant step-by-step solutions.

Try AI Solver

Browse All Categories

Home Developer Tools Current Tool
Facebook Twitter WhatsApp