Developer ToolsEncoders & DecodersFree Tool
URL Safe Base64
Encode/decode Base64 using the URL-safe alphabet (- and _ instead of + and /), with padding removed — the format used in JWTs and URL query parameters.
How to Use URL Safe Base64
- 1Paste your text or URL-safe Base64
- 2Select Encode or Decode
- 3Click Process
- 4Copy the result
Frequently Asked Questions
Standard Base64 uses + and / characters and = padding, which have special meaning in URLs. This variant substitutes - for +, _ for /, and strips trailing = padding, making the result safe to use directly in a URL or filename.
It's the encoding used for each segment of a JWT (JSON Web Token), and commonly for encoding data directly into URL query parameters or path segments.
The decoder reverses the character substitution (- back to +, _ back to /) before decoding — most browsers tolerate missing padding, so explicit padding restoration usually isn't needed.
No — encoding/decoding happens entirely in your browser.
Related Tools
Base64 Encoder
Encode any text into Base64 using the browser-native btoa() function, with full Unicode/UTF-8 support.
Base64 Decoder
Decode Base64 back to readable text using the browser-native atob() function, with full Unicode/UTF-8 support.
URL Encoder
Percent-encode text for safe use in URLs, or decode it back, using the native encodeURIComponent/decodeURIComponent functions.
URL Decoder
Decode percent-encoded URL text back to its original characters using the native decodeURIComponent function.