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.

How it works

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

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.

Use it from ChatGPT, Claude or your own agent

This tool is also a function an AI agent can call for you. It needs the same free account as this page, nothing else.

Fields

  • value (text, required): Number
  • from ("auto" | "decimal" | "hex" | "binary" | "octal", optional): Written in

A call that works

POST https://orkosi.com/api/v1/public/tools/number-base-converter/run
Authorization: Bearer <api_key>

{
  "input": {
    "value": "0xFF",
    "from": "auto"
  }
}

Need an account? One request creates it and answers the key: POST https://orkosi.com/api/v1/public/signup. In Claude or ChatGPT, add the Orkosi connector and sign in: https://orkosi.com/api/v1/public/mcp.

This tool as Markdown · Connect an AI assistant