编码转换工具
多合一编码工具:进制转换、URL编码、HTML编码、Unicode编解码等
GET
https://www.pa95.com/API/encode_tool.php
请求方式
GET
返回格式
json
调用方式
免费公开
调用次数
9 次
请求示例
https://www.pa95.com/API/encode_tool.php?action=base_convert&text=255&from=10&to=16
请求参数
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| action | string | 可选 | base_convert/hex_encode/url_encode/html_encode/unicode_encode等 |
| text | string | 必填 | 要转换的文本 |
| from | int | 可选 | 原始进制 |
| to | int | 可选 | 目标进制 |
返回示例
{
"code": 200,
"data": {
"result": "FF",
"decimal": "255"
}
}
在线调试
相关接口