Directory for AI
Sign In Submit Tool
Blog AI Tools Tool Guides 🛠 ToolsNEW Sign In
Free 100% Client-side Built-in No signup

Number Base Changer

Convert numbers between binary, octal, decimal, hexadecimal, and any base 2–36. Live conversion, BigInt support — 100% client-side.

Number Base Converter
Binary · Octal · Decimal · Hex · Custom base 2–36 — live, BigInt-safe

Bit representation

Also show base:

What is a number base?

A number base (or radix) is how many unique digits a numeral system uses. Everyday counting is decimal (base 10). Computers use binary (base 2). Programmers often use hexadecimal (base 16) for memory addresses and color codes, and octal (base 8) in some Unix contexts.

This converter translates the same integer value between any bases from 2 to 36, including live bit representation for binary.

How to use this Number Base Changer

  1. Enter a number

    Type a value such as 255, 0xFF, 0b11111111, or 0o377. Conversion updates as you type.

  2. Choose the source base

    Use Auto-detect (reads 0x / 0b / 0o prefixes), pick Binary, Octal, Decimal, Hex, or set a custom base 2–36.

  3. Read all representations

    Cards show binary, octal, decimal, and hex. Copy any value with one click. Bit view groups binary digits for readability.

  4. Add extra bases

    Need base 12 or 36? Enter it under “Also show base” and an extra result card appears.

Key features

🔢
Bases 2–36

Binary, octal, decimal, hex, plus any custom radix up to 36.

Live conversion

Results update as you type — no submit button required.

bigint
BigInt support

Handles integers larger than 64-bit without precision loss.

0x
Prefix auto-detect

Recognizes 0b, 0o, and 0x prefixes automatically.

0101
Bit view

Binary digits grouped and padable to 8 / 16 / 32 / 64 bits.

🔒
100% client-side

All math runs in your browser. Nothing is uploaded.

Common use cases

  • Debugging flags & masks — See which bits are set in a status register or permission mask.
  • Color codes — Convert between decimal RGB components and hex colors.
  • Memory / addresses — Switch between hex dumps and decimal offsets.
  • Learning CS fundamentals — Explore how the same value looks in binary, octal, and hex.
  • Custom encodings — Work with base-32, base-36, or other uncommon radices.

Frequently asked questions

What is a number base (radix)?
A number base is the number of unique digits used to represent numbers. Decimal (base 10) uses 0–9. Binary (base 2) uses 0 and 1. Hexadecimal (base 16) uses 0–9 and A–F. This tool converts between any bases from 2 to 36.
Does it support large numbers?
Yes. Conversions use JavaScript BigInt, so you can convert integers far beyond normal 64-bit limits without precision loss.
Can it auto-detect the base?
Yes. Choose “Auto-detect” and use prefixes: 0b for binary, 0o for octal, 0x for hexadecimal. Without a prefix, decimal is assumed.
What about negative numbers?
Negative values are supported. The sign is preserved; bit view shows the magnitude with a minus indicator.
Can I convert to an uncommon base like 12 or 36?
Yes. Use the “Also show base” field to add any base from 2 to 36. Custom bases appear as extra result cards.
Is data sent to a server?
No. All conversion happens in your browser. Nothing is uploaded.

More free developer tools

View all tools →