Number base converter

Convert numbers between binary, octal, decimal and hexadecimal.

  • Development
  • 100% free
  • No sign-up
  • Runs in your browser
Number base converter

What is the number base converter?

The number base converter changes a number from one base to all the others at once: binary (2), octal (8), decimal (10), hexadecimal (16), base 32 and base 36. Big numbers are supported without losing precision.

Prefixes such as 0x, 0b and 0o, spaces and underscores are accepted, and binary output is grouped in blocks of four bits.

How to use the number base converter

  1. 1Enter the number.
  2. 2Choose the base it's written in.
  3. 3Copy the result in the base you need.

Features

Six bases

Binary, octal, decimal, hex, base 32 and base 36.

Any size

Arbitrary precision, no rounding.

Prefixes

0x, 0b and 0o are understood.

Negative numbers

A leading minus sign is kept.

Frequently asked questions

How do I convert binary to decimal?

Choose Binary (2) as the base and enter the number; the decimal value is shown with the others.

What is hexadecimal used for?

Colors, memory addresses, hashes and byte values: one hex digit holds four bits.

What is base 36?

A base that uses 0–9 and a–z, often used for short IDs and URL shorteners.

Is this the same as Base32 encoding?

No. Here base 32 is a number system with the digits 0–9 and a–v, not the RFC 4648 text encoding.