Skip to content
ToolFarmToolFarm
Data

Number Base Converter

Convert whole numbers between binary, octal, decimal, hexadecimal and any base from 2 to 36. Runs in your browser with native big integers, so even very long numbers stay exact.

2 min read

What this tool does

Type a whole number and read it at once in binary, octal, decimal and hexadecimal, plus a custom base from 2 to 36. The converter detects the 0x, 0b and 0o prefixes, accepts upper and lower case hex, and ignores the spaces or underscores you use to group digits. It works with native big integers, so a 200 digit value converts with no rounding. Nothing is uploaded, everything happens on your device.

What you can use it for

  • Read a hexadecimal color or memory address as a plain decimal number.
  • Turn a decimal value into the binary or hex a register or bitmask expects.
  • Check a permission mask by switching an octal value to binary.
  • Convert an id stored in base 36 back to decimal and the other way around.

How to use it

  1. Paste or type the number you want to convert.
  2. Pick the input base, or leave it on auto to detect the 0x, 0b and 0o prefixes.
  3. For an unusual base, choose custom and set a radix from 2 to 36.
  4. Read the binary, octal, decimal and hexadecimal results, then copy the ones you need.

Everything runs inside your browser. No file is uploaded to any server. See more tools in this field.

Other tools people reach for in the same flow.

Data

Frequently asked questions

Which bases are supported?

Binary, octal, decimal and hexadecimal directly, plus any custom base from 2 to 36. Bases above 10 use the letters a to z as extra digits, so base 16 uses 0 to 9 and a to f, and base 36 uses 0 to 9 and a to z.

Does it handle very large numbers?

Yes. The converter uses native big integers, not floating point, so there is no 53 bit limit and no rounding. A number with hundreds of digits converts exactly in every base.

Can I paste values with the 0x, 0b or 0o prefix?

Yes. On auto the prefix sets the base for you: 0x for hexadecimal, 0b for binary and 0o for octal. You can also keep the prefix when you pick that base by hand. Spaces and underscores used to group digits are ignored.

Does it convert decimals or fractions?

No. This is a whole number converter, so a value with a decimal point or a scientific exponent is rejected with a clear message. Convert only the integer part when you need a quick reading.

Is my data sent anywhere?

No. The conversion runs entirely in your browser. Nothing you type is uploaded or stored on a server.