64
64Decode

URL-Safe Base64url Decoder

Decode RFC 4648 §5 Base64url strings containing - and _ characters, even when trailing = padding is omitted.

Encode URL-Safe Base64url on 64Encode
Base64 Input 0 chars
Decoded Text 0 B
Technical Guide

Decode URL-Safe Base64url Strings (RFC 4648 Section 5)

Standard Base64 uses +, /, and = characters, which have special meanings in URLs and filenames. RFC 4648 §5 defines Base64url, replacing + with - and / with _ while often omitting = padding. This tool decodes Base64url tokens cleanly.

Where Base64url Is Used in Modern Web Apps

Base64url is the standard encoding for JSON Web Tokens (JWT), OAuth 2.0 PKCE code challenges, WebAuthn/Passkey credentials, and URL query parameters.

Automatic Padding Restoration & UTF-8 Output

Even if trailing = characters were stripped by an API, 64Decode calculates the exact padding required and decodes the payload into clean UTF-8 text or JSON. To create URL-safe Base64url strings, visit URL-Safe Base64url Encoder on 64Encode.

Frequently Asked Questions

Common Questions

What is the difference between Base64 and Base64url?

Base64url replaces + with - and / with _ so the encoded string can be safely placed in URLs, query parameters, and filenames without percent-encoding.

Why do Base64url strings often have no = padding at the end?

In URLs and JWTs, trailing = padding is frequently omitted because = is a reserved query-string delimiter. Our decoder restores padding automatically.

Can I decode both standard Base64 and Base64url here?

Yes. With URL-Safe (- / _) enabled, both variants decode seamlessly.

Does this tool decode UTF-8 characters inside Base64url?

Yes. It decodes multi-byte UTF-8 text and emojis without corruption.

How do I encode a string into URL-safe Base64url?

Click Encode URL-Safe Base64url on 64Encode to generate RFC 4648 §5 strings with optional padding removal.