Number Base Converter API Reference
Convert any integer between base 2 (binary), base 8 (octal), base 10 (decimal), and base 16 (hexadecimal). Returns all four representations at once, with grouped formats for readability. Supports arbitrarily large integers via BigInt.
Endpoint
/api/number-base-converterFull URL: https://quickhelp.dev/api/number-base-converter
Request
Content-Type: application/json. No authentication required for the anonymous free tier (30 req/min per IP).
| Field | Type | Required | Description |
|---|---|---|---|
| input | string | Yes | — |
| from_base | union | Yes | — |
Response
Returns application/json. On error, returns a JSON object with an error string field and an appropriate HTTP status code.
| Field | Type | Description |
|---|---|---|
| input_normalized | string | — |
| from_base | number | — |
| decimal | string | — |
| binary | string | — |
| octal | string | — |
| hexadecimal | string | — |
| binary_grouped | string | — |
| hex_grouped | string | — |
| bit_length | number | — |
| is_power_of_two | boolean | — |
Example
Decimal 255 to all bases
curl
curl -X POST https://quickhelp.dev/api/number-base-converter \
-H 'Content-Type: application/json' \
-d '{"input":"255","from_base":10}'Request body
{
"input": "255",
"from_base": 10
}Response
{
"input_normalized": "255",
"from_base": 10,
"decimal": "255",
"binary": "11111111",
"octal": "377",
"hexadecimal": "FF",
"binary_grouped": "1111 1111",
"hex_grouped": "FF",
"bit_length": 8,
"is_power_of_two": false
}Error codes
| Status | Meaning |
|---|---|
| 200 | Success — result in response body |
| 400 | Bad request — invalid input; error field describes the problem |
| 404 | Tool not found |
| 429 | Rate limit exceeded (30 req/min anonymous, 300 req/min free key) |
| 500 | Internal server error — transient; retry with exponential back-off |
OpenAPI spec
The full OpenAPI 3.1 specification for all tools is available at /openapi.json. Import it into Postman, Insomnia, or any OpenAPI-compatible client to get all endpoints with schema validation automatically.