Base64 Encode / Decode

Encode text to Base64 or decode Base64 to text in your browser. Handles UTF-8 safely. No data is sent to any server.

Base64 Encode / Decode tool

How to use

  1. Choose mode

    Switch between Encode (text → Base64) and Decode (Base64 → text) using the buttons.

  2. Enter input

    Type or paste your text or Base64 string. Decoding supports standard Base64; invalid input shows an error.

  3. Copy result

    Use the Copy button to copy the encoded or decoded result.

Examples

  • Encode example

    Encoding 'Hello' produces the following Base64.

    Input
    Hello
    Output
    SGVsbG8=

Frequently asked questions

Is UTF-8 supported?
Yes. Encoding and decoding correctly handle multi-byte UTF-8 characters so non-ASCII text works as expected.
Why does decoding sometimes fail?
Base64 strings must use the standard alphabet and padding. Extra spaces or invalid characters will cause a decode error. Remove line breaks or other noise and try again.

You might find these useful too.