Base64 Encode Online

Convert any text to a Base64 string instantly. Type or paste below and copy the encoded result — need the reverse? Try the Base64 decoder.

0 characters

How to encode to Base64

  1. Type or paste your text into the input field above.
  2. The Base64 output is generated automatically as you type.
  3. Click Copy to copy the result, or Save to download it as a text file.
  4. Need a token- or URL-friendly result? Use the URL-safe Base64 tool instead.

Base64 encoding FAQ

How do I encode text to Base64?+

Paste or type your text into the input box above. The Base64-encoded result appears instantly on the right, ready to copy or download.

How does Base64 encoding work?+

Base64 encoding groups your data into 6-bit chunks and maps each chunk to one of 64 printable characters (A–Z, a–z, 0–9, + and /), padding the end with "=" so the length is a multiple of four.

Why does encoded Base64 look longer than my text?+

Base64 represents every 3 bytes of input as 4 characters, so encoded output is about 33% larger than the original data. This overhead is the trade-off for safe text transmission.

Can I encode a text file to Base64?+

Yes. Use the Upload button to load a .txt file, and its contents will be encoded automatically.