The Otter family · try our other free tools: PDFOtter ↗ PixOtter ↗ Numbiqo UK money calculators ↗

Base64 Encode/Decode

Encode text to Base64 or decode it back, instantly.

Read the full guide: What Is Base64 and How to Encode or Decode It →

Encode text to Base64 or decode Base64 back to text with this free online Base64 encoder/decoder. It handles full Unicode, including accents and emoji, useful for data URIs, tokens, config values and debugging.

How to use the base64 encode/decode

  1. Paste your text (or Base64) into the box.
  2. Click Encode to convert to Base64, or Decode to convert back.
  3. Copy the result.

Why use ToolOtter's Base64 Encode/Decode?

  • Encode & decode
  • Full Unicode & emoji support
  • One-click copy
  • Instant & private

Worked example

Type Hello, world! and click Encode to get SGVsbG8sIHdvcmxkIQ==. The == at the end is padding. Accented text works too: café encodes to Y2Fmw6k=, because the text is turned into UTF-8 first.

Paste SGVsbG8sIHdvcmxkIQ== and click Decode to get the original text back.

When people use it

  • Reading Base64 values in config files, emails or logs
  • Encoding small pieces of data for an API or HTTP header
  • Checking what a Basic authentication header contains
  • Debugging data URIs

Good to know

Base64 is not encryption. Anyone can decode it, so never treat a Base64 string as a way to hide a password. Encoded data is about a third larger than the original. This tool works on text; to encode a whole file, use a file-to-Base64 tool.

Base64 Encode/Decode, frequently asked questions

How do I encode text to Base64?

Paste your text and click Encode. To go the other way, paste Base64 and click Decode.

Does it support emoji and accents?

Yes. It encodes and decodes full Unicode, so emoji and accented characters survive the round trip.

What is Base64 used for?

It represents binary or text data as ASCII, common in data URIs, API tokens and email attachments.

Is my input kept private?

Yes. Encoding and decoding run entirely in your browser.

Is Base64 secure?

No. It is an encoding, not encryption, and can be reversed by anyone.

Why does my Base64 end in = or ==?

Base64 works in blocks of three bytes. When the input is not a multiple of three, = signs pad the end.

Why does decoding fail?

The string may contain characters that are not Base64, have missing padding, or be URL-safe Base64, which uses - and _ instead of + and /.