Base64 Encode/Decode

Encode and decode text in Base64.

100% local processing. Your data never leaves your computer

About this tool

Base64 is an encoding scheme that converts binary data into a sequence of ASCII-safe characters. Every three bytes of input are represented as four characters from the Base64 alphabet — uppercase and lowercase letters, digits, and the symbols `+` and `/`. The output is about 33% larger than the original data, but can be transmitted safely through any system that handles plain text without risking corruption.

To use the tool, choose your mode. In **Encode** mode, paste or type the text you want to encode and the Base64 output appears instantly. In **Decode** mode, paste a valid Base64 string to recover the original text. A copy button lets you transfer the result to your clipboard in one click.

The most common use cases involve web development and APIs: embedding images directly in CSS or HTML as Data URLs, transmitting authentication tokens in HTTP headers, storing basic credentials in the format `Authorization: Basic ...`, encoding JSON payloads before including them in query strings, and debugging API responses that return fields in Base64.

All conversion happens entirely in the browser using JavaScript's native `btoa` and `atob` functions. No data is sent to any server and no account or installation is required.

Frequently asked questions

Is the tool free?

Yes, completely free with no usage limits.

Is my data sent to a server?

No. Encoding and decoding happen locally in your browser. No information leaves your device.

Does it work on mobile?

Yes, in any modern browser including Chrome, Safari and Firefox for Android and iOS.

Is Base64 a form of encryption?

No. Base64 is only an encoding — anyone can decode the result without a key or password. For protecting sensitive data, use real encryption such as AES.

Why does my text not decode correctly?

Check that the Base64 string is complete and contains no extra spaces or line breaks in the middle. Truncated or invalid-character strings will cause a decode error.