Web Token Encoding: Base64URL Standards
The Base64URL RFC 7515 Encoder and Decoder converts arbitrary text, binary blobs, and token signatures into web-safe format compliant with RFC 7515 and RFC 4648. Crucial for OAuth 2.0 implementations, JWT debugging, and API endpoint integrations.
Core Mathematical Relationships
Understand alphabet transformation and zero-padding elimination:
- Character Mapping: $+ \mapsto -$ and $/ \mapsto \_$ for pure URL parameter compatibility.
- Padding Omission: All trailing $=$ characters are stripped during RFC 7515 encoding.
- Bit Packing Expansion: Encodes 3 8-bit bytes (24 bits) into 4 6-bit symbols with an expansion ratio of $4/3$.
How to Use the Calculator
- Paste raw text, hex, or standard Base64 string into the input area.
- Select conversion direction between Encode to Base64URL or Decode from Base64URL.
- Click Process Encoding to inspect immediate real-time URL-safe output and copy to clipboard.
