Encode a string to Base64 format for safe transmission in URLs and APIs.
Code
Utilitiesimport base64
return base64.b64encode(input.encode()).decode()Parameters
The string to encode to Base64.
Server
More Python Snippets
Decode Base64
Decode a Base64 encoded string back to its original text representation.
Decode URL
Decode a URL-encoded string back to its original form.
Encode URL
Encode a string for safe use in a URL by escaping special characters.
ROT13 Encode/Decode
Encode or decode a string using the ROT13 cipher, where the same operation is used for both encoding and decoding.
String to Hex
Convert a string to its hexadecimal representation.
Array Difference
Find elements in the first array that are not present in the second array.