Number Base Converter

Convert whole numbers between binary, octal, decimal, hexadecimal and base 36, exactly.

This tool runs entirely in your browser. The file you choose is never uploaded to a server. Free, with no account required.

Input
A number and its base
Output
The same number in five bases
Category
Developer Tools
Status
Available now
Price
Free — no subscription, no account

How to use Number Base Converter

  1. Type or paste a whole number.
  2. Pick the base it is written in.
  3. Copy any of the five conversions - BigInt arithmetic keeps them exact.

Frequently asked questions

Why are whole numbers only?

Fractions in other bases usually repeat forever (1/3 in binary, for example), so any output would either be truncated silently or look exact when it is not. Showing nothing beats showing a lie.

How large a number can it take?

Conversion uses arbitrary-precision integers, so values far beyond 64 bits convert exactly - try 2 to the power of 100.

Which digits are valid in each base?

Base 2 allows 0 and 1; base 16 adds a-f; base 36 adds the whole alphabet. The input is case-insensitive.

What are the bit facts for?

They tell you how many significant bits the value needs and how many bytes that rounds up to - useful when you are about to pack it into a fixed-width field.

Related tools