Home › URL tools › Number Base Converter

Number Base Converter

Convert exactly between decimal, binary, octal and hexadecimal — enter a value in any base and see it in all four instantly.

Decimal
255
Binary
11111111
Octal
377
Hexadecimal
FF

What is a number base converter?

A number base — also called a radix — is the set of digits used to write numbers. Decimal is base-10 with digits 0-9, binary is base-2 with just 0 and 1, octal is base-8 with 0-7, and hexadecimal is base-16 with 0-9 plus A-F. A base converter takes a value written in one base and re-expresses it in another, which is essential because both humans and machines work with different ones. Computers are built from binary, but long binary strings are hard to read, so developers use hexadecimal as a compact shorthand — one hex digit maps to exactly four bits — and octal appears in Unix permissions. This converter accepts a number in any base from 2 to 36, parses it with a big-integer approach so large values stay exact, and instantly shows the decimal, binary, octal and hexadecimal equivalents. It is a handy checking tool for coding, debugging, digital electronics and coursework, and it runs entirely in your browser.

Example

Select base 10, enter 255, and the tool shows decimal 255, binary 11111111, octal 377 and hexadecimal FF. Switch the base to 2 and type 101010 to see it resolve to decimal 42, octal 52 and hex 2A.

Who is this number base converter for?

This free number base converter is built for anyone who needs to make a conversion quickly, but a few groups reach for it most often.

Number base reference table

Every row is the same integer written in the four bases the converter handles; hex is uppercase to match the tool output.

DecimalBinaryOctalHex
0000
1111
2611010321A
42101010522A
100110010014464
25511111111377FF
1000111110100017503E8
255010011111011047669F6

Common use cases

Pro tips

How to use

  1. Choose the base your number is written in — decimal, binary, octal or hexadecimal.
  2. Type the value in that base.
  3. The number is converted to all four bases instantly.
  4. Hexadecimal digits can be typed in upper or lower case.

FAQ

How do I convert decimal to binary?

Pick Decimal as the input base, type a number, and the binary, octal and hexadecimal values appear instantly. 255 in decimal is 11111111 in binary and FF in hex.

What is hexadecimal used for?

Hexadecimal (base 16) is widely used in computing to represent bytes and memory addresses compactly, where FF equals 255 in decimal.

How large can the numbers be?

The converter handles integers exactly for values up to and beyond 53 bits, so it is safe for any normal 32-bit or 64-bit number.

Is this converter free and private?

Yes. It is free, runs in your browser, and no data is uploaded.

What is binary?

Binary is base-2, using only 0 and 1. Every digital system stores and processes data as binary.

What is hexadecimal used for?

Hex is a compact way to write bytes — two hex digits equal one byte — so it is used for colors, addresses and debugging output.

How do I convert decimal to binary?

Repeatedly divide by 2 and record the remainders, then read them bottom to top. For example, 10 becomes 1010.

What does the 0x prefix mean?

It marks a number as hexadecimal in code, so 0xFF means 255 in decimal.

Where is octal still used?

Mostly for Unix and Linux file permissions, like chmod 755, where each digit maps to three permission bits.

Can it convert negative numbers?

Yes, a leading minus sign is parsed and applied, so negative values convert correctly across bases.

More FAQs

Are these tools free to use?

Yes, every tool is completely free, with no signup and no limits.

Do I need an account or install anything?

No. Everything runs in your browser — no install, no account.

Related searches

number base converter, number base converter online, how to convert number bases, decimal to binary, binary to decimal, hex converter, hexadecimal converter, binary to hex, oct to dec, base converter, convert number base, number base converter 2024

Related tools