Base64 Encode / Decode

Encode text to Base64 or decode Base64 back to readable text, with full UTF-8 support. Instant and private.

  • Free, no sign-up
  • Files stay on your device
  • Works on mobile
Loading tool…

Base64 Encode / Decode converts text to Base64 and back. Base64 represents data using only letters, digits, plus and slash, which is how binary or special characters are safely carried in places that expect plain text, such as email bodies, data URLs, HTTP headers and some configuration files.

Developers decode tokens and headers to see what is inside, support teams read encoded email parts, and students learn how encoding works. This tool handles full UTF-8, so text with accents, Hindi or emoji encodes and decodes correctly. Remember that Base64 is encoding, not encryption: anyone can decode it.

How to use Base64 Encode / Decode

  1. Paste the text or Base64 string into the main text area.
  2. Choose Encode or Decode in the settings panel on the right, and the URL-safe variant if available.
  3. Press the action button to convert.
  4. Copy the result from the output box.

Features

  • Encoding and decoding run in your browser, so credentials are not sent anywhere.
  • Full UTF-8 support for non-English text and emoji.
  • Clear error message when the input is not valid Base64.
  • Base64 output is about one third larger than the original text.
  • Base64 provides no security; never treat it as a way to hide passwords.

When to use it

  • Decoding the payload section of a JWT to check its expiry time while debugging.
  • Encoding a username and password pair for a Basic Authorization header in an API test.
  • Reading a Base64-encoded email attachment header from a raw message source.

Frequently asked questions

Is Base64 a form of encryption?

No. It is a reversible encoding with no key. Anyone can decode it, so it offers no protection.

Why does decoding show strange characters?

The original data may be binary, like an image, rather than text. Binary content will not display as readable characters.

What is URL-safe Base64?

A variant that uses - and _ instead of + and / so the string can be used in URLs and file names without escaping.

Can I encode an image here?

This tool is for text. Use the Image to Base64 tool to convert pictures into data URLs.

Why does my encoded string end with = signs?

Base64 works in blocks of three bytes. When the input does not divide evenly, one or two = characters are added as padding.