GET
tool-base64
公开接口 累计 3 次/api/v1/tool-base64
文本与 Base64 互转,支持 URL 安全字符
/api/v1/tool-base64
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
text |
string |
必填 | - | 待处理文本或 Base64 字符串 |
action |
string |
可选 | encode |
encode 编码 / decode 解码 |
urlsafe |
boolean |
可选 | |
是否使用 URL 安全字符 |
{
"ok": true,
"data": {
"result": {
"action": "encode",
"result": "aGVsbG8=",
"length": 8,
"urlsafe": false
}
}
}
curl -X GET '/api/v1/tool-base64?action=encode&urlsafe='