🌐 EN

🔐 Base64 Converter

Encode text or a selected file as Base64, or decode a Base64 string into readable text.

Inputs and checks

  • Choose Encode to enter text and press Encode, or select a file to generate Base64 from its contents. Choosing a file clears the text entry.
  • Choose Decode, paste a Base64 string, and press Decode. The decode result is text, not a downloaded file.
  • Text is encoded using UTF-8, so letters outside English can also be converted. There is no stated file-size cap, but this does not promise that files of unlimited size will work.
  • Clear removes the active panel input and hides its result; Copy copies a visible result. Empty text does not run a conversion.

Reading the result

  • Text encoding produces a Base64 string. File encoding produces raw Base64 without a data: address or file-type prefix. The file is read by the browser for this conversion, without a file-upload request in this script.
  • Decoding expects valid Base64 representing UTF-8 text. Bad Base64 or bytes that cannot be decoded as UTF-8 show an Invalid Base64 string alert.
  • This page cannot preview decoded images, save decoded binary files, or choose a URL-safe Base64 alphabet. Base64 is reversible encoding, not password protection or encryption.

Examples

Encode Hello

Input
Tab: Encode; text: Hello
Result
SGVsbG8=
How to check it
The UTF-8 bytes for Hello are represented by the Base64 string SGVsbG8=.

Decode Korean text

Input
Tab: Decode; Base64 text: 7JWI64WV
Result
안녕
How to check it
Decoding the Base64 bytes as UTF-8 produces the two Korean characters 안녕.

Frequently asked questions

Is Base64 the same as encryption?
No. Anyone with a decoder can reverse Base64; it does not keep text secret.
Why does a decoded image not appear?
The Decode tab returns text only, not an image preview or binary file download.
Does choosing a file upload it?
This conversion reads the chosen file in the browser; the described script does not send an upload request.