Encode a string for safe use in a URL by escaping special characters.
Code
Utilitiesrawurlencode($str);Parameters
The string to encode.
Server
More PHP 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 Base64
Encode a string to Base64 format for safe transmission in URLs and APIs.
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.