nl | en

Unit conversion (text encoding)

base64urlbase64


...


Conversion from Base64url to Base64

Base64url is a variation of the original Base64 encoding that uses URL- and filename-safe characters. Unlike Base64, Base64url replaces the characters '+', '/' with '-', '_' respectively. Converting from Base64url to Base64 involves replacing these characters to their original form. This is a common transformation required when working with APIs or systems that expect standard Base64 encoding.

For example, if you receive a Base64url-encoded string like "SGVsbG8gV29ybGQ" and need to convert it to regular Base64 encoding, you would replace '-' with '+' and '_' with '/' to get "SGVsbG8gV29ybGQ=". Common use cases for this conversion include handling JWT tokens, working with cryptographic keys, or interacting with various web services that utilize Base64 encoding.