js base64 encode bytes code example Example: javascript base64 decode var decodedString = atob(encodedString);