Flowfiles ← Base64 Encoder / Decoder

Base64 URL-safe Encoder Online

Base64URL for JWT, OAuth 2.0, and API identifiers — free, 100% local

URL-safe Base64 (Base64URL) replaces + with - and / with _ to produce strings safe in URLs, filenames, and query parameters. It is the format used by JWT tokens, the OAuth 2.0 protocol, and many APIs. Select URL-safe in the options to activate this variant.

Need the full tool with every Base64 option?

Open the Base64 tool →
Shortcut: select the URL-safe variant and uncheck Padding (=) to get pure Base64URL, compatible with JWT.
Input
Base64URL

Standard vs URL-safe Base64: comparison

AspectStandard (RFC 4648 §4)URL-safe (RFC 4648 §5)
Char 62+-
Char 63/_
PaddingRequired (=)Usually omitted
Use casesMIME, PEM, KubernetesJWT, OAuth, cookies, URLs

Frequently Asked Questions

What is URL-safe Base64?

URL-safe Base64 (RFC 4648 §5) uses - instead of + and _ instead of /. These characters are safe in URLs without percent-encoding. Padding (=) is often omitted.

Do JWT tokens use Base64URL?

Yes. JWT tokens encode the header and payload in Base64URL without padding. To decode a JWT payload, select URL-safe, uncheck padding, and paste the second part of the token (between the two dots).

Should I keep the padding?

It depends on the target system. JWT and OAuth 2.0 omit padding. Some APIs accept it with padding. The tool lets you choose via the Padding checkbox.

Related tools