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
Choose mode
Switch between Encode (text → Base64) and Decode (Base64 → text) using the buttons.
Enter input
Type or paste your text or Base64 string. Decoding supports standard Base64; invalid input shows an error.
Copy result
Use the Copy button to copy the encoded or decoded result.
Examples
Encode example
Encoding 'Hello' produces the following Base64.
InputHelloOutputSGVsbG8=
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.
Related tools
You might find these useful too.