base64Encode
Convert text to Base64-encoded UTF-8 text.
js
base64Encode(text)Arguments
| Argument | Type | Meaning |
|---|---|---|
text | string | Input text; Base64 text for base64Decode. |
Returns
Base64-encoded UTF-8 text string, or null if conversion fails.
Example
js
console.log(base64Encode("Hello"));Notes
Encoding is not encryption.