/v1/convert
Data unit conversion
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/transfer-api/v1/convert" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/transfer-api/v1/convert", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/transfer-api/v1/convert");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/transfer-api/v1/convert",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"GB": 1,
"KB": 1000000,
"MB": 1000,
"TB": 0.001,
"GiB": 0.931322575,
"KiB": 976562.5,
"MiB": 953.674316,
"bits": 8000000000,
"mode": "size",
"note": "Decimal (KB=1000) and binary (KiB=1024) sizes from the input.",
"bytes": 1000000000,
"inputs": {
"from": "GB",
"value": 1
}
},
"meta": {
"timestamp": "2026-06-04T18:38:14.093Z",
"request_id": "a8e9e379-f0fe-48c8-aaad-b1fda5b0b4be"
},
"status": "ok",
"message": "Data unit convert",
"success": true
}