Answers for "how to convert a string to base64 in javascript"

24

javascript base64 encode

var string = "Hello folks how are you doing today?";
var encodedString = btoa(string); // Base64 encode the String
var decodedString = atob(encodedString); // Base64 decode the String
Posted by: Guest on July-31-2019
0

javascript base64 decode

var string = "Hello folks how are you doing today?";
var encodedString = btoa(string); // Base64 encode the String
var decodedString = atob(encodedString); // Base64 decode the String
Posted by: Guest on November-14-2020

Code answers related to "how to convert a string to base64 in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language