---
title: "Number Base Converter"
method: GET
path: "/api/calc/number-base-converter"
tags: ["Conversion"]
---

# Number Base Converter

`GET /api/calc/number-base-converter`

## Request

- Base URL: `https://calcbright.com`
- URL: `https://calcbright.com/api/calc/number-base-converter`
- Auth: none declared

Decimal 255 is 11111111 in binary, 377 in octal and FF in hex. Convert between any bases from 2 to 36, paste 0x or 0b values, and handle 64-bit+ integers.

## Query parameters

- `value` string: Number to convert
- `from` '2' | '8' | '10' | '16' | 'custom': Input base
- `custom` number: Custom base Used for custom input and shown as an extra result.

## Response `200`

Calculation result

- CalcOutput
  - `ok` boolean
  - `tool` string
  - `name` string
  - `url` string: Open this link to see the full calculation
  - `inputs` object
  - `summary` string: Plain-text answer
  - `details` string
  - `result` object
  - `errors` object

## Other responses

- `400`: Invalid input (see errors)

---

[API](https://skmtc.dev/calcbright/apis/calcbright-calculator-api.md) · [All operations](https://skmtc.dev/calcbright/apis/calcbright-calculator-api/llms.txt) · [OpenAPI document](https://skmtc.dev/calcbright/apis/calcbright-calculator-api/revisions/f58229e56e58?raw)
