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
  1. 1Paste your text or URL-safe Base64
  2. 2Select Encode or Decode
  3. 3Click Process
  4. 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

Related Articles

More from Developer Tools