Decode a URL-safe Base64 string
Paste one URL-safe Base64 string to decode it as UTF-8 text. This tool replaces - and _ with their standard Base64 equivalents and restores omitted padding before decoding. For example, SGVsbG8 becomes Hello, and Pz8_ becomes ???.
This page is intended for encoded text. For binary output or a different character encoding, use the standard Base64 decoder and select HEX or the expected text encoding.
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 encoder 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.