Base64 Encode/Decode

Encode any text to Base64, or decode Base64 back into readable text.

base64-encode-decode.js
Result will appear here.

Base64 is a way of representing binary or text data using 64 printable characters, commonly used to embed data in URLs, JSON, or email attachments. This tool converts text you type into its Base64 form, or takes a Base64 string and decodes it back to plain text, using your browser's built-in encoding functions — nothing is sent to a server.

How to use it

  1. Type or paste text into the input box.
  2. Click Encode to convert it to Base64, or paste a Base64 string and click Decode.
  3. The result appears in the output box below.
  4. Click Copy to copy the result.

Frequently asked questions

What is Base64 used for?

It's commonly used to safely embed binary data (like images) as text inside JSON, URLs, or email, since Base64 only uses letters, numbers and a few symbols.

Can this decode any Base64 string?

It can decode any valid standard Base64 string; if the input isn't valid Base64, the tool will show an error instead of garbled output.

Does Base64 encrypt my data?

No — Base64 is an encoding, not encryption. It's easily reversible and provides no security or privacy protection on its own.