64
64Encode

URL-Safe Base64url Encoder

Encode text into RFC 4648 §5 URL-safe Base64url (- and _ instead of + and /) with optional trailing = padding removal.

Decode URL-Safe Base64url on 64Decode
Plain Text Input 0 B
Base64 Output 0 chars
Technical Guide

Encode Text to URL-Safe Base64url (RFC 4648 Section 5)

Standard Base64 contains +, /, and = characters that break URL paths and query strings unless percent-encoded. Our URL-Safe Base64url Encoder implements RFC 4648 §5 so your tokens and identifiers stay clean in URLs and filenames.

Built for JWTs, OAuth2 PKCE & Query Parameters

By substituting + with - and / with _ (and optionally stripping trailing = padding), your encoded strings can be safely placed inside REST endpoints, redirect URIs, and object storage keys.

Lossless UTF-8 & Instant Reverse Decoding

All UTF-8 characters are preserved before Base64url encoding. To decode any Base64url token back to text or JSON, visit URL-Safe Base64url Decoder on 64Decode.

Frequently Asked Questions

Common Questions

What characters does URL-Safe Base64url use?

Base64url uses A-Z, a-z, 0-9, hyphen (-), and underscore (_) instead of + and /.

Should I enable No Padding (=) for URLs?

Yes, for most URL query parameters and JWTs, stripping trailing = padding avoids percent-encoding %3D in links.

Is Base64url safe for filenames on Windows, macOS, and Linux?

Yes. Because / is replaced with _, Base64url strings will never be misinterpreted as directory separators.

Does this tool support UTF-8 emojis and international text?

Yes. Text is encoded to UTF-8 bytes first so all Unicode characters are preserved.

How do I decode a URL-safe Base64url string?

Click Decode URL-Safe Base64url to open the RFC 4648 §5 decoder on 64Decode.com.