Answer

How to Base64 encode a string

Base64-encode any text or string for free, instantly, in your browser — nothing is uploaded.

Base64 encoding converts text into an ASCII-safe string using 64 characters (A–Z, a–z, 0–9, + and /). Paste your text into a Base64 encoder and it returns the encoded value — for example, "Hello, world!" becomes "SGVsbG8sIHdvcmxkIQ==".

Input
Hello, world!
Output
SGVsbG8sIHdvcmxkIQ==

Each 3 bytes of input become 4 Base64 characters; "=" pads the final group.

Open the Base64 → Free · runs in your browser · nothing uploaded

Steps

  1. Open the Base64 tool and select the "Encode" mode.
  2. Type or paste the text you want to encode into the input box.
  3. Read the encoded Base64 from the output box and copy it.
  4. For URLs or filenames, switch on the URL-safe (Base64URL) option if available.

Frequently asked questions

Is Base64 encryption?
No. Base64 is encoding, not encryption — anyone can decode it. It makes binary or text data safe to transmit as ASCII; it does not protect or hide the contents.
Why does Base64 output end with "="?
The "=" characters are padding. Base64 works in groups of 3 input bytes → 4 output characters; when the last group is short, "=" pads it to a multiple of 4.