64 Base64Toolkit
Language:

Base64URL Encode

URL-safe Base64 (RFC 4648): - and _ instead of + and /, no padding. URL-safe mode is pre-enabled below.

0 chars · 0 bytes

0 chars · 0 bytes

Options

Recent conversions

Nothing yet — your last 10 conversions will appear here (stored only in this browser).

    Standard Base64 vs Base64URL

    Base64 (standard)Base64URL
    Character 62+-
    Character 63/_
    Padding= requiredusually omitted
    Safe in URLsNo (+ becomes a space)Yes
    Typical useMIME, PEM, JSON blobsJWT, OAuth, cookies, filenames

    The + character is decoded as a space in URL query strings and / is a path separator, so standard Base64 breaks the moment it enters a URL. If your encoded value will ever live in a query parameter, path segment, cookie, or filename, use Base64URL. If you are inspecting a JWT, try the dedicated JWT Decoder, which splits and decodes all three token segments for you.

    Frequently Asked Questions

    What is Base64URL?

    Base64URL (RFC 4648 §5) is a URL- and filename-safe variant of Base64. It replaces + with - and / with _, and normally omits the trailing = padding, so encoded values can be placed in URLs, query strings, cookies and filenames without escaping.

    Where is Base64URL used?

    Everywhere tokens travel in URLs or headers: all three segments of a JWT, OAuth 2.0 / PKCE code verifiers and challenges, WebAuthn credential IDs, Firebase/AWS pre-signed identifiers, and URL-embedded state blobs.

    Can I decode Base64URL with a normal Base64 decoder?

    Only if the decoder converts -/_ back to +// and restores padding first. This tool (and every decoder on this site) does that automatically in both directions.

    Related Tools