语言
/v1/base64/encode
将任何 UTF-8 文本转换为其 Base64 表示形式。 根据您的用例选择标准或 URL 安全编码。 URL 安全模式将 + 替换为 - 并将 / 替换为 _,从而使输出对于查询字符串和文件名来说是安全的。
The UTF-8 string to encode.
Use URL-safe Base64 encoding (replaces + with - and / with _).
curl -X POST https://api.botoi.com/v1/base64/encode \ -H "Content-Type: application/json" \ -d '{"text":"Hello, World!","urlSafe":false}'
对文件内容、图像或证书进行 Base64 编码,以便它们可以在 JSON 中传输而不会逃避问题。
将 SVG 图标或小图像编码为 Base64,以便直接嵌入 HTML 或 CSS 中,从而减少额外的网络请求。
URL 安全的 Base64 编码允许您在查询字符串中包含令牌或签名的有效负载,而无需进行百分比编码。
Free tier includes 5 requests per minute with no credit card required. Upgrade for higher limits.