Convert a string to its hexadecimal representation.
Code
Utilitiesecho -n "$str" | xxd -p | tr -d '\n'Parameters
The string to convert to hex.
Server
More Bash 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.
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.
Array Difference
Find elements in the first array that are not present in the second array.