Library API
    Preparing search index...

    Function base64ToBase64Url

    • Normalizes a standard Base64 string into a URL-safe Base64URL string (RFC 4648 §5). Replaces + with -, / with _, and strips trailing = padding.

      Parameters

      • base64: string

        The standard Base64 string to convert

      Returns string

      The URL-safe Base64URL string

      const url = base64ToBase64Url('+/8='); // '-_8'