encoding

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

POST/api/number-base-converter

Full 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).

FieldTypeRequiredDescription
inputstringYes
from_baseunionYes

Response

Returns application/json. On error, returns a JSON object with an error string field and an appropriate HTTP status code.

FieldTypeDescription
input_normalizedstring
from_basenumber
decimalstring
binarystring
octalstring
hexadecimalstring
binary_groupedstring
hex_groupedstring
bit_lengthnumber
is_power_of_twoboolean

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

StatusMeaning
200Success — result in response body
400Bad request — invalid input; error field describes the problem
404Tool not found
429Rate limit exceeded (30 req/min anonymous, 300 req/min free key)
500Internal 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.

We use cookies to serve ads and measure traffic. Cookie policy · Privacy policy