Base64URL Encoder / Decoder
Encode text to URL-safe Base64 (with - and _ instead of + and /, and no padding) or decode it back. It is the form used inside JWTs and many web APIs.
Processed on your device. Files are not uploaded
How to encode or decode Base64URL
Paste your text or Base64URL
Paste or type it into the box, or press Try an example.
Choose the direction
Encode to Base64URL or decode it.
Copy or download
Use it in a URL or a token, where it needs no further escaping.
Worked example
This is what Base64URL Encoder / Decoder gives for its own sample values. Open the tool above and change anything to try your own.
Text or Base64URL
Hello, world! >>> ???
- Direction
- Encode text to Base64URL
- Keep the = padding
- No
Base64URL
SGVsbG8sIHdvcmxkISA-Pj4gPz8_
About Base64URL Encoder / Decoder
Base64URL is Base64 made safe for web addresses and tokens: it uses - and _ instead of + and /, and usually leaves off the = padding. It is the form inside every JWT.
FAQs
How is it different from Base64?
Two characters are swapped for URL-safe ones, and the padding is optional.
Can the decoder read ordinary Base64?
Yes. It accepts both alphabets.
Can I read a JWT?
Use JWT Decoder.