URL Safe Base64
Convert between standard Base64 and URL-safe Base64 (RFC 4648). This format is essential for JWTs and URL parameters where characters like `+` and `/` are problematic.
SGVsbG8gV29ybGQh
About the URL Safe Base64 Converter
Encode text into URL-safe Base64 (also called base64url) for tokens, query strings and file names, or decode a base64url string back to text.
Everything you enter is processed in your browser; nothing is uploaded or stored.
How to use it
- Choose Encode or Decode as the mode.
- Paste your text or base64url string.
- Copy the result.
URL-safe Base64 vs standard Base64
Standard Base64 uses + and /, which have special meanings in URLs, and pads with = signs. The URL-safe variant (RFC 4648 §5) replaces + with -, / with _, and drops the padding, so the string can go into a URL or file name without escaping.
Decoding reverses the swap and adds back the padding before decoding. JSON Web Tokens (JWT) use base64url for each of their three parts.
Example
Standard Base64 “a+b/c==” is “a-b_c” in URL-safe form.
Frequently asked questions
Is base64url encryption?
No. It is an encoding anyone can reverse; never use it to hide secrets.
Can I encode Hindi or emoji?
This tool uses the browser’s basic Base64 functions, which handle Latin characters; text outside that range may fail to encode.
How do I decode a JWT?
Use the JWT Decoder, which splits the token and decodes each part.