Skip to content
M2TOOLKIT

Base64 Encoder & Decoder

Encode text as Base64 or decode Base64 back to readable text — with full Unicode support.

  • Free
  • No sign-up
  • Runs in your browser
Mode

Text is converted to UTF-8 before encoding, so accents, non-Latin scripts and emoji round-trip correctly.

Everything you type is processed in your browser. Nothing you enter is sent to our servers or stored by us.

How to use the Base64 Encoder & Decoder

  1. Choose Encode or Decode.
  2. Paste your text or Base64.
  3. Copy the result.

What does this tool do?

Base64 represents binary data using 64 safe characters (A–Z, a–z, 0–9, + and /). It's used in email attachments, data URIs, basic HTTP authentication and JWTs.

Many simple tools break on non-English text because the browser's btoa() only handles Latin-1. This tool converts to UTF-8 first, so any language and emoji round-trip correctly. URL-safe Base64 (with - and _) is decoded automatically.

Why use it?

  • Decode tokens and data URIs.
  • Encode credentials for testing.
  • Works with every language.

Example

“Hello, world!” encodes to SGVsbG8sIHdvcmxkIQ==. “Café ☕” encodes to Q2Fmw6kg4piV.

Accuracy and limits

  • Base64 is encoding, not encryption. Anyone can decode it, so never use it to protect secrets.

Privacy

Everything you type is processed in your browser. Nothing you enter is sent to our servers or stored by us. There's no account to create and nothing to install.

Last reviewed by the M2Toolkit team.

Other tools people use alongside the base64 encoder & decoder.