Number base converter

Convert numbers between binary, octal, decimal, hexadecimal and any base up to 36. Free, private and offline in your browser — files never leave your device.

Developer & security100% on deviceFree, no accountWorks offline

About this tool

Translate numbers between binary, octal, decimal, hexadecimal and any base from 2 to 36, including values too large for JavaScript’s Number type.

How it works

  1. Pick the base of the number you are pasting, or choose Custom for base 3–35.
  2. Type the value; the five common bases update immediately.
  3. Copy a result, or press From on a row to continue converting from that base.

Frequently asked questions

How large can the number be?

Up to 200 characters. Conversion uses BigInt, so 64-bit identifiers and long hexadecimal hashes keep every digit instead of being rounded.

Are prefixes accepted?

0b, 0o and 0x are stripped when they match the selected base, and spaces or underscores can be used as separators.