Base64URL Encoder / Decoder
Convert text or binary to Base64URL (URL-safe Base64) and back — no padding, no +/= characters that break URLs.
Mode:
Input text
0 chars
Base64URL output
Output will appear here…
—
Base64URL vs Standard Base64
| Property | Standard Base64 | Base64URL (RFC 4648 §5) |
|---|---|---|
| Character 62 | + | - (hyphen) |
| Character 63 | / | _ (underscore) |
| Padding | = (required) | omitted (JWTs) |
| URL-safe | No — needs percent-encoding | Yes — no escaping needed |
| Used in | Email (MIME), general data | JWTs, OAuth PKCE, WebAuthn |
Copied!
Summary
Convert text or binary to Base64URL (URL-safe Base64) and back — no padding, no +/= characters that break URLs.
How it works
- Paste or type your text (or hex bytes) into the input box.
- Choose Encode or Decode mode.
- The result appears instantly in the output panel.
- Click Copy to copy the result to your clipboard.
- Use the Swap button to move output back to input for chained operations.
Use cases
- Inspect the header or payload of a JWT token.
- Generate a PKCE code verifier and code challenge for OAuth 2.0.
- Encode binary data for use in URL query parameters.
- Decode Base64URL strings received from an API response.
- Verify that a Base64URL value round-trips without data loss.
- Understand the difference between standard Base64 and URL-safe Base64.
Frequently Asked Questions
Last updated: 2026-07-01 ·
Reviewed by Nham Vu