Encoding

Base64URL encoder

Encode text to Base64URL format (RFC 4648 §5). Like Base64 but + becomes - , / becomes _ , and padding is removed. Safe for use in URLs and filenames.

Plain Text

0 chars · 0 words · 0 lines

Get QR code
Copy to clipboard
Save to file

Base64URL Encoded

0 chars · 0 words · 0 lines

Get QR code
Copy to clipboard
Save to file

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.
Share

marduc812

SourcePrivacy

© 202620261119_b7bad2b