Base64 vs URL encoding

Use percent encoding for individual query parameter values. For example, a&b becomes a%26b, so the ampersand is not interpreted as a separator. Do not encode an entire URL as a single component.

Base64 represents bytes as text. The UTF-8 text hello becomes aGVsbG8=. Base64 is not encryption; anyone can decode it. Standard Base64 is not the same as Base64url.

Try it locally

  1. Open the free tools and select URL encode.
  2. Enter a&b and compare the result above.
  3. Switch to Base64 encode, enter hello, then decode the output.

Avoid pasting production credentials into unfamiliar tools. Use synthetic examples when debugging.

Open the eight free developer tools