# Number base converter

> Convert a number between binary, octal, decimal and hexadecimal online. Reads 0x, 0b and 0o prefixes and numbers of any length. Free.

Free tool by Orkosi. Page: https://orkosi.com/tools/number-base-converter

Type a number in any of the four bases programmers use and see it in the other three, with the number of bits it needs. No size limit: it works on whole numbers of any length.

1. Type the number.
2. Say which base it is written in, or leave Auto.
3. Press Convert and read all four forms.

## Input

| Field | Type | Required | What it is |
| --- | --- | --- | --- |
| `value` | text | yes | Number. |
| `from` | "auto" \| "decimal" \| "hex" \| "binary" \| "octal" | no | Written in. Default: "auto". |

## Example

Input:

```json
{
  "value": "0xFF",
  "from": "auto"
}
```

Result:

```json
{
  "decimal": "255",
  "binary": "11111111",
  "octal": "377",
  "hex": "FF",
  "bits": 8
}
```

## Run it

It needs a free Orkosi account, nothing else. No credits are used.

- **A person**: open the page, enter an e-mail once, use the tool.
- **Claude or ChatGPT**: add the Orkosi connector `https://orkosi.com/api/v1/public/mcp` and sign in, or create the free account on the sign-in page. Then call `orkosi_run_free_tool` with `{ "tool": "number-base-converter", "input": { … } }`.
- **Any agent or program that can make an HTTP request**:

  1. Once, create the account: `POST https://orkosi.com/api/v1/public/signup` with `{ "name": "…", "email": "…", "terms_accepted": true }` and no key. Ask the person for the e-mail and their agreement to the terms first. The answer carries `data.api_key`, shown once.
  2. Run the tool:

```bash
curl -X POST https://orkosi.com/api/v1/public/tools/number-base-converter/run \
  -H "Authorization: Bearer $ORKOSI_API_KEY" -H "Content-Type: application/json" \
  -d '{"input":{"value":"0xFF","from":"auto"}}'
```

The answer is `{ "data": { "tool": "…", "result": { … } } }`. A call without a key is answered 401 with the signup steps as data.

## Questions

**How does Auto work?**

A number starting with 0x is read as hexadecimal, 0b as binary, 0o as octal, and anything else as decimal.

**Is there a maximum value?**

No. The conversion uses arbitrary-precision arithmetic, so a 256-bit hash converts exactly.

**Does it handle fractions?**

No, whole numbers only. Negative numbers are written with a minus sign, not in two's complement.

All free tools: https://orkosi.com/tools.md
