Encode text with the URL-safe alphabet
Paste text to encode its UTF-8 bytes with the URL-safe Base64 alphabet. This encoder uses - instead of + and _ instead of /. It removes trailing = padding. For example, Hello becomes SGVsbG8.
The text ??? becomes Pz8_. The equivalent standard Base64 is Pz8/. Use the standard Base64 encoder when the receiving format expects that alphabet and padding.
Work with encoded token segments
JWT headers and payloads use Base64URL, but a complete token also includes dots and a signature. Process one segment at a time here. Changing or reading a segment does not verify a signature or establish that a token is trustworthy.
See RFC 4648 section 5 for the URL-safe alphabet. Use the Base64URL decoder for the reverse conversion.
Common questions
- How is Base64URL different from Base64?
- Base64URL replaces + with - and / with _. This encoder also omits trailing = padding, and the decoder restores missing padding.
- Can I decode an entire JWT here?
- Paste one encoded segment at a time. Decoding the header or payload does not verify the signature or validate the token.