Base64 Encoder/Decoder

Encode or decode strings using standard Base64 encoding.

Raw TextLength: 0
Base64 OutputLength: 0

How to Use Base64 Encoder/Decoder

1

Select mode: click Encode to convert text to Base64, or Decode to convert it back.

2

Toggle URL-Safe as needed to replace '+' and '/' with '-' and '_' for safe URL transmission.

3

Enter text in the input box, and the result will be instantly calculated in the output box.

4

Click Copy to copy the result, or click the Trash icon to clear the workspace.

Base64 Codec FAQ

What is Base64 encoding used for?
Base64 is a binary-to-text encoding scheme. It translates binary data into a set of 64 printable characters, commonly used to transmit binary data over media that only support text, such as XML, JSON, or email headers.
What is URL-Safe mode?
Standard Base64 contains '+' and '/' characters, which have special meanings in URLs and can cause issues. URL-Safe mode replaces '+' with '-' and '/' with '_' to make the output safe for direct transmission in URL paths or query parameters.
Is my text data processed securely?
Yes. All Base64 encoding and decoding logic is implemented purely on the client side inside your browser. No data is transmitted to our servers.

🔗 Related Tools