# Binary, hex & decimal converter

> Convert whole numbers between binary, octal, decimal, hexadecimal and any base from 2 to 36.

Category: Math · Web page: https://plumcalc.com/base-converter/ · Last reviewed: November 19, 2026

## How to use

1. Enter your numbers: Number, From base, Also convert to base. Example figures are filled in to start.
2. Read your result instantly: the decimal value appears in the results panel, with a full breakdown underneath.
3. Save as PDF, copy the results, or save a scenario to compare different inputs side by side.

## Inputs

| Key | Field | Type | Default | Notes |
|---|---|---|---|---|
| `val` | Number | text | 255 |  |
| `from` | From base | choice | 10 | options: `2` (Binary (2)), `8` (Octal (8)), `10` (Decimal (10)), `16` (Hexadecimal (16)), `36` (Base 36) |
| `to` | Also convert to base | number | 7 | Any base from 2 to 36 |

## Worked example (default inputs)

- Number: 255
- From base: Decimal (10)
- Also convert to base: 7

**Decimal value: 255** (from base 10)

- Binary (2): 11111111
- Octal (8): 377
- Decimal (10): 255
- Hexadecimal (16): FF
- Base 7: 513
- Bits needed: 8

## How it's calculated

Each digit is multiplied by the base raised to the power of its position, and the results are added: for example 1011 in binary = 8 + 2 + 1 = 11. To convert out of decimal, divide repeatedly by the new base and read the remainders backwards. Whole numbers up to 9,007,199,254,740,991 are supported.

## Frequently asked questions

### How do you convert binary to decimal?

Multiply each digit by 2 raised to its position, counting from 0 on the right, and add the results. For example, 1011 = 8 + 0 + 2 + 1 = 11.

### How do you convert decimal to hexadecimal?

Divide by 16 repeatedly and write the remainders in reverse order, using A to F for 10 to 15. For example, 255 is FF.

### What bases are supported?

Any base from 2 to 36, using digits 0 to 9 and letters A to Z. Whole numbers up to 9,007,199,254,740,991 are supported.

## Related calculators

- [Statistics calculator](https://plumcalc.com/statistics/): Mean, median, mode, standard deviation, variance, quartiles and range for any list of numbers.
- [Quadratic equation solver](https://plumcalc.com/quadratic/): Solve ax² + bx + c = 0 for real or complex roots, with the discriminant, vertex and axis of symmetry.
- [Fraction calculator](https://plumcalc.com/fraction/): Add, subtract, multiply and divide fractions, with the simplified answer, mixed number and decimal.
- [Scientific calculator](https://plumcalc.com/scientific/): A full calculator with trig and inverse trig, logs, powers, factorials, memory and history. Works with your keyboard.
---

PlumCalc (https://plumcalc.com) · Free, private online calculators. All calculations run in the user's browser; inputs are never sent to a server. Results are estimates for planning and education, not financial, tax, legal or medical advice.

For AI agents: MCP server at https://plumcalc.com/mcp (tools: list_calculators, calculate, evaluate_expression) · [Server card](https://plumcalc.com/.well-known/mcp/server-card.json) · [llms.txt](https://plumcalc.com/llms.txt) · [About](https://plumcalc.com/about) · [Contact](https://plumcalc.com/contact) · [Privacy Policy](https://plumcalc.com/privacy-policy) · [Terms of Service](https://plumcalc.com/terms-of-service)
