Base64URL Encoder/Decoder — Free Online Base64URL Encode Decode
Encode and decode Base64URL (URL-safe Base64) — used in JWTs, OAuth PKCE, WebAuthn, and URL-embedded binary data.
Frequently Asked Questions
Base64URL: The JWT and OAuth Encoding Format
Base64URL is a minor but important variant of standard Base64 designed for use in URLs and filenames. Standard Base64's + and / characters are special in URLs and file systems, requiring percent-encoding. Base64URL solves this by substituting - for + and _ for /, and dropping the = padding.
You encounter Base64URL constantly in modern authentication: every JWT has three Base64URL-encoded sections separated by dots. OAuth PKCE's code_challenge is Base64URL(SHA256(code_verifier)). WebAuthn credential IDs are Base64URL-encoded. URL-safe token IDs in APIs frequently use Base64URL encoding.
This tool is especially useful for manually inspecting JWT payloads, debugging OAuth flows, and verifying PKCE challenge values. The encoding algorithm is identical to Base64 except for the two character substitutions and omission of padding.