English

Online Base64 Encoder and Decoder for UTF-8 Text | FlyJson

Encode and decode UTF-8 text with Base64. Convert Chinese, symbols, and multiline text. Data stays in your browser. Base64 is encoding, not encryption.

Conversion runs locally in your browser. Your input is not uploaded. Base64 is not encryption.

What is Base64 encoding?

Base64 represents binary data with printable text characters. It is commonly used to carry bytes through text-based formats such as JSON, XML, email, and API payloads. Base64 is encoding, not encryption: anyone with the encoded text can decode it.

How Base64 works

The input is handled as bytes. Each group of three bytes (24 bits) is split into four 6-bit values, and each value maps to a character in the Base64 alphabet. If the final group is incomplete, one or two = characters may be added as padding.

Base64 alphabet and example

  • Uppercase letters A–Z and lowercase letters a–z.
  • Digits 0–9 and the symbols + and /.
  • The = character is used for padding.
  • The UTF-8 text abc encodes to YWJj.

Common uses and trade-offs

  • Embedding image or file bytes in text-based data formats.
  • Transferring certificates, signatures, or binary fields through APIs.
  • Carrying content in email and other text-oriented protocols.
  • Encoded output is larger than the original, and Base64 does not protect sensitive data.

Base64 is not encryption

Base64 requires no secret key and can be reversed by anyone. Use a cryptographic encryption method when data must be kept confidential, and use a digital signature or message authentication code when integrity and authenticity are required.

Frequently asked questions

Is Base64 encryption?

No. Base64 is a reversible encoding that represents binary data as text. It does not provide confidentiality.

Why can decoding fail?

The input may contain invalid characters, incorrect padding, or invalid UTF-8 bytes. Check that it is standard Base64 text.

Does it support Chinese and multiline text?

Yes. Text is encoded as UTF-8 before being converted to Base64.

Is my input uploaded?

No. Encoding and decoding run locally in your browser.

Does Base64 increase the data size?

Usually. Base64 output is about one third larger, depending on the input byte length and padding.