Free tools for developers

Base64 Encoder & Decoder

Encode plain text to Base64 or decode Base64 back to text instantly. Everything runs in your browser - nothing is sent to any server.


What is Base64 Encoding?

Base64 is a way of encoding binary data as plain text. It takes any input - text, images, files - and converts it into a string of characters that only uses letters, numbers, and the symbols + and /. The name comes from the fact that it uses 64 different characters to represent the data.

Base64 is not encryption. It does not protect your data. Anyone who has the Base64 string can decode it back to the original in seconds. It is purely a way to safely transmit binary data through systems that only handle text, like email or JSON APIs.

When is Base64 Used?

Base64 is used in email attachments to send binary files through text-based email systems. It is used in data URIs to embed images directly into HTML or CSS without a separate file. It is used in HTTP Basic Authentication to encode usernames and passwords. It is also used in JWTs and many other token formats.

How to Use This Tool

  1. Choose Encode or Decode using the tabs at the top.
  2. Paste your text into the left input box.
  3. Click Convert to see the result on the right.
  4. Click Copy Output to copy the result to your clipboard.
  5. Use the Flip button to swap input and output instantly.

Frequently Asked Questions

Is Base64 the same as encryption?

No. Base64 is encoding, not encryption. Anyone can decode a Base64 string instantly without a key or password. Never use Base64 to protect sensitive data. Use proper encryption for that.

Why does Base64 output end with == sometimes?

Base64 works in groups of 3 bytes. If the input length is not divisible by 3 it adds padding characters at the end to complete the group. One or two equals signs at the end is normal and just means the input was padded.

Can I encode images to Base64?

This tool encodes text to Base64. To encode an image you would need to first convert the image to a binary string. A common use case is embedding small images directly in HTML using a data URI like src="data:image/png;base64,..."

Is my data safe?

Yes. Everything runs in your browser. Your text is never sent to any server. You can safely use this tool with sensitive content.

What characters does Base64 use?

Base64 uses A-Z, a-z, 0-9, plus (+) and forward slash (/). The equals sign (=) is used as padding. URL-safe Base64 replaces + with - and / with _ to make the output safe to use in URLs.