How to Decode a Base64url String
Input Your Base64url String
Paste the URL-safe Base64 string you want to decode. This format is commonly used in JWT tokens and web APIs:
Example: Base64url Input
Here's an example Base64url encoded string:
SGVsbG8gV29ybGQhIFRlc3RpbmcgKy89IGNoYXJhY3RlcnM
Automatic Decoding
The tool automatically decodes your Base64url string back to readable text:
Example: Decoded Output
The Base64url string decodes to:
Hello World! Testing +/= characters
Copy or Download Result
Get your decoded text ready for use:
What Does This Decoder Do?
This Base64 URL Decoder converts URL-safe Base64 strings (Base64url) back to their original text format. It handles the URL-friendly variant defined in RFC 4648 that uses different characters than standard Base64.
Decoding Process:
When to Use Base64url Decoder
Base64url decoding is essential for working with modern web authentication and APIs:
JWT Token Decoding Example
JWT tokens consist of three Base64url encoded parts separated by dots. You can decode the header and payload to inspect the token contents following the RFC 7519 standard.
JWT Token Structure:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIn0.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
Paste the whole token and the page shows the header and payload separately. The third part is the signature: it is binary, so it is shown as hex, and it is not checked here.
Frequently Asked Questions
Can I paste a whole JWT here?
Yes. If the text looks like a JWT (parts joined by dots, with a JSON header first), the page decodes each part on its own and shows the header and the payload exactly as they were encoded, followed by the signature as hex. An encrypted JWT with five parts only has a readable header, so that is all you get. You can also paste just the middle part if you only want the payload.
Does decoding a JWT tell me the token is genuine?
No. Decoding only reverses the Base64url step, and anyone can write a header and payload and encode them. The signature is what proves who issued the token, and this page does not check it, because that needs the issuer's secret or public key. Verify tokens in your own code with a proper JWT library before you trust what they say.
How is Base64url different from normal Base64?
It uses - and _ where normal Base64 uses + and /, because + and / have special meanings in URLs, and it usually drops the = padding at the end. The bytes ">>>?" are Pj4+Pw== in normal Base64 and Pj4-Pw in Base64url. If you paste normal Base64 here it still decodes, and a short note tells you it was the standard kind. A string that mixes both sets of characters is refused, because that usually means it was damaged.
Do I have to add the = padding back first?
No. Padding is optional: the decoder works out how many bytes the last group holds from the length of the string, and strings that still end in = or == are fine too. The one length that can never be right is one character past a group of four, and in that case the page tells you the string looks cut off.
Where else will I see Base64url strings?
In OAuth and OpenID Connect state and nonce values, PKCE code challenges, password-reset and magic-link tokens, WebAuthn credential IDs and plenty of API cursors. Some of these hold readable text or JSON; others, like a PKCE code_challenge or a credential ID, are random bytes or a hash. For those the page says the data is binary rather than showing scrambled characters, and you can save the bytes with Base64 to File.
Will numbers and special characters in the payload change?
No. The decoded bytes are read as UTF-8 and shown exactly as they are, with no reformatting. A long ID like 8901240544102066246, a price written 14.50, a zip code like 00501, accented names and emoji all come out exactly as they went in, and Copy and Download give you the same text you see.
Is it safe to paste a real token here?
The decoding runs in your browser. Nothing you paste is uploaded, and nothing is kept, so a reload starts with an empty editor. Keep in mind that Base64url is not encryption: anyone who has a JWT can read its payload exactly the way this page does, so a token should never carry passwords or other secrets in the first place. Treat a live token like a password while it is still valid.
Need to go the other way? Base64URL Encoder turns text into URL-safe Base64. For ordinary Base64 with + and / there is the Base64 decoder, and to save binary data as a file use Base64 to File.
Related Tools
Base64 Encoder
Encode text and data to Base64 format
Base64 Decoder
Decode Base64 encoded data back to text
Base64 Validator
Validate Base64 encoded strings with detailed format checking and content type detection
Base64 URL Encoder
Encode text to URL-safe Base64 format for JWT tokens, OAuth, and web APIs
URL Decode
Decode URL-encoded text and URLs
JSON URL Decode
URL decode JSON data from query parameters