Base64 URL Encoder / Decoder

Convert text to URL-safe Base64 strings (commonly used in JWTs and URLs) effectively.

What is Base64 URL Encoding?

Standard Base64 encoding uses +, /, and = characters, which have special meanings in URLs. Base64URL solves this by:

  • Replacing + with - (minus).
  • Replacing / with _ (underscore).
  • Removing the = padding characters.

Common Uses

  • JWT (JSON Web Tokens): Uses Base64URL for header and payload.
  • URL Parameters: Passing binary data safely in query strings.
  • Filenames: Ensuring encoded data is filesystem-safe.

You might also like

Frequently Asked Questions

Base64URL is a modification of the standard Base64 encoding. It replaces the '+' and '/' characters (which are not URL-safe) with '-' and '_', and removes the trailing '=' padding characters.

Use it when storing binary data in URLs, filenames, or JSON Web Tokens (JWTs), where standard Base64 characters like '+' and '/' could cause parsing issues.

Yes, all processing happens locally in your browser. No data is sent to our servers.