JWT segment prep
A developer wants to encode a JSON payload into URL-safe Base64 for a token test.
Inputs
- Input text: {"sub":"123","scope":"demo"}
Steps
- Encode to Base64
- Swap reserved characters
- Remove padding
Result
- The output is ready for URL-safe use.