Base64 and URL encoding are common in web development, but they solve different problems. Xian's Tools provides:
Both support Chinese and other UTF-8 text, process input locally in your browser, and let you copy the result.
`Authorization: Basic base64(username:password)`.Open Base64 Encoder and Decoder, enter text, and click Encode or Decode. Text is handled as UTF-8, so non-ASCII input can be decoded correctly in other systems using the same encoding.
Anyone can reverse Base64 encoding. It is not encryption and does not protect passwords or sensitive information. For reversible encryption testing, see AES Encryption and Decryption.
The tool follows JavaScript's encodeURIComponent. Letters, digits, and - _ . ! ~ * ' ( ) remain unchanged; other characters are encoded. This is useful for individual query parameter values.
Encoding a whole URL also encodes separators such as ://, /, and ?, so the result cannot simply be visited as the original URL. Encode the value instead, for example:
https://example.com/search?q=hello%20worldA % that is not followed by two hexadecimal digits, as in 100%.
%E4%B8.Double encoding can also produce an unexpected result: one decoding pass may return another encoded string. Check what the receiving system expects before decoding again.
%XX.When placing a standard Base64 result in a query parameter, URL-encode the value so characters such as +, /, and = are preserved correctly.