Encoding

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

  1. Enter ordinary text to encode, or a Base64 value to decode.
  2. Select Encode or Decode.
  3. Use Swap for a quick round trip.
  4. 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.

Related tools