๐Ÿ”— Base64URL Encoder/Decoder

JWT header/payload segments are encoded in this format.

Base64URL textSGVsbG8sIFdvcmxkPw

Convert text to and from Base64URL (RFC 4648 Section 5), the URL-safe variant of Base64 used in JWTs and URL parameters. Unlike standard Base64, it uses "-" and "_" instead of "+" and "/", and omits "=" padding, so it can be used directly in URLs and filenames.

How to use

  1. Choose encode or decode mode.
  2. Enter the text you want to convert.
  3. The result is shown automatically.

FAQ

How is Base64URL different from standard Base64?

It replaces "+" and "/" with "-" and "_" respectively, and omits the trailing "=" padding, so it can be used in URLs and filenames without escaping.

Where is it used in JWTs?

A JWT's header, payload, and signature are each Base64URL-encoded segments joined by periods.

Can it handle multi-byte characters?

Yes โ€” input text is encoded as UTF-8 bytes before Base64URL encoding, so any text, including non-ASCII characters, is supported.