Base64 Encode

Base64 Encode

Base64 is a group of binary-to-text encoding schemes that represent binary data in an ASCII string format by translating the data into a radix-64 representation. Here is below examples of some language to encode data in base64.

  • PHP: base64_encode($data)
  • Javascript: btoa(data)
  • Java: Base64.encodeBase64(data);
  • Python: base64.b64encode(data)