Base64 Encoder & Decoder
Convert Unicode text to Base64 and back with explicit validation for malformed input.
What is this tool?
Base64 represents binary or text data using a restricted ASCII alphabet. It is useful for transport formats, but it is encoding—not encryption.
How to use
- Enter ordinary text to encode, or a Base64 value to decode.
- Select Encode or Decode.
- Use Swap for a quick round trip.
- Copy the output.
Example
Hello encodes to SGVsbG8=. Emoji and non-Latin scripts are handled as UTF-8.
FAQ
Is Base64 secure?
No. Anyone can decode it; do not use Base64 to protect secrets.
Why does decoding fail?
The input may contain invalid characters, broken padding, or bytes that are not valid UTF-8 text.
Are line breaks preserved?
Yes, they are encoded as part of the input text.